BootstrapBlazor3/scripts/linux/nginx.conf
Argo bae3541589
chore: merge comment label action into auto assign action (#409)
* chore: 移除不使用的脚本

* chore: 增加文档

* chore: 更新解决方案文档

* chore: 消除预览版本警告信息

* chore: 更新部署脚本

* chore: 更新 linux 配置脚本

* chore: 更新 nginx.conf 配置项

* chore: 删除自动 comment 脚本

* chore: 增加自动标签后根据不同标签自动 comment 功能

* chore: 输出信息更改为首字母大写

* chore: 增加 Reviewer 是仓库作者判断

* chore: 移除对 auto_comment 脚本引用

* revert: 撤销更改

* chore: 增加 Reviewer 是仓库作者判断
2023-01-28 16:30:05 +08:00

64 lines
1.9 KiB
Nginx Configuration File

http {
upstream blazor {
server localhost:50853;
server localhost:81 backup;
}
server {
listen 80;
server_name www.blazor.zone;
client_max_body_size 20m;
rewrite ^(.*)$ https://$host$1 redirect;
error_page 404 500 /50x.html;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
location / {
proxy_connect_timeout 1;
proxy_pass http://localhost:50853;
}
location /_blazor {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://localhost:50853/_blazor;
}
location = /50x.html {
root html;
}
error_page 404 500 502 503 504 /50x.html;
}
server {
listen 443 ssl;
server_name www.blazor.zone;
ssl_certificate blazor_zone.crt;
ssl_certificate_key blazor_zone.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
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;
add_header X-Frame-Options SAMEORIGIN;
location / {
proxy_connect_timeout 1;
proxy_pass http://localhost:50853;
}
location /_blazor {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://localhost:50853/_blazor;
}
}
}