Files
appstore/apps/dootask/latest/scripts/dootask-nginx.conf
T
2026-07-06 12:46:02 +08:00

64 lines
1.8 KiB
Plaintext

map $http_upgrade $connection_upgrade {
default upgrade;
"" close;
}
upstream dootask_backend {
server dootask:20000;
keepalive 16;
}
server {
listen 80;
server_name _;
root /var/www/public;
client_max_body_size 1024M;
index index.html index.htm index.php;
charset utf-8;
location /health {
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_pass http://dootask_backend;
}
location / {
try_files $uri @dootask;
}
location ~ \.well-known {
allow all;
}
location = /ws {
proxy_http_version 1.1;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
proxy_connect_timeout 3600s;
proxy_pass http://dootask_backend;
}
location @dootask {
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_pass http://dootask_backend;
}
}