From 223568df3f4d8bb5e66cfa2ae3a484d9806ff231 Mon Sep 17 00:00:00 2001 From: gilesb Date: Wed, 7 Jan 2026 19:29:40 +0000 Subject: [PATCH] fix: use env_file for L2 server config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add env_file support for L2_SERVER and L2_DOMAIN - Fix typo in L2_SERVER URL (ros-ash -> rose-ash) - Add .env.example with required variables 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .env.example | 7 +++++++ docker-compose.yml | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..128f15b --- /dev/null +++ b/.env.example @@ -0,0 +1,7 @@ +# L1 Server Configuration + +# L2 server URL (for authentication and publishing) +L2_SERVER=https://artdag.rose-ash.com + +# L2 domain for ActivityPub actor IDs (e.g., @user@domain) +L2_DOMAIN=artdag.rose-ash.com diff --git a/docker-compose.yml b/docker-compose.yml index 3448e90..a2efc05 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,10 +14,12 @@ services: l1-server: image: git.rose-ash.com/art-dag/l1-server:latest + env_file: + - .env environment: - REDIS_URL=redis://redis:6379/5 - CACHE_DIR=/data/cache - - L2_SERVER=http://activitypub_l2-server:8200 + # L2_SERVER and L2_DOMAIN from .env file volumes: - l1_cache:/data/cache depends_on: