xiatian před 4 roky
rodič
revize
80f8b2a9b5
1 změnil soubory, kde provedl 29 přidání a 0 odebrání
  1. 29 0
      nginx/prod-192.168.1.60/sites/http7000.conf

+ 29 - 0
nginx/prod-192.168.1.60/sites/http7000.conf

@@ -0,0 +1,29 @@
+server {
+	listen 7000;
+	charset utf-8;
+	
+	location = / {
+		rewrite / /admin/ last;
+	}
+
+	location = /admin {
+		rewrite /admin /admin/ last;
+	}
+
+	location ^~ /admin/ {
+		alias /home/admin/project/union-question/static-new/admin/dist/;
+		try_files $uri $uri/ /admin/index.html;
+	}
+
+	location ^~ /admin/js/ {
+		alias /home/admin/project/union-question/static-new/admin/dist/js/;
+		try_files $uri $uri/ =404;
+	}
+
+	location ^~ /api/uq_basic/ {
+		proxy_pass http://192.168.10.39:7001;
+			proxy_set_header X-Real-IP $remote_addr;
+		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+	}
+
+}