You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature request: flock proxy to serve a local port at a .test domain over HTTPS #73
e.g. flock proxy s3 127.0.0.1:9000 --secure → https://s3.test with a Flock-issued certificate.
Why
Some local tools run on their own port and need a trusted HTTPS origin. Examples: object storage, Vite, Reverb/WebSocket servers, Mailpit, Meilisearch dashboards.
My case: my Laravel sites run on https://*.test, and browser uploads go straight to S3 with presigned PUT URLs. Safari/WebKit blocks requests from an HTTPS page to http://127.0.0.1:9000 as mixed content. So the storage endpoint itself has to be HTTPS. With Herd I use herd proxy minio http://127.0.0.1:9005 --secure. Flock has no equivalent, and the generated Caddyfile (internal/web/web.go) has no place for custom site blocks.
Possible approach
Store proxies in config next to linked sites, and render each one as a site block in the generated Caddyfile:
Activity
eleftrik commentedon Nov 3, 2026
This would be highly appreciated!
feat(proxy): proxy .test domains to local services
eleftrik commentedon Nov 5, 2026
Thanks @lukas-frey! 😄