-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathedemocracia.conf
86 lines (71 loc) · 2.19 KB
/
edemocracia.conf
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
upstream edemocracia {
server edemocracia:8000 fail_timeout=10s;
}
upstream audiencias {
server audienciasweb:8000 fail_timeout=10s;
}
server {
listen 80;
real_ip_header X-Real-IP;
real_ip_recursive on;
client_max_body_size 4G;
location /audiencias/ {
resolver NAME_RESOLVER ipv6=off;
proxy_pass $scheme://audiencias;
proxy_read_timeout 90;
proxy_connect_timeout 90;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_redirect off;
location /audiencias/static/ {
alias /var/labhacker/audiencias/public/;
}
location /audiencias/media/ {
alias /var/labhacker/audiencias/public/media/;
}
}
location /static/ {
alias /var/labhacker/edemocracia/src/public/static/;
}
location /media/ {
alias /var/labhacker/edemocracia/src/public/media/;
}
location / {
proxy_pass $scheme://edemocracia;
proxy_read_timeout 90;
proxy_connect_timeout 90;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_redirect off;
location /wikilegis/static/ {
alias /var/labhacker/new-wikilegis/src/public/static/;
}
location /wikilegis/media/ {
alias /var/labhacker/new-wikilegis/src/public/media/;
}
location /wikilegis-arquivo/static/ {
alias /var/labhacker/wikilegis/wikilegis/public/;
}
location /wikilegis-arquivo/media/ {
alias /var/labhacker/wikilegis/wikilegis/public/media/;
}
location /pautaparticipativa/static/ {
alias /var/labhacker/pauta-participativa/src/public/static/;
}
location /expressao/assets/ {
alias /var/www/discourse/public/assets/;
}
location /expressao/javascripts/ {
alias /var/www/discourse/public/javascripts/;
}
location /expressao/images/ {
alias /var/www/discourse/public/images/;
}
location /expressao/stylesheets/ {
alias /var/www/discourse/tmp/stylesheet-cache/;
}
}
}