mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 03:01:12 +00:00
36 lines
1.4 KiB
Plaintext
36 lines
1.4 KiB
Plaintext
location /drawio/webapp/ {
|
|
proxy_http_version 1.1;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Real-PORT $remote_port;
|
|
proxy_set_header X-Forwarded-Host $the_host/drawio/webapp;
|
|
proxy_set_header X-Forwarded-Proto $the_scheme;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header Host $http_host;
|
|
proxy_set_header Scheme $scheme;
|
|
proxy_set_header Server-Protocol $server_protocol;
|
|
proxy_set_header Server-Name $server_name;
|
|
proxy_set_header Server-Addr $server_addr;
|
|
proxy_set_header Server-Port $server_port;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection $connection_upgrade;
|
|
proxy_pass http://drawio-webapp:8080/;
|
|
}
|
|
|
|
location /drawio/export/ {
|
|
proxy_http_version 1.1;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Real-PORT $remote_port;
|
|
proxy_set_header X-Forwarded-Host $the_host/drawio/export;
|
|
proxy_set_header X-Forwarded-Proto $the_scheme;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header Host $http_host;
|
|
proxy_set_header Scheme $scheme;
|
|
proxy_set_header Server-Protocol $server_protocol;
|
|
proxy_set_header Server-Name $server_name;
|
|
proxy_set_header Server-Addr $server_addr;
|
|
proxy_set_header Server-Port $server_port;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection $connection_upgrade;
|
|
proxy_pass http://drawio-export:8000/;
|
|
}
|