Skip to content

Commit f17bd55

Browse files
committed
Expand 1.0 gateway fixtures
1 parent 65d4e95 commit f17bd55

3 files changed

Lines changed: 151 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ behavior when the change improves security or project direction.
1212
### Added
1313

1414
- `1.0` gateway migration fixtures and smoke coverage for representative
15-
multi-site configs.
15+
multi-site configs, including canonical redirects, app proxy vhosts, custom
16+
error pages, static aliases, challenge exceptions, and multi-subdomain
17+
route/proxy layouts.
1618
- Route-level exact, prefix, and fallback matching with proxy, static, and
1719
redirect actions.
1820
- Route prefix stripping, per-route request body limits, and route-local

examples/gateway-1-0/20-apps.toml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,26 @@ path = "/meowmory_502.html"
4848
root = "/srv/fluxheim/errors"
4949
cache_control = "private, no-store"
5050

51+
[[vhosts]]
52+
name = "www.ulyaoth.eu"
53+
hosts = ["www.ulyaoth.eu"]
54+
55+
[vhosts.tls]
56+
enabled = true
57+
58+
[vhosts.tls.certificate]
59+
cert_path = "/etc/fluxheim/tls/ulyaoth.eu/fullchain.pem"
60+
key_path = "/etc/fluxheim/tls/ulyaoth.eu/privkey.pem"
61+
62+
[vhosts.acme_challenge]
63+
enabled = true
64+
upstreams = ["host.containers.internal:8080"]
65+
66+
[vhosts.redirect]
67+
enabled = true
68+
to = "https://ulyaoth.eu{uri}"
69+
status = 308
70+
5171
[[vhosts]]
5272
name = "ulyaoth.eu"
5373
hosts = ["ulyaoth.eu"]
@@ -78,3 +98,53 @@ path = "/ulyaoth_502.html"
7898
[vhosts.proxy.error_pages.web]
7999
root = "/srv/fluxheim/errors"
80100
cache_control = "private, no-store"
101+
102+
[[vhosts]]
103+
name = "www.hashavatar.app"
104+
hosts = ["www.hashavatar.app"]
105+
106+
[vhosts.tls]
107+
enabled = true
108+
109+
[vhosts.tls.certificate]
110+
cert_path = "/etc/fluxheim/tls/hashavatar.app/fullchain.pem"
111+
key_path = "/etc/fluxheim/tls/hashavatar.app/privkey.pem"
112+
113+
[vhosts.acme_challenge]
114+
enabled = true
115+
upstreams = ["host.containers.internal:8080"]
116+
117+
[vhosts.redirect]
118+
enabled = true
119+
to = "https://hashavatar.app{uri}"
120+
status = 308
121+
122+
[[vhosts]]
123+
name = "hashavatar.app"
124+
hosts = ["hashavatar.app"]
125+
126+
[vhosts.tls]
127+
enabled = true
128+
129+
[vhosts.tls.certificate]
130+
cert_path = "/etc/fluxheim/tls/hashavatar.app/fullchain.pem"
131+
key_path = "/etc/fluxheim/tls/hashavatar.app/privkey.pem"
132+
133+
[vhosts.acme_challenge]
134+
enabled = true
135+
upstreams = ["host.containers.internal:8080"]
136+
137+
[vhosts.proxy]
138+
upstreams = ["hashavatar_app:8080"]
139+
upstream_tls = false
140+
connect_timeout_secs = 5
141+
read_timeout_secs = 60
142+
send_timeout_secs = 60
143+
144+
[[vhosts.proxy.error_pages]]
145+
status = 502
146+
path = "/hashavatar_502.html"
147+
148+
[vhosts.proxy.error_pages.web]
149+
root = "/srv/fluxheim/errors"
150+
cache_control = "private, no-store"

examples/gateway-1-0/40-pawalyze-dev.toml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ connect_timeout_secs = 5
7575
read_timeout_secs = 600
7676
send_timeout_secs = 600
7777

78+
[vhosts.routes.headers.request.add]
79+
upgrade = "{http.upgrade}"
80+
connection = "upgrade"
81+
7882
[[vhosts]]
7983
name = "identity.dev.pawalyze.com"
8084
hosts = ["identity.dev.pawalyze.com"]
@@ -100,3 +104,77 @@ send_timeout_secs = 60
100104

101105
[vhosts.headers.request.add]
102106
x-forwarded-port = "443"
107+
108+
[[vhosts]]
109+
name = "support.dev.pawalyze.com"
110+
hosts = ["support.dev.pawalyze.com"]
111+
112+
[vhosts.tls]
113+
enabled = true
114+
115+
[vhosts.tls.certificate]
116+
cert_path = "/etc/fluxheim/tls/support.dev.pawalyze.com/fullchain.pem"
117+
key_path = "/etc/fluxheim/tls/support.dev.pawalyze.com/privkey.pem"
118+
119+
[vhosts.acme_challenge]
120+
enabled = true
121+
upstreams = ["host.containers.internal:8080"]
122+
123+
[vhosts.proxy]
124+
upstreams = ["host.containers.internal:6013"]
125+
upstream_tls = false
126+
connect_timeout_secs = 5
127+
read_timeout_secs = 60
128+
send_timeout_secs = 60
129+
130+
[[vhosts]]
131+
name = "account.dev.pawalyze.com"
132+
hosts = ["account.dev.pawalyze.com"]
133+
134+
[vhosts.tls]
135+
enabled = true
136+
137+
[vhosts.tls.certificate]
138+
cert_path = "/etc/fluxheim/tls/account.dev.pawalyze.com/fullchain.pem"
139+
key_path = "/etc/fluxheim/tls/account.dev.pawalyze.com/privkey.pem"
140+
141+
[vhosts.acme_challenge]
142+
enabled = true
143+
upstreams = ["host.containers.internal:8080"]
144+
145+
[vhosts.proxy]
146+
upstreams = ["host.containers.internal:6015"]
147+
upstream_tls = false
148+
connect_timeout_secs = 5
149+
read_timeout_secs = 60
150+
send_timeout_secs = 60
151+
152+
[vhosts.headers.request.add]
153+
upgrade = "{http.upgrade}"
154+
connection = "upgrade"
155+
156+
[[vhosts]]
157+
name = "pawmins.dev.pawalyze.com"
158+
hosts = ["pawmins.dev.pawalyze.com"]
159+
160+
[vhosts.tls]
161+
enabled = true
162+
163+
[vhosts.tls.certificate]
164+
cert_path = "/etc/fluxheim/tls/pawmins.dev.pawalyze.com/fullchain.pem"
165+
key_path = "/etc/fluxheim/tls/pawmins.dev.pawalyze.com/privkey.pem"
166+
167+
[vhosts.acme_challenge]
168+
enabled = true
169+
upstreams = ["host.containers.internal:8080"]
170+
171+
[vhosts.proxy]
172+
upstreams = ["host.containers.internal:6016"]
173+
upstream_tls = false
174+
connect_timeout_secs = 5
175+
read_timeout_secs = 60
176+
send_timeout_secs = 60
177+
178+
[vhosts.headers.request.add]
179+
upgrade = "{http.upgrade}"
180+
connection = "upgrade"

0 commit comments

Comments
 (0)