blob: 469d5ea89f4c95a1a8c29fbc906ce4fde579d358 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
server {
listen 80;
listen [::]:80;
server_name env.taler.net;
rewrite ^ https://$host$request_uri? permanent;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name env.taler.net;
include conf.d/talerssl;
root /dev/null;
ssi on;
location ~ ^/(?<user>[a-zA-Z0-9-_]+)/exchange/admin {
proxy_pass http://unix:/home/$user/sockets/exchange-admin.http;
proxy_redirect off;
proxy_set_header Host $host;
}
location ~ ^/(?<user>[a-zA-Z0-9-_]+)/exchange/(?<req>.*) {
proxy_pass http://unix:/home/$user/sockets/exchange.http:/$req;
proxy_redirect off;
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;
uwsgi_param SCRIPT_NAME "/$user/";
uwsgi_param PATH_INFO "$req";
set $envroot "/$user/";
}
include conf.d/favicon_robots;
}
|