41 lines
671 B
Nginx Configuration File
41 lines
671 B
Nginx Configuration File
|
|
worker_processes 4;
|
|
|
|
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
|
|
http {
|
|
upstream web {
|
|
server web:3000;
|
|
}
|
|
|
|
upstream api {
|
|
server api:3001;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
include /etc/nginx/mime.types;
|
|
|
|
|
|
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 / {
|
|
proxy_pass http://api/;
|
|
}
|
|
|
|
location /login {
|
|
proxy_pass http://web;
|
|
|
|
limit_except GET {
|
|
deny all;
|
|
}
|
|
}
|
|
}
|
|
} |