lushuncheng 6 yıl önce
ebeveyn
işleme
1d707191da
1 değiştirilmiş dosya ile 4 ekleme ve 4 silme
  1. 4 4
      config/nginx/template/proxy.nginx.conf

+ 4 - 4
config/nginx/template/proxy.nginx.conf

@@ -40,7 +40,7 @@ server {
         proxy_http_version 1.1;
 
         #=========================CORS nginx配置=============================
-        if ($http_origin ~* (https?://([0-9a-z\-_]+\.)\.test\.proginn\.com(:[0-9]+)?)$) {
+        if ($http_origin ~* (https?://([0-9a-z\-_]+)\.(test|test-rooter|test-jishuin|test-festival)\.proginn\.com(:[0-9]+)?)$) {
             set $cors "true";
         }
         if ($request_method = 'OPTIONS') {
@@ -116,7 +116,7 @@ server {
         proxy_http_version 1.1;
 
         #=========================CORS nginx配置=============================
-        if ($http_origin ~* (https?://([0-9a-z\-_]+\.)\.test\-rooter\.proginn\.com(:[0-9]+)?)$) {
+        if ($http_origin ~* (https?://([0-9a-z\-_]+)\.(test|test-rooter|test-jishuin|test-festival)\.proginn\.com(:[0-9]+)?)$) {
             set $cors "true";
         }
         if ($request_method = 'OPTIONS') {
@@ -188,7 +188,7 @@ server {
         proxy_http_version 1.1;
 
         #=========================CORS nginx配置=============================
-        if ($http_origin ~* (https?://([0-9a-z\-_]+\.)\.test\-jishuin\.proginn\.com(:[0-9]+)?)$) {
+        if ($http_origin ~* (https?://([0-9a-z\-_]+)\.(test|test-rooter|test-jishuin|test-festival)\.proginn\.com(:[0-9]+)?)$) {
             set $cors "true";
         }
         if ($request_method = 'OPTIONS') {
@@ -260,7 +260,7 @@ server {
         proxy_http_version 1.1;
 
         #=========================CORS nginx配置=============================
-        if ($http_origin ~* (https?://([0-9a-z\-_]+\.)\.test\-festival\.proginn\.com(:[0-9]+)?)$) {
+        if ($http_origin ~* (https?://([0-9a-z\-_]+)\.(test|test-rooter|test-jishuin|test-festival)\.proginn\.com(:[0-9]+)?)$) {
             set $cors "true";
         }
         if ($request_method = 'OPTIONS') {