Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- upstream api {
- ip_hash;
- server 0.0.0.0:8000;
- }
- server {
- listen 80;
- server_name localhost;
- client_max_body_size 40M;
- location / {
- root /var/www/html/openeats-static/public-ui;
- try_files $uri $uri/ /index.html;
- }
- location /static/ {
- root /var/www/html/openeats-static/public-ui;
- gzip on;
- gzip_types text/plain text/xml text/css
- text/comma-separated-values
- text/javascript application/x-javascript
- application/javascript
- application/atom+xml;
- expires max;
- }
- location /api/ {
- proxy_pass http://api;
- proxy_set_header Host $http_host;
- }
- location /admin/ {
- proxy_pass http://api;
- proxy_set_header Host $http_host;
- }
- location /static-files/ {
- root /var/www/html/openeats-static;
- try_files $uri /static-files/$uri;
- }
- location /site-media/ {
- root /var/www/html/openeats-static;
- try_files $uri /site-media/$uri;
- }
- }
Add Comment
Please, Sign In to add comment