build:#9 deployment config for pwa deploy

This commit is contained in:
Elmar Kresse
2024-05-28 16:11:21 +02:00
parent cef54243c6
commit 12b6302663

View File

@@ -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;