Guest User

Untitled

a guest
Jun 6th, 2020
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. upstream api {
  2. ip_hash;
  3. server 0.0.0.0:8000;
  4. }
  5.  
  6. server {
  7. listen 80;
  8. server_name localhost;
  9.  
  10. client_max_body_size 40M;
  11.  
  12. location / {
  13. root /var/www/html/openeats-static/public-ui;
  14. try_files $uri $uri/ /index.html;
  15. }
  16.  
  17. location /static/ {
  18. root /var/www/html/openeats-static/public-ui;
  19. gzip on;
  20. gzip_types text/plain text/xml text/css
  21. text/comma-separated-values
  22. text/javascript application/x-javascript
  23. application/javascript
  24. application/atom+xml;
  25.  
  26. expires max;
  27. }
  28.  
  29. location /api/ {
  30. proxy_pass http://api;
  31. proxy_set_header Host $http_host;
  32. }
  33.  
  34. location /admin/ {
  35. proxy_pass http://api;
  36. proxy_set_header Host $http_host;
  37. }
  38.  
  39. location /static-files/ {
  40. root /var/www/html/openeats-static;
  41. try_files $uri /static-files/$uri;
  42. }
  43.  
  44. location /site-media/ {
  45. root /var/www/html/openeats-static;
  46. try_files $uri /site-media/$uri;
  47. }
  48. }
Add Comment
Please, Sign In to add comment