Route Letterpress product subdomains to their landing and login pages

Anton Kaminsky1d ago43c8b3506726parent bbf5828
1 file changed+29
hub/Caddyfile
@@ -195,6 +195,35 @@
195195 }
196196}
197197
198# Product pages share the site repository's assets and deploy atomically with it.
199(letterpress-product) {
200 @assets path /product-pages.css /product-login.css /fonts/* /whitebeam-berries.svg /omnibind-clasp.svg /curbpay-curb.svg /curbpay-dollar.svg
201 handle @assets {
202 root * /srv/pages/sites/letterpresslabs.ca
203 file_server
204 }
205 handle {
206 root * /srv/pages/sites/letterpresslabs.ca/{args[0]}
207 file_server
208 }
209 header {
210 X-Content-Type-Options nosniff
211 X-Frame-Options SAMEORIGIN
212 }
213}
214
215whitebeam.letterpresslabs.ca {
216 import letterpress-product whitebeam
217}
218
219omnibind.letterpresslabs.ca {
220 import letterpress-product omnibind
221}
222
223curbpay.letterpresslabs.ca {
224 import letterpress-product curbpay
225}
226
198227# bluebellcare.ca — bluebell (hereditary cancer genetics portal). The apex is
199228# the landing page; tenant subdomains (genaissance., demo.) are served by the
200229# same bluebell-caddy ingress, which routes by Host. Add new tenants here.
201230