mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
listen configs
This commit is contained in:
2
configs/nginx/listen-http.conf
Normal file
2
configs/nginx/listen-http.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
2
configs/nginx/listen-https.conf
Normal file
2
configs/nginx/listen-https.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
@@ -36,19 +36,16 @@ http {
|
||||
include /etc/kvmd/nginx/kvmd.ctx-http.conf;
|
||||
include /usr/share/kvmd/extras/*/nginx.ctx-http.conf;
|
||||
|
||||
#PROD server {
|
||||
#PROD listen 80;
|
||||
#PROD listen [::]:80;
|
||||
#PROD server_name localhost;
|
||||
#PROD return 301 https://$host$request_uri;
|
||||
#PROD }
|
||||
server {
|
||||
server_name localhost;
|
||||
include /etc/kvmd/nginx/listen-http.conf;
|
||||
include /etc/kvmd/nginx/redirect-to-https.conf;
|
||||
}
|
||||
|
||||
server {
|
||||
#PROD listen 443 ssl http2;
|
||||
#PROD listen [::]:443 ssl http2;
|
||||
server_name localhost;
|
||||
#PROD include /etc/kvmd/nginx/ssl.conf;
|
||||
|
||||
include /etc/kvmd/nginx/listen-https.conf;
|
||||
include /etc/kvmd/nginx/ssl.conf;
|
||||
include /etc/kvmd/nginx/kvmd.ctx-server.conf;
|
||||
include /usr/share/kvmd/extras/*/nginx.ctx-server.conf;
|
||||
}
|
||||
|
||||
1
configs/nginx/redirect-to-https.conf
Normal file
1
configs/nginx/redirect-to-https.conf
Normal file
@@ -0,0 +1 @@
|
||||
return 301 https://$host$request_uri;
|
||||
Reference in New Issue
Block a user