From 8b5c86aff87c927077baa7d26aa1edb7220c7614 Mon Sep 17 00:00:00 2001 From: Dominik Milacher Date: Sat, 14 Jun 2025 12:21:33 +0200 Subject: [PATCH] Add proxy readme --- email-proxy/README | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/email-proxy/README b/email-proxy/README index 06ff343..82d9595 100644 --- a/email-proxy/README +++ b/email-proxy/README @@ -1,15 +1,20 @@ -# TODO bettter move everything to .env and gitignore it +SETUP -INITIAL SETUP - -cd email-proxy touch hotels.db # IMPORTANT +mv .env-template .env +# adjust .env docker compose up -d --build -In the current directory, to update the image&container run -docker compose up --build -this does not change the volume (db) - For resetting everything, also the db, before run -Use docker compose down -v \ No newline at end of file +Use docker compose down -v +rm hotels.db +touch hotels.db + +REVERSE PROXY + +/etc/caddy/Caddyfile: +api.dominikmilacher.com { + reverse_proxy /contact* localhost:8000 + encode +} \ No newline at end of file