Linghonggod Blog - 2026年6月
type: channel
link: https://blog.dhd.us.kg/index.php/2026/06/
description: 一个由DiHuanDong搭建的博客
items: sub2api的nginx代理配置

sub2api的nginx代理配置
type: item
date: 2026-06-25T09:34:00+00:00
description: # 新的 https://honff.dhd.qzz.io 配置 server { listen 443 ssl http2; server_name honff.dhd.qzz.io; ssl_certificate /etc/letsencrypt/live/honff.dhd.qzz.io/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/honff.dhd.qzz.io/privkey.pem; ssl_protocols TLSv1.2 TLSv1.3; ssl_ciphers HIGH:!aNULL:!MD5; client_max_body_size 100M; underscores_in_headers on; location / { proxy_pass http://127.0.0.1:8080; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Forwarded-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; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } }