Advertisement
Guest User

/etc/nginx/sites-available/nginx-stork.conf

a guest
Sep 6th, 2021
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. upstream ui_rest {
  2. server localhost:8000;
  3. }
  4.  
  5. server {
  6. listen 80;
  7. server_name localhost;
  8. root /usr/share/stork/www;
  9. index index.html;
  10.  
  11. location /api {
  12. proxy_pass http://ui_rest;
  13. proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
  14. proxy_buffering off;
  15. proxy_set_header Accept-Encoding "";
  16. }
  17.  
  18. location /swagger.json {
  19. proxy_pass http://ui_rest;
  20. proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
  21. proxy_buffering off;
  22. proxy_set_header Accept-Encoding "";
  23. }
  24.  
  25. location / {
  26. try_files $uri $uri/ /index.html;
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement