From 5e1af8ae706d4865d8f42f0cfb137a0388cd7510 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=B0=8F=E4=BA=91?= Date: Sat, 28 Jun 2025 09:27:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginxdashuju/vhosts/airport.conf | 8 ++++++++ nginxdashuju/vhosts/upstream.conf | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) 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; +}