Update Nginx configuration for file proxy

This commit is contained in:
Simon Larsen
2023-12-25 12:24:09 +00:00
parent cef7df73bb
commit ca56f83f08

View File

@@ -6,10 +6,6 @@ upstream identity {
server ${SERVER_IDENTITY_HOSTNAME}:${IDENTITY_PORT} weight=10 max_fails=3 fail_timeout=30s;
}
upstream file {
server ${SERVER_FILE_HOSTNAME}:${FILE_PORT} weight=10 max_fails=3 fail_timeout=30s;
}
upstream dashboard-api {
server ${SERVER_DASHBOARD_API_HOSTNAME}:${DASHBOARD_API_PORT} weight=10 max_fails=3 fail_timeout=30s;
}
@@ -443,7 +439,7 @@ server {
proxy_pass http://api-reference;
}
location /file {
location /file/ {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@@ -453,7 +449,7 @@ server {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://file;
proxy_pass http://dashboard-api/api/file/;
client_max_body_size 50M;
}