Page MenuHomeSoftware Heritage

docker/deposit: configure nginx so the WSGI mountpoint for /deposit is ok-ish
ClosedPublic

Authored by douardda on Dec 10 2019, 1:16 PM.

Diff Detail

Repository
rDENV Development environment
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

douardda created this revision.Dec 10 2019, 1:16 PM
douardda updated this revision to Diff 8568.Dec 10 2019, 2:18 PM

add X-Forwarded-Host header and configure allowed_hosts as '*'

so URLs crafted by swh-deposit are valid and resolvable.

ardumont accepted this revision.Dec 10 2019, 2:59 PM
ardumont added a subscriber: ardumont.
ardumont added inline comments.
docker/conf/nginx.conf
85

formatting ;)

What's the script_name?

This revision is now accepted and ready to land.Dec 10 2019, 2:59 PM
douardda added inline comments.Dec 19 2019, 10:33 AM
docker/conf/nginx.conf
85

Script_name is a header used to specify a mountpoint of a WSGI app, see https://wsgi.readthedocs.io/en/latest/specifications/routing_args.html#rationale

ardumont added inline comments.Dec 19 2019, 10:53 AM
docker/conf/nginx.conf
85

thx