|
@@ -1,66 +1,48 @@
|
|
|
server {
|
|
|
|
|
|
- listen 80;
|
|
|
- server_name 192.168.31.157; #改成对应的HOST
|
|
|
-
|
|
|
- location /Bug {
|
|
|
- proxy_pass http://crowd-service-backend-api;
|
|
|
- }
|
|
|
-
|
|
|
- location ^~ /dashboard/ {
|
|
|
- proxy_pass http://192.168.31.157:6666;
|
|
|
- #return 404;
|
|
|
- }
|
|
|
-
|
|
|
- location ^~ /static/ {
|
|
|
- proxy_pass http://192.168.31.157:6666;
|
|
|
- }
|
|
|
-
|
|
|
- location /QC {
|
|
|
- proxy_pass http://127.0.0.1:8080;
|
|
|
- }
|
|
|
-
|
|
|
- location /var {
|
|
|
- root /;
|
|
|
- index index.html index.htm;
|
|
|
- }
|
|
|
-
|
|
|
- # location ^~ /document/ {
|
|
|
- # alias /back_end/document/; # 文件存放目录,注意要以 '/' 结尾;
|
|
|
- # index index.html; # 如果文件存放目录有 index.html,会跳转到 index.html;
|
|
|
- # autoindex on; # 自动列出目录下的文件;
|
|
|
- # autoindex_exact_size off; # 文件大小按 G、M 的格式显示,而不是 Bytes;
|
|
|
- # }
|
|
|
-
|
|
|
- # location ^~ /resourceXinchuang/ {
|
|
|
- # alias /Users/hannatao/Downloads/; # 文件存放目录,注意要以 '/' 结尾;
|
|
|
- # index index.html; # 如果文件存放目录有 index.html,会跳转到 index.html;
|
|
|
- # autoindex on; # 自动列出目录下的文件;
|
|
|
- # autoindex_exact_size off; # 文件大小按 G、M 的格式显示,而不是 Bytes;
|
|
|
- # }
|
|
|
-
|
|
|
-
|
|
|
- location / {
|
|
|
- proxy_pass http://192.168.31.157:5555;
|
|
|
- #return 404;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- server {
|
|
|
- listen 5555;
|
|
|
- server_name 192.168.31.157;
|
|
|
- location / {
|
|
|
- root /usr/share/nginx/html/;
|
|
|
- index index.html;
|
|
|
- try_files $uri $uri/ /index.html;
|
|
|
- }
|
|
|
- }
|
|
|
- server {
|
|
|
- listen 6666;
|
|
|
- server_name 192.168.31.157;
|
|
|
- location / {
|
|
|
- root /databoard/dist/;
|
|
|
- index index.html;
|
|
|
- try_files $uri $uri/ /index.html;
|
|
|
- }
|
|
|
- }
|
|
|
+ listen 80;
|
|
|
+ server_name 192.168.31.157; #改成对应的HOST
|
|
|
+
|
|
|
+ location / {
|
|
|
+ root /usr/share/nginx/html/;
|
|
|
+ index index.html;
|
|
|
+ try_files $uri $uri/ /index.html;
|
|
|
+ }
|
|
|
+
|
|
|
+ location /Bug {
|
|
|
+ proxy_pass http://crowd-service-backend-api;
|
|
|
+ }
|
|
|
+
|
|
|
+ location ^~ /dashboard/ {
|
|
|
+ root /databoard/dist/;
|
|
|
+ index index.html;
|
|
|
+ }
|
|
|
+
|
|
|
+ location ^~ /static/ {
|
|
|
+ root /databoard/dist/;
|
|
|
+ index index.html;
|
|
|
+ }
|
|
|
+
|
|
|
+ location /QC {
|
|
|
+ proxy_pass http://127.0.0.1:8080;
|
|
|
+ }
|
|
|
+
|
|
|
+ location /var {
|
|
|
+ root /;
|
|
|
+ index index.html index.htm;
|
|
|
+ }
|
|
|
+
|
|
|
+ # location ^~ /document/ {
|
|
|
+ # alias /back_end/document/; # 文件存放目录,注意要以 '/' 结尾;
|
|
|
+ # index index.html; # 如果文件存放目录有 index.html,会跳转到 index.html;
|
|
|
+ # autoindex on; # 自动列出目录下的文件;
|
|
|
+ # autoindex_exact_size off; # 文件大小按 G、M 的格式显示,而不是 Bytes;
|
|
|
+ # }
|
|
|
+
|
|
|
+ # location ^~ /resourceXinchuang/ {
|
|
|
+ # alias /Users/hannatao/Downloads/; # 文件存放目录,注意要以 '/' 结尾;
|
|
|
+ # index index.html; # 如果文件存放目录有 index.html,会跳转到 index.html;
|
|
|
+ # autoindex on; # 自动列出目录下的文件;
|
|
|
+ # autoindex_exact_size off; # 文件大小按 G、M 的格式显示,而不是 Bytes;
|
|
|
+ # }
|
|
|
+}
|