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

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

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

ardumont added a subscriber: ardumont.
ardumont added inline comments.
docker/conf/nginx.conf
84

formatting ;)

What's the script_name?

This revision is now accepted and ready to land.Dec 10 2019, 2:59 PM
docker/conf/nginx.conf
84

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

docker/conf/nginx.conf
84

thx