One-KVM/configs/nginx/redirect-to-https.conf
Wojtek Porczyk 3d109453c6
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>
2022-10-19 00:03:37 +03:00

4 lines
54 B
Plaintext

location / {
return 301 https://$host$request_uri;
}