right-tree/nginx.conf

30 lines
555 B
Nginx Configuration File
Raw Normal View History

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