38 lines
786 B
Plaintext
38 lines
786 B
Plaintext
|
|
## Version 2024/07/16 - Changelog: https://github.com/linuxserver/docker-babybuddy/commits/main/root/defaults/nginx/site-confs/default.conf.sample
|
||
|
|
|
||
|
|
server {
|
||
|
|
listen 80 default_server;
|
||
|
|
listen [::]:80 default_server;
|
||
|
|
listen 443 ssl default_server;
|
||
|
|
listen [::]:443 ssl default_server;
|
||
|
|
|
||
|
|
listen 8000;
|
||
|
|
listen [::]:8000;
|
||
|
|
|
||
|
|
server_name _;
|
||
|
|
|
||
|
|
include /config/nginx/ssl.conf;
|
||
|
|
|
||
|
|
client_max_body_size 0;
|
||
|
|
|
||
|
|
location / {
|
||
|
|
proxy_pass http://127.0.0.1:3000;
|
||
|
|
proxy_set_header Host $http_host;
|
||
|
|
proxy_redirect off;
|
||
|
|
}
|
||
|
|
|
||
|
|
location ^~ /media/ {
|
||
|
|
root /app/www/public;
|
||
|
|
}
|
||
|
|
|
||
|
|
location ^~ /static/ {
|
||
|
|
root /app/www/public;
|
||
|
|
}
|
||
|
|
|
||
|
|
# deny access to .htaccess/.htpasswd files
|
||
|
|
location ~ /\.ht {
|
||
|
|
deny all;
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|