mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
nginx: serve ACME challenges over unencrypted HTTP (#116)
RFC 8555 section 8.3 [1] states HTTP challenge MUST be served over TCP port 80 and while the verification follows redirects, those are unneed and migh be harmful in specific deployment scenarios. [1] https://datatracker.ietf.org/doc/html/rfc8555#section-8.3 Signed-off-by: Wojtek Porczyk <woju@invisiblethingslab.com>
This commit is contained in:
parent
1a8546305d
commit
3d109453c6
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1 +1,3 @@
|
||||
return 301 https://$host$request_uri;
|
||||
location / {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user