http自动跳转到https
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
# Nginx 静态文件服务 + 智能代理
|
||||
|
||||
# HTTP 重定向到 HTTPS
|
||||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
server {
|
||||
# 静态资源根目录(dist)
|
||||
root /usr/share/nginx/html;
|
||||
|
||||
Reference in New Issue
Block a user