right-tree/nginx.production.conf

36 lines
777 B
Text
Raw Normal View History

2021-11-29 10:16:24 +13:00
http {
server {
2021-12-13 10:00:07 +13:00
listen 80 default_server;
server_name _;
return 301 https://$host$request_uri;
}
2023-03-28 13:00:15 +13:00
2021-12-13 10:00:07 +13:00
server {
2021-11-29 10:16:24 +13:00
listen 443 ssl;
index index.html;
2023-03-28 13:00:15 +13:00
include /etc/nginx/mime.types;
proxy_set_header Host $http_host;
2021-11-29 10:16:24 +13:00
2021-12-17 19:10:44 +13:00
ssl_certificate /etc/letsencrypt/live/rightplant.biospherecapital.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/rightplant.biospherecapital.com/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/rightplant.biospherecapital.com/chain.pem;
2021-11-29 10:16:24 +13:00
location / {
2023-03-28 13:00:15 +13:00
root /etc/nginx/html/build;
2021-11-29 10:16:24 +13:00
}
2023-03-28 13:00:15 +13:00
2021-11-29 10:16:24 +13:00
location /staticfiles {
2023-03-28 13:00:15 +13:00
root /etc/nginx/html/;
2021-11-29 10:16:24 +13:00
}
location ~* ^/(api|admin) {
proxy_pass http://backend:8000;
}
}
}
events {
# configuration of connection processing
}