mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
Update Nginx configuration for file proxy
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user