Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- worker_processes 4;
- thread_pool default threads=50 max_queue=100000;
- events {
- worker_connections 1024;
- }
- http {
- upstream webapp-service.io {
- server companies-service:3000 weight=10 max_fails=3 fail_timeout=30s;
- server jobs-service:3000 weight=10 max_fails=3 fail_timeout=30s;
- server profiles-service:3000 weight=10 max_fails=3 fail_timeout=30s;
- server users-service:3000 weight=10 max_fails=3 fail_timeout=30s;
- }
- server {
- listen 80;
- listen [::]:80;
- server_name webapp-service.io;
- location / {
- proxy_pass http://webapp-service.io;
- proxy_http_version 1.1;
- proxy_redirect off;
- proxy_buffering off;
- proxy_set_header Host $host;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- proxy_cache_bypass $http_upgrade;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement