-
Notifications
You must be signed in to change notification settings - Fork 10
/
nginx.conf
49 lines (41 loc) · 886 Bytes
/
nginx.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
upstream front {
server frontend:3100;
}
upstream back {
server backend:3000;
}
server {
listen 80;
listen [::]:80;
server_name localhost;
root /;
client_max_body_size 20M;
proxy_cache_valid 502 0;
location @front {
proxy_pass http://front;
}
location /sonolus/assets/ {
alias /app/backend-assets/;
}
location / {
try_files /app/backend-public$uri @front;
}
location /api/ {
proxy_pass http://back/api/;
}
location /test/sonolus/ {
proxy_pass http://back/test/sonolus/;
}
location /sonolus/ {
proxy_pass http://back/sonolus/;
}
location /rails/ {
proxy_pass http://back/rails/;
}
location /admin/sidekiq/ {
proxy_pass http://back/admin/sidekiq/;
}
location /test/ {
proxy_pass http://back/test/;
}
}