Created
February 8, 2017 02:34
-
-
Save abeisgoat/3e62555656a14d949e017598db5d77ac to your computer and use it in GitHub Desktop.
caddy-ssl-proxy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:443 | |
gzip | |
log /var/log/access.log | |
proxy / mafia { | |
header_upstream Host {host} | |
} | |
tls { | |
max_certs 100000 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM abiosoft/caddy | |
COPY Caddyfile /etc/Caddyfile | |
EXPOSE 80 | |
EXPOSE 443 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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