Files
Work-configuration-file/nginx/opt-server/flare.deeplink.media.conf.bak
2025-10-07 15:58:15 +08:00

27 lines
731 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.

server {
listen 443 ssl;
server_name flare.deeplink.media;
ssl_certificate /etc/nginx/certs/flare.deeplink.media_bundle.crt;
ssl_certificate_key /etc/nginx/certs/flare.deeplink.media.key;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!MD5;
location / {
proxy_pass http://127.0.0.1:5005;
proxy_set_header Host $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;
}
}
# 可选HTTP 自动跳转到 HTTPS
server {
listen 80;
server_name flare.deeplink.media;
return 301 https://$host$request_uri;
}