wireguard-dashboard-admin/docker/web.conf
2024-08-20 10:32:14 +08:00

24 lines
779 B
Plaintext

server {
listen 80;
server_name localhost;
proxy_send_timeout 600s; # 设置发送超时时间,
proxy_read_timeout 600s; # 设置读取超时时间。
# 前端打包好的dist目录文件
root /data/;
# 若新增后端路由前缀注意在此处添加(|新增)
location ~* ^/(api) {
client_max_body_size 1000m;
proxy_pass http://wireguard-srv:6687;
# proxy_connect_timeout 15s;
# proxy_send_timeout 15s;
# proxy_read_timeout 15s;
proxy_set_header X-Forwarded-Proto $scheme;
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 http;
}
}