Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name food.passline.ru;
- root /var/www/rzd-front/dist/;
- client_max_body_size 1M;
- index index.html index.htm;
- location /api {
- proxy_pass http://192.168.122.6:8000;
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- }
- location /admin {
- proxy_pass http://192.168.122.6:8000;
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- }
- location /static/ {
- proxy_pass http://192.168.122.6:8000;
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- }
- location /media/ {
- proxy_pass http://192.168.122.6:8000;
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- }
- location / {
- try_files $uri $uri/ /index.html;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement