-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
163 lines (132 loc) · 4.43 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
worker_processes 1;
events { worker_connections 1024; }
http {
server {
listen 80;
client_max_body_size 2G;
proxy_read_timeout 600s;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
location /auth {
resolver 127.0.0.11 valid=30s;
set $link api_auth;
proxy_pass http://$link:8080$request_uri;
}
location /awards {
resolver 127.0.0.11 valid=30s;
set $link api_awards;
proxy_pass http://$link:8080$request_uri;
}
location /ping {
resolver 127.0.0.11 valid=30s;
set $link api_ping;
proxy_pass http://$link:8080$request_uri;
}
location /quizzes {
resolver 127.0.0.11 valid=30s;
set $link api_quizzes;
proxy_pass http://$link:8080$request_uri;
}
location /calendars {
resolver 127.0.0.11 valid=30s;
set $link api_calendars;
proxy_pass http://$link:8080$request_uri;
}
location /events {
resolver 127.0.0.11 valid=30s;
set $link api_events;
proxy_pass http://$link:8080$request_uri;
}
location /people {
resolver 127.0.0.11 valid=30s ipv6=off;
set $link api_people;
proxy_pass http://$link:8080$request_uri;
}
location /il {
resolver 127.0.0.11 valid=30s ipv6=off;
set $link api_il;
proxy_pass http://$link:8080$request_uri;
}
location /accreditation {
resolver 127.0.0.11 valid=30s;
set $link api_accreditation;
proxy_pass http://$link:8080$request_uri;
}
location /org {
resolver 127.0.0.11 valid=30s ipv6=off;
set $link api_organizations;
proxy_pass http://$link:8080$request_uri;
}
location /results {
resolver 127.0.0.11 valid=30s;
set $link api_results;
proxy_pass http://$link:8080$request_uri;
}
location /registrations {
resolver 127.0.0.11 valid=30s ipv6=off;
set $link host.docker.internal;
proxy_pass http://$link:8888$request_uri;
}
location /logs {
resolver 127.0.0.11 valid=30s;
set $link api_logs;
proxy_pass http://$link:8080$request_uri;
}
location /images {
resolver 127.0.0.11 valid=30s;
set $link api_images;
proxy_pass http://$link:8080$request_uri;
}
location /centres {
resolver 127.0.0.11 valid=30s ipv6=off;
set $link host.docker.internal;
proxy_pass http://$link:8888$request_uri;
}
location /skillman {
resolver 127.0.0.11 valid=30s;
set $link api_skillman;
proxy_pass http://$link:8080$request_uri;
}
location /forums {
resolver 127.0.0.11 valid=30s ipv6=off;
set $link api_forums;
proxy_pass http://$link:8080$request_uri;
}
location /resources {
resolver 127.0.0.11 valid=30s;
set $link api_resources;
proxy_pass http://$link:8080$request_uri;
}
location /votes {
resolver 127.0.0.11 valid=30s ipv6=off;
set $link api_votes;
proxy_pass http://$link:8080$request_uri;
}
location /metrics {
resolver 127.0.0.11 valid=30s ipv6=off;
set $link host.docker.internal;
proxy_pass http://$link:8888$request_uri;
}
location /conferences {
resolver 127.0.0.11 valid=30s;
set $link api_conferences;
proxy_pass http://$link:8080$request_uri;
}
location /mails {
resolver 127.0.0.11 valid=30s;
set $link api_mails;
proxy_pass http://$link:8080$request_uri;
}
location /rooms {
resolver 127.0.0.11 valid=30s ipv6=off;
set $link host.docker.internal;
proxy_pass http://$link:8888$request_uri;
}
location /glossary {
resolver 127.0.0.11 valid=30s;
set $link api_glossary;
proxy_pass http://$link:8080$request_uri;
}
}
}