+21
-25
caddy/Caddyfile
+21
-25
caddy/Caddyfile
···
1
{
2
debug
3
-
email {$PDS_ADMIN_EMAIL:404@vielle.dev}
4
on_demand_tls {
5
ask http://pi:8000/tls-check
6
}
···
126
127
## atproto services
128
### pds
129
-
pds.{$HOST:vielle.dev} {
130
log pds {
131
output stdout
132
format console
133
}
134
135
rewrite / /pds
136
@landing path /pds /styles.css
···
144
respond `{"state":{"lastInitiatedAt":"2025-07-14T14:22:43.912Z","status":"assured","access":"full"},"metadata":{"accountCreatedAt":"2022-11-17T00:35:16.391Z"}}` 200
145
}
146
147
-
reverse_proxy {$PI_ADDRESS:pi}:8000 {
148
-
transport http {
149
-
dial_timeout 5s
150
-
}
151
-
}
152
-
}
153
-
154
-
*.pds.{$HOST:vielle.dev} {
155
-
log pds-did {
156
-
output stdout
157
-
format console
158
-
}
159
-
160
-
tls {
161
-
on_demand
162
}
163
164
-
# required as magicDNS (tailscale) doesn't support
165
-
# subdomains without running own dns server
166
-
# changes example.PDS_DOMAIN/.well-known/atproto-did to PDS_DOMAIN/.well-known/atproto-did/example.PDS_DOMAIN
167
-
# requires support in the pds (see https://tangled.org/vielle.dev/pi-config)
168
-
rewrite /.well-known/atproto-did /.well-known/atproto-did/{http.request.host}
169
170
-
reverse_proxy {$PI_ADDRESS:pi}:{$PI_PORT_PDS:8000} {
171
transport http {
172
dial_timeout 5s
173
}
···
186
@landing path /knot /styles.css
187
reverse_proxy @landing landing:8000
188
189
-
reverse_proxy {$PI_ADDRESS:pi}:{$PI_PORT_KNOT:5555}
190
}
191
192
### piper instance
···
197
format console
198
}
199
200
-
reverse_proxy {$PI_ADDRESS:pi}:{$PO_PORT_PIPER:8010}
201
}
···
1
{
2
debug
3
+
email {$ADMIN_EMAIL:404@vielle.dev}
4
on_demand_tls {
5
ask http://pi:8000/tls-check
6
}
···
126
127
## atproto services
128
### pds
129
+
pds.{$HOST:vielle.dev}, *.pds.{$HOST:vielle.dev}, *.at.{$HOST:vielle.dev}, *.at.{$DONG_HOST:dongs.zip} {
130
log pds {
131
output stdout
132
format console
133
}
134
+
135
+
tls {
136
+
on_demand
137
+
}
138
139
rewrite / /pds
140
@landing path /pds /styles.css
···
148
respond `{"state":{"lastInitiatedAt":"2025-07-14T14:22:43.912Z","status":"assured","access":"full"},"metadata":{"accountCreatedAt":"2022-11-17T00:35:16.391Z"}}` 200
149
}
150
151
+
# pds gatekeeper
152
+
@gatekeeper {
153
+
path /xrpc/com.atproto.server.getSession
154
+
path /xrpc/com.atproto.server.describeServer
155
+
path /xrpc/com.atproto.server.updateEmail
156
+
path /xrpc/com.atproto.server.createSession
157
+
path /xrpc/com.atproto.server.createAccount
158
+
path /@atproto/oauth-provider/~api/sign-in
159
+
path /gate/*
160
}
161
162
+
handle @gatekeeper {
163
+
reverse_proxy {$PDS_GATEKEEPER}
164
+
}
165
166
+
reverse_proxy {$ADDR_PDS} {
167
transport http {
168
dial_timeout 5s
169
}
···
182
@landing path /knot /styles.css
183
reverse_proxy @landing landing:8000
184
185
+
reverse_proxy {$ADDR_KNOT}
186
}
187
188
### piper instance
···
193
format console
194
}
195
196
+
reverse_proxy {$ADDR_PIPER}
197
}
+2
-2
commit.sh
+2
-2
commit.sh
···
8
echo "git reset --hard origin/master"
9
git reset --hard origin/master
10
11
-
echo "cat <<BODY | curl -d @- http://compuper:6500/notify"
12
cat <<BODY | curl -d @- http://compuper:6500/notify
13
name=vps%3A%20git%20($(git log -1 --pretty=format:%h))
14
&timeout=5000
···
26
echo "docker system prune -af > /dev/null"
27
docker system prune -af > /dev/null
28
29
-
echo "cat <<- BODY | curl -d @- http://compuper:6500/notify"
30
cat <<- BODY | curl -d @- http://compuper:6500/notify
31
name=vps%3A%20ready%20($(git log -1 --pretty=format:%h))\
32
&timeout=5000
···
8
echo "git reset --hard origin/master"
9
git reset --hard origin/master
10
11
+
echo "curl -d fetched-latest http://compuper:6500/notify"
12
cat <<BODY | curl -d @- http://compuper:6500/notify
13
name=vps%3A%20git%20($(git log -1 --pretty=format:%h))
14
&timeout=5000
···
26
echo "docker system prune -af > /dev/null"
27
docker system prune -af > /dev/null
28
29
+
echo "curl -d ready http://compuper:6500/notify"
30
cat <<- BODY | curl -d @- http://compuper:6500/notify
31
name=vps%3A%20ready%20($(git log -1 --pretty=format:%h))\
32
&timeout=5000
+5
-5
compose.yaml
+5
-5
compose.yaml