Redirect HTTP to HTTPS on WebUI port
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
eec22044b2
commit
cf97de7e63
|
|
@ -27,6 +27,9 @@ http {
|
||||||
ssl_certificate_key /certs/server.key;
|
ssl_certificate_key /certs/server.key;
|
||||||
ssl_protocols TLSv1.2 TLSv1.3;
|
ssl_protocols TLSv1.2 TLSv1.3;
|
||||||
|
|
||||||
|
# Redirect plain HTTP requests to HTTPS
|
||||||
|
error_page 497 https://$host:$server_port$request_uri;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://127.0.0.1:5000;
|
proxy_pass http://127.0.0.1:5000;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue