nginx: fix broken http->https redirect
Some checks are pending
ci/woodpecker/pr/test/1 Pipeline is pending approval
ci/woodpecker/pr/test/2 Pipeline is pending approval
ci/woodpecker/push/docs Pipeline was successful
ci/woodpecker/push/publish/4 Pipeline was successful
ci/woodpecker/push/publish/1 Pipeline was successful
ci/woodpecker/push/publish/2 Pipeline was successful

The HTTP server block deals with _both_ the main and media domain,
but $server_name only ever takes the value of the first listed domain.
Using $host instead allows both to work.
This commit is contained in:
a 2026-05-06 08:00:34 +00:00 committed by Oneric
commit 04f3b39363

View file

@ -22,7 +22,7 @@ upstream phoenix {
# listen [::]:80;
#
# location / {
# return 301 https://$server_name$request_uri;
# return 301 https://$host$request_uri;
# }
# }