Commit 1ddc2f3
authored
fix(prod): wire MARKETING_URL + COOKIE_DOMAIN into config template (#5)
Step C of the OSS restructure (66c8f59) removed the automatic
https://instanode.dev → https://api.instanode.dev swap that the
old code used to paper over a misconfigured APP_URL. With the
swap gone, the prod deploy has three regressions driven by
config.prod.yaml.tpl never threading the new fields through:
1. POST /webhook/new returns a receive_url on instanode.dev (the
static marketing host, which 405s POST) instead of api.instanode.dev.
2. OAuth login redirects to http://localhost:5173/dashboard.html
(the default for MarketingURL when the env var isn't set).
3. Dashboard upgrade URL points at localhost:5173 for the same reason.
This PR adds the three fields to the prod template so DO's
envsubst step populates them from env vars. The AllowedOrigins
list is hardcoded here (not env-driven) because YAML-list envsubst
is awkward and the production origins are stable.
The actual DO env var updates (APP_URL → api.instanode.dev,
new MARKETING_URL + COOKIE_DOMAIN, rotated NEWRELIC_LICENSE_KEY
as SECRET) are ops actions and must happen before this PR merges
so the first deploy after merge reads populated values. Runbook
in the PR description.1 parent a2f4030 commit 1ddc2f3
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
7 | 21 | | |
8 | 22 | | |
9 | 23 | | |
| |||
0 commit comments