Skip to content

Commit 1799735

Browse files
committed
revert nginx changes
1 parent 36fbea3 commit 1799735

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

install/conf/nginx.conf

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,19 @@ server {
1313
server_tokens off;
1414
client_max_body_size 200M;
1515

16-
17-
18-
location / {
19-
location ~ ^/(api|admin)/(.*)$ {
20-
proxy_pass http://django;
21-
proxy_set_header X-Real-IP $remote_addr;
22-
proxy_set_header X-Forwarded-Proto $scheme;
23-
proxy_set_header X-Forwarded-Host $host;
24-
proxy_set_header X-Forwarded-Server $host;
25-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
26-
proxy_set_header Host $http_host;
27-
proxy_redirect off;
28-
}
29-
30-
try_files $uri @frontend;
16+
location ~ ^/(api|admin) {
17+
proxy_pass http://django;
18+
proxy_set_header X-Real-IP $remote_addr;
19+
proxy_set_header X-Forwarded-Proto $scheme;
20+
proxy_set_header X-Forwarded-Host $host;
21+
proxy_set_header X-Forwarded-Server $host;
22+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
23+
proxy_set_header Host $http_host;
24+
proxy_redirect off;
3125
}
3226

27+
try_files $uri @frontend;
28+
3329
# Setup named location for Django requests and handle proxy details
3430
location @frontend {
3531
proxy_pass http://frontend;

0 commit comments

Comments
 (0)