felicity-lims/services/nginx/default.conf
2021-10-17 17:31:14 +02:00

24 lines
No EOL
450 B
Text

upstream backend {
ip_hash;
server backend:8000;
}
upstream frontend {
ip_hash;
server frontend:3000;
}
server {
location ~ /(api|felicity-gql)/ {
proxy_pass http://backend;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Host $host;
}
location / {
proxy_pass http://frontend;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Host $host;
}
listen 80;
server_name localhost;
}