Last active
July 12, 2018 15:45
-
-
Save Sher-Chowdhury/451636aa0a6098b8bbc7bbcb12867559 to your computer and use it in GitHub Desktop.
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
https://www.reddit.com/r/golang/comments/6zyhb0/caddy_business_use_now_requires_a_commercial/ | |
# hence this is no longer allowed | |
# curl https://getcaddy.com | bash -s personal tls.dns.route53 | |
# https://www.digitalocean.com/community/tutorials/how-to-host-a-website-with-caddy-on-centos-7 | |
# https://github.com/mholt/caddy/wiki/Plugging-in-Plugins-Yourself | |
# https://www.calhoun.io/building-caddy-server-from-source/ | |
# https://www.digitalocean.com/community/tutorials/how-to-host-a-website-with-caddy-on-ubuntu-16-04#step-1-%E2%80%94-building-caddy | |
yum install -y golang | |
cd ~ | |
go get github.com/mholt/caddy/caddy | |
go get github.com/caddyserver/builds | |
go get github.com/caddyserver/dnsproviders/route53 | |
vim /root/go/src/github.com/mholt/caddy/caddy/caddymain/run.go | |
# in this file, insert the following line to add in the tls route53 plugin: | |
_ "github.com/caddyserver/dnsproviders/route53" # insert into the import block, just before the closing round bracket | |
cd /root/go/src/github.com/mholt/caddy/caddy | |
go run build.go | |
This should end up creating the following binary: | |
/root/go/src/github.com/mholt/caddy/caddy/caddy | |
you can then copy this into one of the paths, I suggest: | |
/usr/local/bin/caddy | |
The caddy rpm contains a *.service file. Once possibility is to install rpm, then replace the binary with the newly compiled | |
binary. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment