nginx now statically serves cantropee-frontend
This commit is contained in:
@@ -22,6 +22,11 @@ server {
|
|||||||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
root /usr/share/nginx/html/cantropee;
|
||||||
|
gzip_static on;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /api {
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
|
||||||
|
|||||||
@@ -47,6 +47,6 @@ server {
|
|||||||
proxy_pass http://trilium:8080/;
|
proxy_pass http://trilium:8080/;
|
||||||
}
|
}
|
||||||
location /panorama {
|
location /panorama {
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html/lobby-web;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@ docker run -d \
|
|||||||
-v ./data/nginx:/etc/nginx/conf.d \
|
-v ./data/nginx:/etc/nginx/conf.d \
|
||||||
-v ./data/certbot/conf:/etc/letsencrypt \
|
-v ./data/certbot/conf:/etc/letsencrypt \
|
||||||
-v ./data/certbot/www:/var/www/certbot \
|
-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 \
|
--restart=unless-stopped \
|
||||||
--network=dittmar.dev \
|
--network=dittmar.dev \
|
||||||
nginx
|
nginx
|
||||||
|
|||||||
Reference in New Issue
Block a user