Evo.Auth/nginx.conf
Chika 264d673019 fix authentication
add example nginx.conf
2022-11-30 18:46:08 +03:00

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;
}
}
}
}