-
Notifications
You must be signed in to change notification settings - Fork 17
SSL HTTPS Configuration
PullPreview can manage HTTPS for both deployment targets with Caddy and Let's Encrypt.
Set:
with:
proxy_tls: web:80For deployment_target: compose:
- PullPreview injects a Caddy sidecar into the rendered Compose config
- Caddy terminates HTTPS and proxies traffic to the Compose service named in
proxy_tls - the preview URL becomes
https://...:443 - PullPreview avoids keeping an explicit public
80firewall rule whenproxy_tlsis enabled
For deployment_target: helm:
-
proxy_tlsis required - PullPreview deploys a Caddy Deployment into the preview namespace
-
proxy_tlspoints at the Kubernetes Service and port to route to - placeholders such as
{{ release_name }}and{{ namespace }}are supported - the preview URL becomes
https://...:443
Example:
with:
deployment_target: helm
chart: wordpress
chart_repository: https://charts.bitnami.com/bitnami
proxy_tls: "{{ release_name }}-wordpress:80"Strongly recommended: when using
proxy_tls, set up a custom domain or use one of the built-inrevN.clickalternatives. The defaultmy.preview.rundomain is shared across all PullPreview users and can hit Let's Encrypt rate limits.
Let's Encrypt enforces a limit of 50 certificates per registered domain per week.
If you run many preview environments with proxy_tls, rotate to one of PullPreview's built-in alternative DNS suffixes:
rev1.click, rev2.click, rev3.click, rev4.click, rev5.click, rev6.click, rev7.click, rev8.click, rev9.click
Example:
with:
dns: rev1.click
proxy_tls: web:80You can also use a custom domain to get your own certificate quota.
You can still manage TLS yourself.
- For Compose, keep
proxy_tlsempty and publish your own ports or reverse proxy. - For Helm,
proxy_tlsis mandatory, so use PullPreview's gateway and point it at your Service.
These values are written to /etc/pullpreview/env and are available to pre_script and deployments:
PULLPREVIEW_PUBLIC_DNSPULLPREVIEW_PUBLIC_IPPULLPREVIEW_URLPULLPREVIEW_DEPLOYMENT_TARGETPULLPREVIEW_NAMESPACEPULLPREVIEW_RELEASE_NAMEPULLPREVIEW_FIRST_RUN