Let NodeBB's NGINX serve more static files
This commit is contained in:
parent
70aa9b0421
commit
a79b29e551
3 changed files with 5 additions and 1 deletions
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"ansible.python.interpreterPath": "/bin/python"
|
||||||
|
}
|
|
@ -8,6 +8,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- "./nginx:/etc/nginx/conf.d:ro"
|
- "./nginx:/etc/nginx/conf.d:ro"
|
||||||
- "./build:/usr/src/app/build:ro"
|
- "./build:/usr/src/app/build:ro"
|
||||||
|
- "./uploads:/usr/src/app/public/uploads:rw"
|
||||||
environment:
|
environment:
|
||||||
VIRTUAL_HOST: {{ services.fedi_dk_nodebb.domain }}
|
VIRTUAL_HOST: {{ services.fedi_dk_nodebb.domain }}
|
||||||
VIRTUAL_PORT: 80
|
VIRTUAL_PORT: 80
|
||||||
|
|
|
@ -45,7 +45,7 @@ server {
|
||||||
|
|
||||||
location ~ ^/assets/(.*) {
|
location ~ ^/assets/(.*) {
|
||||||
root /usr/src/app;
|
root /usr/src/app;
|
||||||
try_files /build/public/$1 @nodebb;
|
try_files /build/public/$1 /public/$1 @nodebb;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
|
Loading…
Add table
Reference in a new issue