Files
claw/nginx/git.fukun.net.conf
T

33 lines
1.0 KiB
Plaintext
Raw 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.
# git.fukun.net → Gitea
# TODO: SSL 证书到位后取消注释 HTTPS 段,删掉 80 段的 listen 3000
server {
listen 80;
server_name git.fukun.net;
# 临时:80 直接代理(证书到位后改成 301 -> HTTPS)
location / {
proxy_pass http://127.0.0.1:3000;
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;
}
}
# server {
# listen 443 ssl http2;
# server_name git.fukun.net;
# ssl_certificate /etc/nginx/ssl/git.fukun.net_bundle.crt;
# ssl_certificate_key /etc/nginx/ssl/git.fukun.net.key;
# ssl_protocols TLSv1.2 TLSv1.3;
# ssl_ciphers HIGH:!aNULL:!MD5;
# location / {
# proxy_pass http://127.0.0.1:3000;
# 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;
# }
# }