Skip to content

Commit 14b118b

Browse files
committed
Serve staging on the server IP over HTTPS until DNS is ready
Let's Encrypt short-lived IP certificate; both hosts share one site block.
1 parent 6046a83 commit 14b118b

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

‎deploy/Caddyfile‎

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# /etc/caddy/Caddyfile — managed by javascript.cm deploy
2-
staging.javascript.cm {
2+
3+
(app) {
34
encode zstd gzip
45

56
# No uploads on the site: cap request bodies (articles are < 100 KB).
@@ -27,3 +28,19 @@ staging.javascript.cm {
2728
# Access logs go to journald: journalctl -u caddy
2829
log
2930
}
31+
32+
staging.javascript.cm {
33+
import app
34+
}
35+
36+
# Temporary: direct access by IP until the staging DNS points here.
37+
# Let's Encrypt issues IP certificates with the short-lived profile
38+
# (about 6 days, renewed automatically by Caddy).
39+
169.58.106.105 {
40+
tls {
41+
issuer acme {
42+
profile shortlived
43+
}
44+
}
45+
import app
46+
}

0 commit comments

Comments
 (0)