Reset history to current sanitized state

This commit is contained in:
2026-08-31 19:27:53 +00:00
commit e207380542
4 changed files with 98 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
# BEGIN reset-history environment exclusions
.env
.env.*
*.env
*.env.*
!.env.example
!.env.*.example
!*.env.example
!*.env.*.example
# END reset-history environment exclusions
+10
View File
@@ -0,0 +1,10 @@
http://{$OPENCODEX_DOMAIN} {
encode zstd gzip
reverse_proxy router:8080 {
flush_interval -1
}
header {
-Server
Strict-Transport-Security "max-age=31536000; includeSubDomains"
}
}
+26
View File
@@ -0,0 +1,26 @@
# Open-CDX
Open-CDX runs its router service behind Caddy, with Nginx Proxy Manager
providing the host-facing HTTPS entry point.
## Deployment layout
- **Compose:** `/srv/docker/open-cdx/docker-compose.yml`
- **Static configuration/source:** `/srv/docker/open-cdx/Caddyfile`; there is no local build source or Dockerfile
- **Non-secret environment:** `/srv/docker/open-cdx/.env` supplies `OPENCODEX_DOMAIN`; the listen address, public URL, database path, and secret-file paths are declared inline in Compose
- **Secrets:** `/srv/docker/secrets/open-cdx/master_key` and `/srv/docker/secrets/open-cdx/admin_token`
- **NVMe application state:** `/srv/appdata/open-cdx/router`, `/srv/appdata/open-cdx/caddy-data`, and `/srv/appdata/open-cdx/caddy-config`
- **Bulk HDD data:** none
- **Other mounts:** none
Secrets are never committed to this repository. The master key and admin token
are supplied only to the router service as Compose secrets at
`/run/secrets/master_key` and `/run/secrets/admin_token`.
## Dependencies and recovery
- **Networks/dependencies:** Caddy depends on the healthy router; both services share the private project network,
while only Caddy joins the external `npm_proxy` network at `192.168.98.24`; Nginx Proxy Manager forwards HTTP traffic
to Caddy on port 80
- **Back up:** `/srv/appdata/open-cdx/router`, `/srv/appdata/open-cdx/caddy-data`, `/srv/appdata/open-cdx/caddy-config`, and the separately protected master-key and admin-token files
- **Re-creatable:** the router and Caddy containers from their images; no persistent cache or bulk-data path is declared
+52
View File
@@ -0,0 +1,52 @@
name: open-cdx
services:
router:
image: "ghcr.io/dodelidoo-labs/open-cdx:latest"
restart: unless-stopped
expose:
- "8080"
environment:
OPENCODEX_LISTEN: ":8080"
OPENCODEX_PUBLIC_URL: "https://${OPENCODEX_DOMAIN:?set OPENCODEX_DOMAIN}"
OPENCODEX_DATABASE: "/var/lib/opencdx/router.db"
OPENCODEX_MASTER_KEY_FILE: "/run/secrets/master_key"
OPENCODEX_ADMIN_TOKEN_FILE: "/run/secrets/admin_token"
secrets:
- master_key
- admin_token
volumes:
- /srv/appdata/open-cdx/router:/var/lib/opencdx
networks:
- private
caddy:
image: caddy:2.10.2-alpine
restart: unless-stopped
depends_on:
router:
condition: service_healthy
environment:
OPENCODEX_DOMAIN: "${OPENCODEX_DOMAIN:?set OPENCODEX_DOMAIN}"
expose:
- "80"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- /srv/appdata/open-cdx/caddy-data:/data
- /srv/appdata/open-cdx/caddy-config:/config
networks:
private:
npm_proxy:
ipv4_address: 192.168.98.24
secrets:
master_key:
file: /srv/docker/secrets/open-cdx/master_key
admin_token:
file: /srv/docker/secrets/open-cdx/admin_token
networks:
private:
internal: false
npm_proxy:
external: true