-
Notifications
You must be signed in to change notification settings - Fork 5
绑定域名
jsun969 edited this page Nov 18, 2023
·
3 revisions
Important
绑定域名前请先选择一种部署方式启动项目
Note
本质为反向代理,按需修改即可
server {
listen 80;
server_name your_domain.com; # 你的域名
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name your_domain.com; # 你的域名
ssl_certificate /path/to/your/certificate.crt;
ssl_certificate_key /path/to/your/private-key.key;
location / {
proxy_pass http://127.0.0.1:1314;
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;
}
}
your_domain.com { # 你的域名
reverse_proxy 127.0.0.1:1314
}
⭐ 你的 Star 是我的最大动力!⭐