3 Commits
3 changed files with 50 additions and 0 deletions

No files matched your search

+6
View File
@@ -59,6 +59,10 @@ jobs:
GARAGE_SECRET_KEY: ${{ secrets.GARAGE_SECRET_KEY }} GARAGE_SECRET_KEY: ${{ secrets.GARAGE_SECRET_KEY }}
SEED_ADMIN_EMAIL: ${{ secrets.SEED_ADMIN_EMAIL }} SEED_ADMIN_EMAIL: ${{ secrets.SEED_ADMIN_EMAIL }}
SEED_ADMIN_NAME: ${{ secrets.SEED_ADMIN_NAME }} SEED_ADMIN_NAME: ${{ secrets.SEED_ADMIN_NAME }}
# Optional: unset, maps are off (the landing hero is empty, a
# location field is two numbers).
MAPBOX_TOKEN: ${{ secrets.MAPBOX_TOKEN }}
MAPBOX_STYLE: ${{ vars.MAPBOX_STYLE }}
steps: steps:
# A missing value stops here, by name, before anything on the host # A missing value stops here, by name, before anything on the host
# is touched. Only names are printed: the log is public. # is touched. Only names are printed: the log is public.
@@ -109,6 +113,8 @@ jobs:
GARAGE_ACCESS_KEY=$GARAGE_ACCESS_KEY GARAGE_ACCESS_KEY=$GARAGE_ACCESS_KEY
GARAGE_SECRET_KEY=$GARAGE_SECRET_KEY GARAGE_SECRET_KEY=$GARAGE_SECRET_KEY
GARAGE_UPLOADS_BUCKET=$GARAGE_UPLOADS_BUCKET GARAGE_UPLOADS_BUCKET=$GARAGE_UPLOADS_BUCKET
MAPBOX_TOKEN=$MAPBOX_TOKEN
MAPBOX_STYLE=$MAPBOX_STYLE
EOF EOF
# NATS itself (nats.conf reads NATS_PASSWORD), gdo and the chat. # NATS itself (nats.conf reads NATS_PASSWORD), gdo and the chat.
cat > "$STAGE/nats.env" <<EOF cat > "$STAGE/nats.env" <<EOF
+2
View File
@@ -160,6 +160,8 @@ Run workflow**. Set them with `gt` (`gt variable set NAME --body ...`,
| `GARAGE_ACCESS_KEY`, `GARAGE_SECRET_KEY` | secret | repo | uploads | | `GARAGE_ACCESS_KEY`, `GARAGE_SECRET_KEY` | secret | repo | uploads |
| `SEED_ADMIN_EMAIL`, `SEED_ADMIN_NAME` | secret | repo | the first person in; an address, so not a variable | | `SEED_ADMIN_EMAIL`, `SEED_ADMIN_NAME` | secret | repo | the first person in; an address, so not a variable |
| `CLOUDFLARE_API_TOKEN` | secret | repo | DNS edit for tomtervel.no only (`dns/`) | | `CLOUDFLARE_API_TOKEN` | secret | repo | DNS edit for tomtervel.no only (`dns/`) |
| `MAPBOX_TOKEN` | secret | repo | optional: the map tiles portal proxies (the landing hero, location fields); unset, maps are off |
| `MAPBOX_STYLE` | variable | repo | optional: `<owner>/<style>`; unset, `mapbox/streets-v12` |
| `DNSCONTROL_VERSION` | variable | repo | the DNS workflow's dnscontrol | | `DNSCONTROL_VERSION` | variable | repo | the DNS workflow's dnscontrol |
A variable is printed wherever a workflow echoes it, and this repo's run A variable is printed wherever a workflow echoes it, and this repo's run
+42
View File
@@ -0,0 +1,42 @@
# kasse's host Caddy: /etc/caddy/conf.d/tomtervel.no. The vel's own
# names, in dns/dnsconfig.js, pointing here unproxied; Caddy gets their
# certificates itself as soon as the records point here. The same as the
# vel.klingenbergbygg.no blocks beside it, which stay until the move is
# done.
tomtervel.no {
reverse_proxy 127.0.0.1:3050
}
www.tomtervel.no {
redir https://tomtervel.no{uri} permanent
}
# Tomter Vel's own Kanidm. Caddy holds the public certificate; Kanidm
# speaks TLS internally with a self-signed one, on a loopback port, so
# that hop is not verified. The @brand files are the vel's: the name in
# the tab, the icons, and the stylesheet Kanidm serves empty for a site
# to fill (written by go-live.sh brand into /srv/tomtervel/brand).
id.tomtervel.no {
@brand path /pkg/override.css /manifest.webmanifest /pkg/img/favicon.png /pkg/img/logo.svg /pkg/img/logo-square.svg /pkg/img/logo-180.png /pkg/img/logo-192.png /pkg/img/logo-256.png /pkg/img/logo-512.png /pkg/img/kani-warning.svg /pkg/img/kani-waving.svg
handle @brand {
root * /srv/tomtervel/brand
uri strip_prefix /pkg/img
uri strip_prefix /pkg
header Cache-Control "public, max-age=3600"
@manifest path /manifest.webmanifest
header @manifest Content-Type application/manifest+json
file_server
}
handle {
reverse_proxy https://127.0.0.1:8443 {
transport http {
tls_insecure_skip_verify
}
}
}
}
chat.tomtervel.no {
reverse_proxy 127.0.0.1:3070
}