summaryrefslogtreecommitdiff
path: root/configs/nginx/nginx.conf
diff options
context:
space:
mode:
Diffstat (limited to 'configs/nginx/nginx.conf')
-rw-r--r--configs/nginx/nginx.conf17
1 files changed, 7 insertions, 10 deletions
diff --git a/configs/nginx/nginx.conf b/configs/nginx/nginx.conf
index 71775387..81b8265d 100644
--- a/configs/nginx/nginx.conf
+++ b/configs/nginx/nginx.conf
@@ -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 {
-#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-http.conf;
+ include /etc/kvmd/nginx/redirect-to-https.conf;
+ }
+ server {
+ server_name localhost;
+ 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;
}