right-tree/nginx.conf

25 lines
391 B
Nginx Configuration File
Raw Normal View History

2021-11-16 17:30:40 +13:00
http {
server {
listen 80;
include /etc/nginx/mime.types;
proxy_set_header Host $http_host;
location / {
proxy_pass http://frontend:3000;
2021-11-16 17:30:40 +13:00
}
location /staticfiles {
root /etc/nginx/html/;
}
2021-11-16 17:30:40 +13:00
location ~* ^/(api|admin) {
proxy_pass http://backend:8000;
}
}
}
events {
# configuration of connection processing
}