Skip to content

Commit 50ae4fb

Browse files
authored
Refactor CORS map configuration in nginx.conf
1 parent e25de9f commit 50ae4fb

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

nginx.conf

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ events {
22
worker_connections 1024;
33
}
44

5-
map $http_origin $allow_origin {
6-
~^https://(.*\.)?geode-solutions\.com$ $http_origin;
7-
default "";
8-
}
9-
105
http {
11-
# Nginx will handle gzip compression of responses from the app server
6+
map $http_origin $allow_origin {
7+
~^https://(.*\.)?geode-solutions\.com$ $http_origin;
8+
default "";
9+
}
10+
1211
gzip on;
1312
gzip_proxied any;
1413
gzip_types text/plain application/json;
@@ -53,4 +52,4 @@ http {
5352
proxy_set_header Upgrade websocket;
5453
}
5554
}
56-
}
55+
}

0 commit comments

Comments
 (0)