Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fdbd1e2fee | ||
|
|
bc665d5fb0 |
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
on_demand_tls {
|
on_demand_tls {
|
||||||
ask http://{$APP_HOST}:3000/tls-check
|
ask http://pds:3000/tls-check
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -8,5 +8,5 @@
|
|||||||
tls {
|
tls {
|
||||||
on_demand
|
on_demand
|
||||||
}
|
}
|
||||||
reverse_proxy {$APP_HOST}:3000
|
reverse_proxy pds:3000
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
export ENTRYPOINT_VERSION=v1
|
export ENTRYPOINT_VERSION=v1
|
||||||
export CADDYFILE_VERSION=v2
|
export CADDYFILE_VERSION=v1
|
||||||
|
|||||||
+8
-2
@@ -5,7 +5,14 @@ services:
|
|||||||
app:
|
app:
|
||||||
image: ghcr.io/bluesky-social/pds:0.4.219
|
image: ghcr.io/bluesky-social/pds:0.4.219
|
||||||
networks:
|
networks:
|
||||||
- internal
|
# Unique alias so the caddy sidecar resolves THIS stack's PDS, not a foreign service. On a
|
||||||
|
# shared host the default service name `app` is aliased by every co-located stack on the
|
||||||
|
# `proxy` overlay; caddy (attached to both `proxy` and `internal`) otherwise resolves bare
|
||||||
|
# `app` to another stack's endpoint, so its on-demand-TLS `ask` to the PDS is refused and the
|
||||||
|
# cert is never issued (HTTPS dead). `pds` exists only on `internal`, so it resolves correctly.
|
||||||
|
internal:
|
||||||
|
aliases:
|
||||||
|
- pds
|
||||||
environment:
|
environment:
|
||||||
- PDS_HOSTNAME=${DOMAIN}
|
- PDS_HOSTNAME=${DOMAIN}
|
||||||
- PDS_DATA_DIRECTORY=/pds
|
- PDS_DATA_DIRECTORY=/pds
|
||||||
@@ -52,7 +59,6 @@ services:
|
|||||||
- internal
|
- internal
|
||||||
environment:
|
environment:
|
||||||
- DOMAIN=${DOMAIN}
|
- DOMAIN=${DOMAIN}
|
||||||
- APP_HOST=${STACK_NAME}_app
|
|
||||||
configs:
|
configs:
|
||||||
- source: caddyfile
|
- source: caddyfile
|
||||||
target: /etc/caddy/Caddyfile
|
target: /etc/caddy/Caddyfile
|
||||||
|
|||||||
Reference in New Issue
Block a user