Redirect HTTP to HTTPS on WebUI port

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Stefan Hacker 2026-04-09 15:42:11 +02:00
parent eec22044b2
commit cf97de7e63
1 changed files with 3 additions and 0 deletions

View File

@ -27,6 +27,9 @@ http {
ssl_certificate_key /certs/server.key;
ssl_protocols TLSv1.2 TLSv1.3;
# Redirect plain HTTP requests to HTTPS
error_page 497 https://$host:$server_port$request_uri;
location / {
proxy_pass http://127.0.0.1:5000;
proxy_set_header Host $host;