Skip to content

Commit c7db9c9

Browse files
shawnhankimdekobon
authored andcommitted
fix: add CORS_ALLOWED_ORIGIN in the nginx env
1 parent 47d58be commit c7db9c9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

standalone_ubuntu_oss_install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,10 @@ if [ -z "${CORS_ALLOWED_ORIGIN+x}" ]; then
178178
CORS_ALLOWED_ORIGIN="*"
179179
fi
180180

181+
cat >> "/etc/nginx/environment" << EOF
182+
CORS_ALLOWED_ORIGIN=${CORS_ALLOWED_ORIGIN}
183+
EOF
184+
181185
# Only include these env vars if we are not using a instance profile credential
182186
# to obtain S3 permissions.
183187
if [ $uses_iam_creds -eq 0 ]; then

0 commit comments

Comments
 (0)