From d5fa9b0236a3066a13f31b84629515d7c83f7731 Mon Sep 17 00:00:00 2001 From: jmf Date: Wed, 9 Jan 2019 16:27:28 -0700 Subject: [PATCH] added (re-added?) caddy, removed ubuntu refs, fixed a typo. --- armbian/docker.md | 1 - services/caddy.md | 102 ++++++++++++++++++++++++++++++++++++++++++ services/syncthing.md | 2 +- 3 files changed, 103 insertions(+), 2 deletions(-) create mode 100644 services/caddy.md diff --git a/armbian/docker.md b/armbian/docker.md index 5761ddf..099586d 100644 --- a/armbian/docker.md +++ b/armbian/docker.md @@ -6,7 +6,6 @@ Containerized services for easy deployment and updates. - [https://docs.docker.com/install/](https://docs.docker.com/install/) - [https://docs.docker.com/install/linux/docker-ce/debian/](https://docs.docker.com/install/linux/docker-ce/debian/) -- [https://docs.docker.com/install/linux/docker-ce/ubuntu/](https://docs.docker.com/install/linux/docker-ce/ubuntu/) - [https://blog.alexellis.io/get-started-with-docker-on-64-bit-arm/](https://blog.alexellis.io/get-started-with-docker-on-64-bit-arm/) ## Pre Flight Setup diff --git a/services/caddy.md b/services/caddy.md new file mode 100644 index 0000000..6b803c5 --- /dev/null +++ b/services/caddy.md @@ -0,0 +1,102 @@ +# Web Service Proxy (caddy) + +Simple and efficient go based proxy server and static web host. TLS and more supported out of the box. Supports all kinds of arch's and you probably want to just use this as it's the simplest approach and leanest. + +## SSL Certs + +This assumes you've run the [Let's Encrypt](lets_encrypt.md) process to get your certificates setup properly. + +## Inspiration / Sources + +- [https://caddyserver.com/](https://caddyserver.com/) +- [https://github.com/lucaslorentz/caddy-docker-proxy](https://github.com/lucaslorentz/caddy-docker-proxy) + +## Docker Integration + +Please note the Docker plugin is for a *swarm* which is *not* setup in these docs. It does **NOT** apply to this build. + +## Install + +``` bash + +mkdir /var/log/caddy +mkdir -p /etc/caddy/services +chown www-data /var/log/caddy /etc/caddy +mkdir -p /var/www +chown www-data /var/www +mkdir /var/log/caddy +chown www-data /var/log/caddy +cat > /root/update_caddy.sh < /etc/caddy/Caddyfile < /etc/unbound/local_zone/caddy.conf <