Skip to content

Instantly share code, notes, and snippets.

@abeisgoat
Created February 8, 2017 02:34
Show Gist options
  • Save abeisgoat/3e62555656a14d949e017598db5d77ac to your computer and use it in GitHub Desktop.
Save abeisgoat/3e62555656a14d949e017598db5d77ac to your computer and use it in GitHub Desktop.
caddy-ssl-proxy
:443
gzip
log /var/log/access.log
proxy / mafia {
header_upstream Host {host}
}
tls {
max_certs 100000
}
FROM abiosoft/caddy
COPY Caddyfile /etc/Caddyfile
EXPOSE 80
EXPOSE 443
kind: ReplicationController
apiVersion: v1
metadata:
name: caddy-ssl-proxy
labels:
name: caddy
role: ssl-proxy
spec:
replicas: 1
selector:
name: caddy
role: ssl-proxy
template:
metadata:
name: caddy-ssl-proxy
labels:
name: caddy
role: ssl-proxy
spec:
containers:
- name: caddy-ssl-proxy
resources:
requests:
cpu: "10m"
limits:
cpu: "100m"
image: "gcr.io/asciidothost/caddy-ssl-proxy:v3"
env:
- name: CADDY_PATH
value: '/etc/caddycerts'
ports:
- name: ssl-proxy-http
containerPort: 80
- name: ssl-proxy-https
containerPort: 443
volumeMounts:
- name: caddycerts
mountPath: /etc/caddycerts
volumes:
- name: caddycerts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment