Let NodeBB's NGINX serve more static files

This commit is contained in:
Sam Al-Sapti 2025-02-24 23:51:51 +01:00
parent 70aa9b0421
commit a79b29e551
No known key found for this signature in database
GPG key ID: CBBBE7371E81C4EA
3 changed files with 5 additions and 1 deletions

3
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,3 @@
{
"ansible.python.interpreterPath": "/bin/python"
}

View file

@ -8,6 +8,7 @@ services:
volumes:
- "./nginx:/etc/nginx/conf.d:ro"
- "./build:/usr/src/app/build:ro"
- "./uploads:/usr/src/app/public/uploads:rw"
environment:
VIRTUAL_HOST: {{ services.fedi_dk_nodebb.domain }}
VIRTUAL_PORT: 80

View file

@ -45,7 +45,7 @@ server {
location ~ ^/assets/(.*) {
root /usr/src/app;
try_files /build/public/$1 @nodebb;
try_files /build/public/$1 /public/$1 @nodebb;
}
location / {