The stack's settings are repo variables, its secrets repo secrets, and NATS_PASSWORD an org secret the content repo can share. The deploy workflow checks they are all set, writes .env, portal.env, nats.env and chat.env into the runner's own directory, and the root script (now in the repo as deploy-tomtervel) pulls main, puts them in place as root's and brings the stack up. So nothing is edited on the host or committed: a host name or a version is a variable changed and a Run workflow. nats.conf reads NATS_PASSWORD from its environment, so it is committed rather than rendered. bootstrap.sh only makes Kanidm's config and certificate and recovers its admins; kanidm-setup.sh reads portal.env, and leaves the two secrets it makes in kanidm-setup.secrets for gt. The DNS workflow uses actions/checkout and actions/cache (the runner's cache server) for dnscontrol, at the DNSCONTROL_VERSION variable. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L5fbDmSQSb6u27EiEuwzoM
This commit is contained in:
12 files changed
+282
-207
No files matched your search
@@ -0,0 +1,20 @@
|
||||
# NATS with JetStream: portal's records, events and projections live
|
||||
# here. The password is NATS_PASSWORD from the container's environment
|
||||
# (nats.env, written by the deploy workflow from the org secret).
|
||||
port: 4222
|
||||
http_port: 8222
|
||||
|
||||
max_payload: 8388608
|
||||
max_connections: 1000
|
||||
|
||||
# User and password rather than a token: URL credentials
|
||||
# (nats://user:pass@host) behave the same in every client library.
|
||||
authorization {
|
||||
users = [
|
||||
{ user: "portal", password: $NATS_PASSWORD }
|
||||
]
|
||||
}
|
||||
|
||||
jetstream {
|
||||
store_dir: /data
|
||||
}
|
||||
Reference in new issue
Block a user