Merge pull request '更新 nginx.conf' (#952) from gary into prod

Reviewed-on: http://git.feashow.cn/clay/mosr-web/pulls/952
This commit is contained in:
zhangkaihuai
2025-03-19 07:34:21 +00:00

View File

@@ -29,7 +29,7 @@ http {
server {
listen 80;
listen [::]:80;
server_name www.abc.com;
server_name mosr.feashow.cn;
return 301 https://$host$request_uri; # 强制跳转HTTPS
}
# 新增HTTPS服务器块
@@ -38,7 +38,7 @@ http {
listen [::]:443 ssl;
server_name www.abc.com;
# SSL证书配置(路径根据实际位置调整)
# SSL证书配置
ssl_certificate /etc/nginx/mosr.feashow.cn_chain.crt;
ssl_certificate_key /etc/nginx/private.key;