summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
Diffstat (limited to 'configs')
-rw-r--r--configs/nginx/nginx.conf2
-rw-r--r--configs/nginx/redirect-to-https.conf4
2 files changed, 4 insertions, 2 deletions
diff --git a/configs/nginx/nginx.conf b/configs/nginx/nginx.conf
index 6b08c68e..6305309e 100644
--- a/configs/nginx/nginx.conf
+++ b/configs/nginx/nginx.conf
@@ -39,6 +39,7 @@ http {
server {
server_name localhost;
include /etc/kvmd/nginx/listen-http.conf;
+ include /etc/kvmd/nginx/certbot.ctx-server.conf;
include /etc/kvmd/nginx/redirect-to-https.conf;
}
@@ -47,7 +48,6 @@ http {
include /etc/kvmd/nginx/listen-https.conf;
include /etc/kvmd/nginx/ssl.conf;
include /etc/kvmd/nginx/kvmd.ctx-server.conf;
- include /etc/kvmd/nginx/certbot.ctx-server.conf;
include /usr/share/kvmd/extras/*/nginx.ctx-server.conf;
}
}
diff --git a/configs/nginx/redirect-to-https.conf b/configs/nginx/redirect-to-https.conf
index 7cf185dd..385fb49a 100644
--- a/configs/nginx/redirect-to-https.conf
+++ b/configs/nginx/redirect-to-https.conf
@@ -1 +1,3 @@
-return 301 https://$host$request_uri;
+location / {
+ return 301 https://$host$request_uri;
+}