Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- upstream ui_rest {
- server localhost:8000;
- }
- server {
- listen 80;
- server_name localhost;
- root /usr/share/stork/www;
- index index.html;
- location /api {
- proxy_pass http://ui_rest;
- proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
- proxy_buffering off;
- proxy_set_header Accept-Encoding "";
- }
- location /swagger.json {
- proxy_pass http://ui_rest;
- proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
- proxy_buffering off;
- proxy_set_header Accept-Encoding "";
- }
- location / {
- try_files $uri $uri/ /index.html;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement