From 1e49620eb3e513fddf0050c516dc3a24094d2651 Mon Sep 17 00:00:00 2001 From: Raine Date: Tue, 14 Nov 2023 03:24:22 +0100 Subject: [PATCH] feat: add cdn raw data --- servers/keymaker/docker-compose.d/custom/nginx/conf.d/cdn.conf | 2 +- servers/keymaker/docker-compose.d/docker-compose.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/servers/keymaker/docker-compose.d/custom/nginx/conf.d/cdn.conf b/servers/keymaker/docker-compose.d/custom/nginx/conf.d/cdn.conf index 301573d..56a746e 100644 --- a/servers/keymaker/docker-compose.d/custom/nginx/conf.d/cdn.conf +++ b/servers/keymaker/docker-compose.d/custom/nginx/conf.d/cdn.conf @@ -25,7 +25,7 @@ server { } location / { - root /usr/share/nginx/html; + root /cdn_data; } location ~ /assets(.*) { diff --git a/servers/keymaker/docker-compose.d/docker-compose.yml b/servers/keymaker/docker-compose.d/docker-compose.yml index 7a7e599..2a0641a 100644 --- a/servers/keymaker/docker-compose.d/docker-compose.yml +++ b/servers/keymaker/docker-compose.d/docker-compose.yml @@ -11,6 +11,8 @@ services: volumes: - /srv/certbot/data:/etc/letsencrypt - /srv/certbot/other/www:/var/www/certbot + # random cdn data + - /usr/share/cdn:/cdn_data ports: - 80:80 - 443:443