mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender-pwa.git
synced 2025-08-07 04:09:17 +02:00
build:#9 deployment config for pwa deploy
This commit is contained in:
@@ -113,40 +113,10 @@ http {
|
|||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
server_name cal.htwk-leipzig.de;
|
server_name pwa.htwkalender.de;
|
||||||
|
|
||||||
location /api/feed {
|
|
||||||
proxy_pass http://htwkalender-backend:8090;
|
|
||||||
client_max_body_size 2m;
|
|
||||||
proxy_connect_timeout 600s;
|
|
||||||
proxy_read_timeout 600s;
|
|
||||||
proxy_send_timeout 600s;
|
|
||||||
send_timeout 600s;
|
|
||||||
limit_req zone=feed burst=10 nodelay;
|
|
||||||
}
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
return 301 https://cal.htwk-leipzig.de$request_uri;
|
return 301 https://pwa.htwkalender.de$request_uri;
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
|
||||||
listen 80;
|
|
||||||
listen [::]:80;
|
|
||||||
server_name htwkalender.de;
|
|
||||||
|
|
||||||
location /api/feed {
|
|
||||||
proxy_pass http://htwkalender-backend:8090;
|
|
||||||
client_max_body_size 2m;
|
|
||||||
proxy_connect_timeout 600s;
|
|
||||||
proxy_read_timeout 600s;
|
|
||||||
proxy_send_timeout 600s;
|
|
||||||
send_timeout 600s;
|
|
||||||
limit_req zone=feed burst=10 nodelay;
|
|
||||||
}
|
|
||||||
|
|
||||||
location / {
|
|
||||||
return 301 https://cal.htwk-leipzig.de$request_uri;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -157,16 +127,6 @@ http {
|
|||||||
|
|
||||||
ssl_certificate htwkalender.de.pem;
|
ssl_certificate htwkalender.de.pem;
|
||||||
ssl_certificate_key htwkalender.de.key.pem;
|
ssl_certificate_key htwkalender.de.key.pem;
|
||||||
return 301 https://cal.htwk-leipzig.de$request_uri;
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
|
||||||
listen 443 ssl;
|
|
||||||
listen [::]:443 ssl;
|
|
||||||
server_name cal.htwk-leipzig.de;
|
|
||||||
|
|
||||||
ssl_certificate cal.htwk-leipzig.de.pem;
|
|
||||||
ssl_certificate_key cal.htwk-leipzig.de.key.pem;
|
|
||||||
|
|
||||||
location /api {
|
location /api {
|
||||||
proxy_pass http://htwkalender-backend:8090;
|
proxy_pass http://htwkalender-backend:8090;
|
||||||
|
Reference in New Issue
Block a user