Files
nginx-proxy-manager/docker/rootfs/etc/nginx/conf.d/include/force-ssl.conf
T

11 lines
204 B
Plaintext
Raw Normal View History

2023-12-13 20:32:50 -05:00
set $test "";
2020-02-19 15:55:06 +11:00
if ($scheme = "http") {
2023-12-13 20:32:50 -05:00
set $test "H";
}
if ($request_uri = /.well-known/acme-challenge/test-challenge) {
set $test "${test}T";
}
if ($test = H) {
2020-02-19 15:55:06 +11:00
return 301 https://$host$request_uri;
}