nginx now statically serves cantropee-frontend

This commit is contained in:
2023-11-04 19:09:41 +01:00
parent 0c79851b23
commit 54ebc211be
3 changed files with 7 additions and 2 deletions
+5
View File
@@ -22,6 +22,11 @@ server {
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
location / {
root /usr/share/nginx/html/cantropee;
gzip_static on;
}
location /api {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
+1 -1
View File
@@ -47,6 +47,6 @@ server {
proxy_pass http://trilium:8080/;
}
location /panorama {
root /usr/share/nginx/html;
root /usr/share/nginx/html/lobby-web;
}
}
+1 -1
View File
@@ -7,7 +7,7 @@ docker run -d \
-v ./data/nginx:/etc/nginx/conf.d \
-v ./data/certbot/conf:/etc/letsencrypt \
-v ./data/certbot/www:/var/www/certbot \
-v ./data/lobby-web:/usr/share/nginx/html \
-v ./data/nginx/serve:/usr/share/nginx/html \
--restart=unless-stopped \
--network=dittmar.dev \
nginx