From 85d9503c3d98a55e57935a249f3ddb3160d16235 Mon Sep 17 00:00:00 2001 From: Elmar Kresse Date: Tue, 28 May 2024 17:05:44 +0200 Subject: [PATCH] build:#9 reorder paths and update uri --- reverseproxy.conf | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/reverseproxy.conf b/reverseproxy.conf index 426c1af..0e14ca7 100644 --- a/reverseproxy.conf +++ b/reverseproxy.conf @@ -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; }