Our Personal Data Server from scratch!
0

Configure Feed

Select the types of activity you want to include in your feed.

chore: add traefik for local dev certs and routing

Signed-off-by: Trezy <tre@trezy.com>

author
Trezy
committer
Tangled
date (May 19, 2026, 7:46 PM +0300) commit cc925945 parent 76f22b80
+60
+30
docker-compose.yaml
··· 38 38 volumes: 39 39 - postgres_data:/var/lib/postgresql 40 40 41 + traefik: 42 + profiles: [dev] 43 + image: traefik:v3.4 44 + entrypoint: ["/bin/sh", "-c"] 45 + command: 46 + - | 47 + if [ ! -f /certs/pds.test.pem ]; then 48 + apk add --no-cache openssl 49 + openssl req -x509 -newkey ec -pkeyopt ec_paramgen_curve:prime256v1 \ 50 + -keyout /certs/pds.test-key.pem \ 51 + -out /certs/pds.test.pem \ 52 + -days 3650 -nodes \ 53 + -subj "/CN=pds.test" \ 54 + -addext "subjectAltName=DNS:pds.test,DNS:*.pds.test" 55 + echo "Certs generated" 56 + fi 57 + exec traefik \ 58 + --providers.file.filename=/etc/traefik/dynamic.yaml \ 59 + --entrypoints.websecure.address=:443 60 + ports: 61 + - "443:443" 62 + volumes: 63 + - ./traefik.dev.yaml:/etc/traefik/dynamic.yaml:ro 64 + - certs:/certs 65 + networks: 66 + default: 67 + aliases: 68 + - pds.test 69 + 41 70 prometheus: 42 71 profiles: [prod] 43 72 image: prom/prometheus:v3.8.0 ··· 57 86 blob_data: 58 87 store_data: 59 88 prometheus_data: 89 + certs:
+30
traefik.dev.yaml
··· 1 + tls: 2 + certificates: 3 + - certFile: /certs/pds.test.pem 4 + keyFile: /certs/pds.test-key.pem 5 + 6 + http: 7 + routers: 8 + backend: 9 + rule: "Host(`pds.test`) && (PathPrefix(`/xrpc`) || PathPrefix(`/oauth`) || PathPrefix(`/.well-known`) || PathPrefix(`/u`) || Path(`/health`) || Path(`/`))" 10 + entryPoints: 11 + - websecure 12 + service: backend 13 + tls: {} 14 + frontend: 15 + rule: "Host(`pds.test`)" 16 + entryPoints: 17 + - websecure 18 + service: frontend 19 + priority: 1 20 + tls: {} 21 + 22 + services: 23 + backend: 24 + loadBalancer: 25 + servers: 26 + - url: "http://app-dev:3000" 27 + frontend: 28 + loadBalancer: 29 + servers: 30 + - url: "http://frontend-dev:5173"