Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions nginx-transcoder/nginx-no-ssl.conf
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ http {
limit_req_status 401;

server {
# Emit RELATIVE redirects. Otherwise nginx rebuilds a directory redirect
# (e.g. /webtools -> /webtools/) from its internal listen port, dropping
# any external mapped port when the container is published on a different
# port (docker -p 8081:80, or behind a reverse proxy / VPN bind) and
# sending the browser to the wrong URL.
absolute_redirect off;

listen ${HTTP_PORT};

location / {
Expand Down
7 changes: 7 additions & 0 deletions nginx-transcoder/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ http {
limit_req_status 401;

server {
# Emit RELATIVE redirects. Otherwise nginx rebuilds a directory redirect
# (e.g. /webtools -> /webtools/) from its internal listen port, dropping
# any external mapped port when the container is published on a different
# port (docker -p 8081:80, or behind a reverse proxy / VPN bind) and
# sending the browser to the wrong URL.
absolute_redirect off;

listen ${HTTP_PORT};

listen 443 ssl;
Expand Down
Loading