Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- upstream app.destralegal {
- server 192.168.0.101:2002;
- }
- upstream api.destralegal {
- server 192.168.0.102:5001;
- }
- server {
- server_name destralegal.ru;
- error_page 500 501 502 504 505 /errors/500.html;
- error_page 404 /errors/404.html;
- access_log /var/www/destralegal.ru/app/runtime/logs/access.nginx.log;
- error_log /var/www/destralegal.ru/app/runtime/logs/error.nginx.log;
- client_max_body_size 100M;
- client_body_buffer_size 50M;
- location / {
- proxy_redirect off;
- proxy_buffering off;
- proxy_pass http://app.destralegal;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection 'upgrade';
- proxy_set_header Host $host;
- proxy_cache_bypass $http_upgrade;
- }
- location /api/v1 {
- proxy_redirect off;
- proxy_buffering off;
- proxy_pass http://api.destralegal;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection 'upgrade';
- proxy_set_header Host $host;
- proxy_cache_bypass $http_upgrade;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement