-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathsmpe-admin.conf
56 lines (45 loc) · 1.29 KB
/
smpe-admin.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#参考博客:https://blog.csdn.net/qq_42937522/article/details/108179441
upstream myserver{
server 172.17.0.4:8000;
server 172.17.0.5:8000;
}
server{
listen 80;
#域名,根据实际情况修改
server_name paky.hist.edu.cn;
client_max_body_size 20m;
access_log /var/log/nginx/host.access.log main;
#前台,根据实际情况修改
location /portal {
alias /var/www/html/safe_keyuan/safe_keyuan_portal/dist;
try_files $uri $uri/ /index.html?s=$uri&$args;
index index.html index.htm index.php;
}
#后台,根据实际情况修改
location / {
root /var/www/html/safe_keyuan/safe_keyuan_admin/dist;
try_files $uri $uri/ /index.html?s=$uri&$args;
index index.html index.htm index.php;
}
#后端
location /api {
proxy_pass http://myserver;
index index.html index.htm;
}
location /swagger-ui.html {
proxy_pass http://myserver;
index index.html index.htm;
}
location /webjars {
proxy_pass http://myserver;
index index.html index.htm;
}
location /swagger-resources {
proxy_pass http://myserver;
index index.html index.htm;
}
location /v2 {
proxy_pass http://myserver;
index index.html index.htm;
}
}