Merge branch '9-setup-development-server-for-pwa' into 'main'

build:#9 reorder paths and update uri

See merge request htwk-software/htwkalender-pwa!6
This commit is contained in:
Elmar Kresse
2024-05-28 15:10:15 +00:00

View File

@ -116,7 +116,7 @@ http {
server_name pwa.htwkalender.de;
location / {
return 301 https://pwa.htwkalender.de$request_uri;
return 301 https://$host$request_uri;
}
}
@ -128,6 +128,16 @@ http {
ssl_certificate htwkalender.de.pem;
ssl_certificate_key htwkalender.de.key.pem;
location /_ {
proxy_pass http://htwkalender-backend:8090;
# if user is not 0 in admin list, return 404
if ($admin) {
return 404 "Not Found";
}
# Increase upload file size
client_max_body_size 100m;
}
location /api {
proxy_pass http://htwkalender-backend:8090;
client_max_body_size 20m;
@ -232,16 +242,6 @@ http {
send_timeout 600s;
}
location /_ {
proxy_pass http://htwkalender-backend:8090;
# if user is not 0 in admin list, return 404
if ($admin) {
return 404 "Not Found";
}
# Increase upload file size
client_max_body_size 100m;
}
location / {
proxy_pass http://htwkalender-frontend:8000;
}