Skip to content
Snippets Groups Projects
Commit 13bb67a3 authored by David (Jointech)'s avatar David (Jointech) Committed by Roman Brendler
Browse files

fix(nginx): fix redirects and body-size

parent b0d33abb
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ VUE_APP_TANK = AURA_PROTO://AURA_HOST/tank/
VUE_APP_OIDC_CLIENT_ID = DASHBOARD_OIDC_CLIENT_ID
# OIDC endpoint of the pv/steering module
VUE_APP_API_STEERING_OIDC_URI = AURA_PROTO://AURA_HOST/openid
VUE_APP_API_STEERING_OIDC_URI = AURA_PROTO://AURA_HOST/openid/
# Number of seconds before token gets invalid, when renewal should be started
VUE_APP_API_STEERING_OIDC_EXPIRE_NOTIFICATION = 120
......
......@@ -5,10 +5,13 @@ server {
location / {
root /usr/share/nginx/html;
index index.html;
try_files $uri $uri/ /index.html;
}
location /openid/ {
proxy_pass http://steering:8000/openid/;
proxy_redirect $scheme://$host/oidc_callback.html /oidc_callback.html;
proxy redirect $scheme://$host/oidc_callback_silentRenew.html /oidc_callback_silentRenew.html
proxy redirect $schme://$host/ /;
proxy_redirect ~^/?(.*)$ $scheme://$host:$server_port/steering/$1;
proxy_set_header Upgrade $http_upgrade;
......@@ -42,12 +45,17 @@ server {
location /steering/static {
root /usr/share/nginx/html;
}
location /site_media {
root /usr/share/nginx/html;
}
location /tank/ {
proxy_buffering off;
proxy_ignore_headers "X-Accel-Buffering";
proxy_request_buffering off;
proxy_http_version 1.1;
proxy_buffering off;
proxy_ignore_headers "X-Accel-Buffering";
proxy_request_buffering off;
proxy_http_version 1.1;
client_max_body_size 100M;
proxy_pass http://tank:8040/;
proxy_pass http://tank:8040/;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment