Files
AlphaPulse/deploy/nginx/alpha.134333.xyz.conf
eezd 3178a2cc31 Align deployment ports and trusted proxy configuration
Run the dedicated calendar worker, bind the web service to loopback port 21005, and match the host nginx upstream.

Trust forwarded headers only from the Docker subnet and replace untrusted forwarded client chains at the public proxy. Validate Compose without resolving production environment files; do not restart services.
2026-10-26 12:04:44 +08:00

32 lines
917 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# alpha.134333.xyz -> AlphaPulse web 容器(127.0.0.1:21005)
server {
listen 80;
server_name alpha.134333.xyz;
return 308 https://alpha.134333.xyz$request_uri;
}
server {
listen 443 ssl;
http2 on;
server_name alpha.134333.xyz;
include /etc/nginx/snippets/ssl-134333.xyz.conf;
include /etc/nginx/snippets/no-spider.conf;
access_log /var/log/nginx/alpha.134333.xyz.log;
error_log /var/log/nginx/alpha.134333.xyz.error.log warn;
location / {
proxy_pass http://127.0.0.1:21005;
proxy_http_version 1.1;
# SSE 不缓冲;WebSocket 需要升级头
proxy_buffering off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_read_timeout 1h;
}
}