diff --git a/nginxdashuju/vhosts/airport.conf b/nginxdashuju/vhosts/airport.conf index 6162d91..4f7a499 100644 --- a/nginxdashuju/vhosts/airport.conf +++ b/nginxdashuju/vhosts/airport.conf @@ -21,6 +21,14 @@ gzip_vary on; gzip_disable "MSIE [1-6]\."; + add_header X-Frame-Options ALLOWALL; + + add_header 'Access-Control-Allow-Origin' 'https://${BUSINESS_DOMAIN_FULL}' always; + add_header 'Access-Control-Allow-Credentials' 'true' always; + add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always; + add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization, X-Requested-With' always; + + location /{ try_files $uri $uri/ @router; index index.html; diff --git a/nginxdashuju/vhosts/upstream.conf b/nginxdashuju/vhosts/upstream.conf index 26bc325..512a7c8 100644 --- a/nginxdashuju/vhosts/upstream.conf +++ b/nginxdashuju/vhosts/upstream.conf @@ -6,4 +6,6 @@ upstream airportService { server ${AIRPORT_NAME}:9060; } - +upstream businessService { + server ${BUSINESS_NAME}:9260; +}