GJSchaller
Contributor
- Joined
- Feb 10, 2021
- Messages
- 100
I'm working with the scripts created by @danb35 and @victort that makes jails with various apps in them, using Caddy as a webserver. Making the jails is working fine, and at the moment I have them all behind a Reverse Proxy that protects them / serves them up to the outside world. So far, so good.
One of the apps (ZenPhoto) is giving a warning when submitting passwords that the form is not secure, likely because the Jail itself is not running https, only the Proxy server. I'd like to correct this and get a Let's Encrypt SSL cert onto the Jail(s), so that 1) the Proxy is connecting to them securely, and 2) I can access them securely from within my home network without going through the proxy.
My Registrar is Namecheap. Because the jails are behind a proxy, I can't use the Stand-Alone LE method to generate a LE Cert, leaving me with DNS. I'm trying to figure out the exact syntax to generate the LE Cert when creating the jail using jailname-config - for this example, I'll use zenphoto.
I did look up the Namecheap plugin for Caddy, but documentation is a bit scant... I want to make sure this is correct. Is this the correct format for using Namecheap with the jail creation scripts? (I'm missing my Namecheap user name - not sure how to enter that?)
While my Registrar is Namecheap, my DNS for this domain is self-hosted, if that matters at all.
One of the apps (ZenPhoto) is giving a warning when submitting passwords that the form is not secure, likely because the Jail itself is not running https, only the Proxy server. I'd like to correct this and get a Let's Encrypt SSL cert onto the Jail(s), so that 1) the Proxy is connecting to them securely, and 2) I can access them securely from within my home network without going through the proxy.
My Registrar is Namecheap. Because the jails are behind a proxy, I can't use the Stand-Alone LE method to generate a LE Cert, leaving me with DNS. I'm trying to figure out the exact syntax to generate the LE Cert when creating the jail using jailname-config - for this example, I'll use zenphoto.
I did look up the Namecheap plugin for Caddy, but documentation is a bit scant... I want to make sure this is correct. Is this the correct format for using Namecheap with the jail creation scripts? (I'm missing my Namecheap user name - not sure how to enter that?)
While my Registrar is Namecheap, my DNS for this domain is self-hosted, if that matters at all.
Code:
JAIL_IP="10.0.0.248" DEFAULT_GW_IP="10.0.0.1" POOL_PATH="/mnt/data" HOST_NAME="zenphoto.aiskon.net" DNS_CERT=1 DNS_PLUGIN=namecheap DNS_TOKEN=(Namecheap API token) CERT_EMAIL=gjschaller@gmail.com