nginx-proxy-manager/rootfs/usr/local/nginx/conf/conf.d/include/force-tls.conf
renovate[bot] bb09562f89
fixes/dep updates/improved tls
Signed-off-by: Zoey <zoey@z0ey.de>
2024-10-02 23:17:42 +02:00

10 lines
304 B
Text

# Check if the original scheme is HTTP
if ($scheme = "http") {
return 301 https://$host$request_uri;
}
# Check if the request was forwarded with HTTP protocol
# This is necessary when behind a proxy like Cloudflare
if ($http_x_forwarded_proto = "http") {
return 301 https://$host$request_uri;
}