18 lines
477 B
Plaintext
18 lines
477 B
Plaintext
# Hugo 预览 HTTPS 代理
|
|||
|
|
server {
|
||
|
|
listen 1313 ssl http2;
|
||
|
|
server_name post.usj.cc;
|
||
|
|
|
||
|
|
ssl_certificate /etc/nginx/ssl/fullchain.pem;
|
||
|
|
ssl_certificate_key /etc/nginx/ssl/privkey.pem;
|
||
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
||
|
|
|
||
|
|
access_log off;
|
||
|
|
|
||
|
|
location / {
|
||
|
|
proxy_pass http://write-server:1313;
|
||
|
|
proxy_set_header Host $host;
|
||
|
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
|
}
|
||
|
|
}
|