]> git.zue.dev - git.zue.dev/commitdiff
add caddy configuration
authorAlex Pooley (@zuedev) <zuedev@gmail.com>
Mon, 23 Mar 2026 11:04:23 +0000 (11:04 +0000)
committerAlex Pooley (@zuedev) <zuedev@gmail.com>
Mon, 23 Mar 2026 11:04:23 +0000 (11:04 +0000)
Caddyfile [new file with mode: 0644]
cron/minutely.bash
docker-compose.yaml

diff --git a/Caddyfile b/Caddyfile
new file mode 100644 (file)
index 0000000..5fdfe48
--- /dev/null
+++ b/Caddyfile
@@ -0,0 +1,7 @@
+{
+       email certs@git.zue.dev
+}
+
+https://git.zue.dev {
+       reverse_proxy localhost:8080
+}
\ No newline at end of file
index 6e696614a92b4106cb5e6d5698d8c760c75dc822..06e4865388a9672bc3c15ae37849696aa6569c70 100644 (file)
@@ -15,6 +15,14 @@ fi
 # enter the repo
 cd "$GIT_ZUE_DEV" || { echo "Failed to change directory to $GIT_ZUE_DEV. PANIC!"; exit 1; }
 
+# replace Caddyfile if it has changed
+if ! cmp -s "$DOCKER_COMPOSE_DIRECTORY/Caddyfile" <(git show HEAD:"Caddyfile"); then
+    echo "Caddyfile has changed. Updating local copy..."
+    git show HEAD:"Caddyfile" > "$DOCKER_COMPOSE_DIRECTORY/Caddyfile"
+else
+    echo "Caddyfile has not changed. No action needed."
+fi
+
 # array of files to check for changes
 HTML_FILES_TO_CHECK=(
     "site_header.html"
index c6b93d24bc00cbd2433be2c708e15558e54e2aa7..6d5edf80ec336f9bb57f1ce6af8d0fb1da624479 100644 (file)
@@ -1,4 +1,13 @@
 services:
+  caddy:
+    image: caddy:2.8.4-alpine
+    ports:
+      - 80:80
+      - 443:443
+    volumes:
+      - ./Caddyfile:/etc/caddy/Caddyfile:ro
+      - caddy_data:/data
+      - caddy_config:/config
   gitweb:
     build:
       context: .
@@ -18,7 +27,7 @@ services:
             echo "\$$feature{'remote_heads'}{'default'} = [1];" >> /etc/gitweb.conf && \
             nginx -g 'daemon off;'
     ports:
-      - 6300:80
+      - 8080:80
     environment:
       - PROJECTS_LIST=
     volumes:
This page took 0.050511 seconds and 4 git commands to generate.