lushuncheng hace 6 años
padre
commit
1d707191da
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  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') {