commit 7b47c7cac3451a00a46c9c7a1c071a4f55ef35ac parent 2417909cd35c6f4b0cb0de8797d427b4b25f5f12 Author: Florian Dold <florian.dold@gmail.com> Date: Mon, 21 Nov 2016 22:26:16 +0100 bank/shop for env Diffstat:
| M | etc/nginx/sites-enabled/envs.site | | | 31 | ++++++++++++++++++++++++++++++- |
1 file changed, 30 insertions(+), 1 deletion(-)
diff --git a/etc/nginx/sites-enabled/envs.site b/etc/nginx/sites-enabled/envs.site @@ -25,6 +25,36 @@ server { proxy_set_header Host $host; } + location ~ ^/(?<user>[a-zA-Z0-9-_]+)/merchant-backend/(?<req>.*) { + proxy_pass http://unix:/home/$user/sockets/merchant.http:/$req; + proxy_redirect off; + proxy_set_header Host $host; + } + + location ~ ^/(?<user>[a-zA-Z0-9-_]+)/bank/(?<req>.*) { + uwsgi_pass unix:/home/$user/sockets/bank.uwsgi; + include /etc/nginx/uwsgi_params; + uwsgi_param SCRIPT_NAME "/$user/bank/"; + uwsgi_param PATH_INFO "$req"; + set $envroot "/$user/"; + } + + location ~ ^/(?<user>[a-zA-Z0-9-_]+)/shop/(?<req>.*) { + uwsgi_pass unix:/home/$user/sockets/shop.uwsgi; + include /etc/nginx/uwsgi_params; + uwsgi_param SCRIPT_NAME "/$user/shop/"; + uwsgi_param PATH_INFO "$req"; + set $envroot "/$user/"; + } + + location ~ ^/(?<user>[a-zA-Z0-9-_]+)/donations/(?<req>.*) { + uwsgi_pass unix:/home/$user/sockets/shop.uwsgi; + include /etc/nginx/uwsgi_params; + uwsgi_param SCRIPT_NAME "/$user/donations/"; + uwsgi_param PATH_INFO "$req"; + set $envroot "/$user/"; + } + location ~ ^/(?<user>[a-zA-Z0-9-_]+)/(?<req>.*) { uwsgi_pass unix:/home/$user/sockets/landing.uwsgi; include /etc/nginx/uwsgi_params; @@ -33,6 +63,5 @@ server { set $envroot "/$user/"; } - include conf.d/favicon_robots; }