You can deploy this image to reverse proxy your web assets using a handshake domain.
It uses caddy and the HTools Handshake ACME server - https://acme.htools.work/
You must point your domain name to the IP address of the server prior to executing the environment variables for caddy.
The user will receive an email with the TLSA record that needs to be updated in their DNS server to complete the process.
Their DNS server must be DNSSEC Enabled with a DS key stored on the handshake chain in order for everything to work smoothly. Getting Started With Handshake: https://blog.htools.work/posts/hns-pdns-nginx/
This image was built from this docker image: https://hub.docker.com/r/abiosoft/caddy with the no-stats version.
The only modification that was made was copying the Dockerfile into the image from this repo: https://github.com/WireWrex/caddy-reverse-proxy-handshake/blob/master/docker/caddy/Caddyfile
Latest Tag Includes Updated Environment Variables:
ACME_AGREE=true #for ICANN/LETSENCRYPT
CADDY_DOMAIN=domain.name
[email protected]
ACME=https://acme.slyfi.com/directory
FRONTEND_HOST=ip1
FRONTEND_HOST2=ip2
FRONTEND_HOST3=ip3
Akash SDL:
version: '2.0'
endpoints:
strapiep1:
kind: ip
services:
strapi:
image: strapi/strapi
expose:
- port: 1337
as: 443
to:
- global: true
- service: caddy
params:
storage:
app:
mount: /srv/app
readOnly: false
caddy:
image: 'wirewrex/caddy-hns:latest'
expose:
- port: 80
as: 80
to:
- global: true
ip: strapiep1
- port: 443
as: 443
to:
- global: true
ip: strapiep1
env:
- FRONTEND_HOST=strapi:1337
- CADDY_DOMAIN=handshake.name
- [email protected]
- ACME=https://acme.slyfi.com/directory
params:
storage:
root:
mount: /root/.caddy
readOnly: false
profiles:
compute:
strapi:
resources:
cpu:
units: 2
memory:
size: 2Gi
storage:
- size: 1Gi
- name: app
size: 50Gi
attributes:
persistent: true
class: beta3
caddy:
resources:
cpu:
units: 0.5
memory:
size: 1Gi
storage:
- size: 1Gi
- name: root
size: 1Gi
attributes:
persistent: true
class: beta3
placement:
dcloud:
attributes:
ip-lease: true
pricing:
strapi:
denom: uakt
amount: 1000
caddy:
denom: uakt
amount: 1000
deployment:
strapi:
dcloud:
profile: strapi
count: 1
caddy:
dcloud:
profile: caddy
count: 1
Docker Compose Version 2.0
services:
arweave-gateway:
image: 'image-to-proxy'
restart: unless-stopped
ports:
- '8080:8080'
volumes:
- /whatever
caddy:
restart: unless-stopped
image: 'wirewrex/caddy-hns:latest'
depends_on:
- arweave-gateway
environment:
FRONTEND_HOST: arweave-gateway:8080
CADDY_DOMAIN: handshake.name
CADDY_TLS_EMAIL: [email protected]
ACME: https://acme.slyfi.com/directory
volumes:
- /root/.caddy
ports:
- '80:80'
- '443:443'
Docker
docker run -d --name caddy-hns --restart unless-stopped -p 80:80 -p 443:443 -v /root/.caddy -e FRONTEND_HOST=127.0.0.1:8080 -e CADDY_DOMAIN=hnstld -e [email protected] -e ACME=https://acme.htools.work/directory wirewrex/caddy-hns:latest
Optional Environmental Variable:
CADDYPATH: /path/to/save/certs
docker pull wirewrex/caddy-hns:latest