Skip to content

Commit ea40137

Browse files
Merge pull request #221 from profullstack/codex/keep-otr-on-nginx-20261031
dev2-edge: preserve OTR legacy alias during cutover
2 parents 62bf4ec + 9da39d1 commit ea40137

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎dev2/edge/edge.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
],
1313
"keep_on_nginx": {
1414
"//": "Names under a routed pattern that stay on nginx for now, with why.",
15-
"live.streaming.pit.world": "per-path routing to two nixamp servers with a 404 fallback (error_page @server2); move after it has its own Caddy rehearsal"
15+
"live.streaming.pit.world": "per-path routing to two nixamp servers with a 404 fallback (error_page @server2); move after it has its own Caddy rehearsal",
16+
"otr.podcast.pit.world": "the new OTR Caddy site changes this legacy pit.world alias from 200 to 301; preserve the current nginx response until the alias is rehearsed"
1617
},
1718
"sites": [
1819
{ "hosts": ["pit.world"], "proxy": 8787, "max_body": "1MiB" },

‎test/dev2-edge.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ describe('dev2-edge render', () => {
135135
expect(stream).toMatch(/\n\s+chovy\.hacker\s+127\.0\.0\.1:8453;/);
136136
// an exact name under a routed wildcard can stay on nginx
137137
expect(stream).toMatch(/\n\s+live\.streaming\.pit\.world\s+127\.0\.0\.1:8444;/);
138+
expect(stream).toMatch(/\n\s+otr\.podcast\.pit\.world\s+127\.0\.0\.1:8444;/);
138139
expect(stream).toContain('hostnames;');
139140
});
140141

0 commit comments

Comments
 (0)