Skip to content

Commit

Permalink
sync beta uwsgi.ini with dev
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmoud committed Jun 11, 2017
1 parent fb6475b commit fff0edd
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions config/beta-uwsgi.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,16 @@ plugins = python,router_redirect
# due to the way the javascript bundle works, a trailing slash is
# necessary on the app URL. due to the way mounts work in uwsgi, this
# slash can't be issued from the app. instead we use uwsgi's routing
# table. the order of the lines matters, keep this where it is (above
# the mount) unless you know what you're doing.
# table. line order matters, so leave it where it is unless you know
# what you're doing.

route = ^/montage-beta$ log:hit slashless root, attempting to redirect
route = ^/montage-beta$ redirect-permanent:https://tools.wmflabs.org/montage-beta/
route = ^$ log:adding slash to root
route = ^$ redirect-permanent:https://tools.wmflabs.org/montage-beta/

route-if = equal:${HTTP_X_FORWARDED_PROTO};http log:redirecting to https ${REQUEST_URI}
route-if = equal:${HTTP_X_FORWARDED_PROTO};http redirect-permanent:https://tools.wmflabs.org${REQUEST_URI}

mount = /montage-beta=/data/project/montage-beta/montage/montage/server.py
workers = 10

lazy-apps = true

0 comments on commit fff0edd

Please sign in to comment.