36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
server {
|
|
listen 8989;
|
|
client_max_body_size 100M;
|
|
location = /mindmap { return 302 /admin/mindmap; }
|
|
location ^~ /mindmap/ { return 302 /admin/mindmap; }
|
|
location / {
|
|
proxy_pass ${KB_UPSTREAM};
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $http_host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_buffering off;
|
|
proxy_read_timeout 600s;
|
|
proxy_send_timeout 600s;
|
|
}
|
|
}
|
|
server {
|
|
listen 9898;
|
|
client_max_body_size 100M;
|
|
location = / { return 302 /admin/mindmap; }
|
|
location = /mindmap { return 302 /admin/mindmap; }
|
|
location ^~ /mindmap/ { return 302 /admin/mindmap; }
|
|
location / {
|
|
proxy_pass ${KB_UPSTREAM};
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $http_host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_buffering off;
|
|
proxy_read_timeout 600s;
|
|
proxy_send_timeout 600s;
|
|
}
|
|
}
|