right-tree/nginx.conf
Dana Lambert a050f0083e Fix development nginx setup
- Expose 3000 for hot reload
- Apply conditional for respository base URL
- Include static files for django admin
2021-12-01 09:39:45 +13:00

24 lines
391 B
Nginx Configuration File

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