diff options
Diffstat (limited to 'configs/nginx')
-rw-r--r-- | configs/nginx/certbot.ctx-server.conf | 5 | ||||
-rw-r--r-- | configs/nginx/nginx.conf | 11 |
2 files changed, 11 insertions, 5 deletions
diff --git a/configs/nginx/certbot.ctx-server.conf b/configs/nginx/certbot.ctx-server.conf new file mode 100644 index 00000000..6c8ea525 --- /dev/null +++ b/configs/nginx/certbot.ctx-server.conf @@ -0,0 +1,5 @@ +location /.well-known/acme-challenge { + root /run/kvmd-certbot/webroot; + include /etc/kvmd/nginx/loc-nocache.conf; + auth_request off; +} diff --git a/configs/nginx/nginx.conf b/configs/nginx/nginx.conf index 81b8265d..6b08c68e 100644 --- a/configs/nginx/nginx.conf +++ b/configs/nginx/nginx.conf @@ -27,11 +27,11 @@ http { keepalive_timeout 10; client_max_body_size 4k; - client_body_temp_path /tmp/kvmd-nginx.client_body_temp; - fastcgi_temp_path /tmp/kvmd-nginx.fastcgi_temp; - proxy_temp_path /tmp/kvmd-nginx.proxy_temp; - scgi_temp_path /tmp/kvmd-nginx.scgi_temp; - uwsgi_temp_path /tmp/kvmd-nginx.uwsgi_temp; + client_body_temp_path /tmp/kvmd-nginx/client_body_temp; + fastcgi_temp_path /tmp/kvmd-nginx/fastcgi_temp; + proxy_temp_path /tmp/kvmd-nginx/proxy_temp; + scgi_temp_path /tmp/kvmd-nginx/scgi_temp; + uwsgi_temp_path /tmp/kvmd-nginx/uwsgi_temp; include /etc/kvmd/nginx/kvmd.ctx-http.conf; include /usr/share/kvmd/extras/*/nginx.ctx-http.conf; @@ -47,6 +47,7 @@ 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; } } |