1234567891011121314151617181920212223242526 |
- server {
- listen 8080;
- server_name localhost;
-
-
- location / {
- root /usr/share/nginx/html;
- add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
- try_files $uri $uri/ /index.html;
- }
- location /api {
- proxy_set_header Host $http_host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-Proto $scheme;
- rewrite ^/api/(.*)$ /$1 break;
- proxy_pass http://177.7.0.12:8888;
- }
- location /api/swagger/index.html {
- proxy_pass http://127.0.0.1:8888/swagger/index.html;
- }
- }
|