rm
yj
2024-12-05 e1d6142f80466747b3614bf8f26a583c9c7b1e87
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
server {
    listen      80;
    listen      443 ssl;
    server_name unimall.v3.dobbinsoft.com;
    ssl_certificate /etc/nginx/ssl/unimall.v3.dobbinsoft.com.pem;
    ssl_certificate_key /etc/nginx/ssl/unimall.v3.dobbinsoft.com.key;
    root         /usr/share/nginx/unimall.v3.dobbinsoft.com;
 
    location /m.api {
            proxy_set_header X-Forwarded-For $remote_addr;
            proxy_pass http://localhost:31002/m.api;
    }
 
    location /cb {
            proxy_pass http://localhost:31002/cb;
    }
 
    location /upload {
            proxy_pass http://localhost:31002/upload;
    }
 
    location / {
            root    /usr/share/nginx/unimall.v3.dobbinsoft.com/;
            if (!-e $request_filename) {
                rewrite ^/h5/* /h5/index.html last;
                break;
            }
    }
}