-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
48 lines (40 loc) · 1.3 KB
/
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
events {}
http {
proxy_read_timeout 3600;
proxy_connect_timeout 3600;
proxy_send_timeout 3600;
server {
include /etc/nginx/mime.types;
listen 0.0.0.0:80 default_server;
listen [::]:80 default_server;
server_name _;
location /api {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_pass http://backend:8000/api;
}
location /admin {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_pass http://backend:8000/admin;
}
location /rest-auth {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_pass http://backend:8000/rest-auth;
}
location /static/ {
autoindex on;
alias /static/;
}
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://frontend:4200;
}
}
}