-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathnginx.conf
111 lines (87 loc) · 2.21 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
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
upstream auth1 {
server auth1:8000;
}
upstream kryptos {
server kryptos:8001;
}
upstream circuimstance {
server circuimstance:8004;
}
upstream dalalbull {
server dalalbull:8002;
}
upstream dalalbulldaphne {
server dalalbulldaphne:8003;
}
# upstream frontend {
# server frontend:3000;
# }
server {
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/wcerror.log;
rewrite ^/games/kryptos/michelelias$ https://www.dropbox.com/s/ql3bqmfpgq7e17m/michelelias?dl=0 redirect;
location /media/ {
autoindex off;
alias /var/www/media/;
}
location /django_static/ {
autoindex off;
alias /var/www/static/;
}
location /admin/ {
proxy_pass http://auth1/admin/;
proxy_set_header Host $host;
}
location /kadmin/ {
proxy_pass http://kryptos/kadmin/;
proxy_set_header Host $host;
}
location /cadmin/ {
proxy_pass http://circuimstance/cadmin/;
proxy_set_header Host $host;
}
location /dbadmin/ {
proxy_pass http://dalalbull/dbadmin/;
proxy_set_header Host $host;
}
location /kryptos/ {
proxy_pass http://kryptos/;
proxy_set_header Host $host;
}
location /kryptos_media/ {
autoindex off;
alias /var/www/media/kryptos_media/;
}
location /circuimstance_media/ {
autoindex off;
alias /var/www/media/circuimstance_media/;
}
location /auth/ {
proxy_pass http://auth1/;
proxy_set_header Host $host;
}
location /circuimstance/ {
proxy_pass http://circuimstance/;
proxy_set_header Host $host;
}
location /dalalbull/ {
proxy_pass http://dalalbull/;
proxy_set_header Host $host;
}
location /dalalbullws/ {
proxy_pass http://dalalbulldaphne/;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
location / {
root /usr/share/nginx/html;
try_files $uri $uri/ /index.html;
}
# location / {
# proxy_pass http://frontend/;
# proxy_set_header Host $host;
# }
listen 80;
server_name 35.200.222.240;
}