|
@@ -18,9 +18,9 @@ http {
|
|
|
include mime.types;
|
|
|
default_type application/octet-stream;
|
|
|
|
|
|
- #log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
|
|
- # '$status $body_bytes_sent "$http_referer" '
|
|
|
- # '"$http_user_agent" "$http_x_forwarded_for"';
|
|
|
+ log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
|
|
+ '$status $body_bytes_sent "$http_referer" '
|
|
|
+ '"$http_user_agent" "$http_x_forwarded_for"';
|
|
|
|
|
|
#access_log logs/access.log main;
|
|
|
|
|
@@ -34,22 +34,28 @@ http {
|
|
|
|
|
|
server {
|
|
|
listen 80;
|
|
|
- server_name scocial-management-platform-frontend;
|
|
|
+ server_name _;
|
|
|
|
|
|
#charset koi8-r;
|
|
|
|
|
|
#access_log logs/host.access.log main;
|
|
|
|
|
|
location / {
|
|
|
- root html;
|
|
|
+ root dist;
|
|
|
index index.html index.htm;
|
|
|
}
|
|
|
- location ^~/api/ {
|
|
|
- rewrite ^/api/(.*)$ /$1 break;
|
|
|
- proxy_set_header Host $host;
|
|
|
- proxy_set_header x-forwarded-for $remote_addr;
|
|
|
- proxy_set_header X-Real-IP $remote_addr;
|
|
|
- proxy_pass http://192.168.12.225:31903;
|
|
|
+ location /login {
|
|
|
+ proxy_pass http://192.168.12.225:31903/login;
|
|
|
+ proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
+ proxy_set_header Host $http_host;
|
|
|
+ proxy_set_header X-Real-IP $remote_addr;
|
|
|
+ }
|
|
|
+
|
|
|
+ location /sys/menu/list {
|
|
|
+ proxy_pass http://192.168.12.225:31903/sys/menu/list;
|
|
|
+ proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
+ proxy_set_header Host $http_host;
|
|
|
+ proxy_set_header X-Real-IP $remote_addr;
|
|
|
}
|
|
|
#error_page 404 /404.html;
|
|
|
|