Hi All;
I’ve been using certbot to manually create my SSL certificates for a few years now, and copy them into a folder called “ssl”. in HA docker they are mounted as /ssl and my config.yaml always uses;
http:
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem
All of the above works fine.
How I have Nginx Proxy Manager, not for HA, but for other things, but I intend to use the automatic certificate renew feature with HA, by simply re-directing my Docker Volume mount from the ssl folder to the folder NPM Docker saves them in;
Docker compose HA;
Previously;
/home/myname/ssl:/ssl
New location;
/data/compose/63/letsencrypt/live/npm-14:/npmssl
Then I simple change config.yaml to;
http:
# ssl_certificate: /ssl/fullchain.pem
# ssl_key: /ssl/privkey.pem
ssl_certificate: /npmssl/fullchain.pem
ssl_key: /npmssl/privkey.pem
However, it doesn’t work. I get the following error on the configuration check button in developer;
Configuration errors
Invalid config for 'http' at configuration.yaml, line 28: not a file for dictionary value 'http->ssl_certificate', got '/npmssl/fullchain.pem'
Invalid config for 'http' at configuration.yaml, line 29: not a file for dictionary value 'http->ssl_key', got '/npmssl/privkey.pem'
I can not work out why this doesn’t work.
If I console into the HA docker container, I can see all files and they are at least 774 readable. However they look slightly different; does this mean anything?
Previous working ones;
root@skynet:/home/myname/ssl/tmp# ls -l
total 8
-rwxrwxr-- 1 root root 2888 Jan 2 09:02 fullchain.pem
-rwxrwxr-- 1 root root 306 Jan 2 09:02 privkey.pem
Current NPM ones that work for NPM. but won’t for HA via docker volume mount;
root@skynet:/data/compose/63/letsencrypt/live/npm-14# ls -l
total 4
lrwxrwxrwx 1 root root 30 Jan 2 08:41 cert.pem -> ../../archive/npm-14/cert2.pem
lrwxrwxrwx 1 root root 31 Jan 2 08:41 chain.pem -> ../../archive/npm-14/chain2.pem
lrwxrwxrwx 1 root root 35 Jan 2 08:41 fullchain.pem -> ../../archive/npm-14/fullchain2.pem
lrwxrwxrwx 1 root root 33 Jan 2 08:41 privkey.pem -> ../../archive/npm-14/privkey2.pem
-rw-r--r-- 1 root root 692 Jan 1 20:50 README
What’s that end bit with the arrow and everything? for the Tmp folder below, I just copied these files.
For a test. I copied those exact files into another tmp directory, and they worked fine;
http:
# ssl_certificate: /ssl/fullchain.pem
# ssl_key: /ssl/privkey.pem
# ssl_certificate: /npmssl/fullchain.pem
# ssl_key: /npmssl/privkey.pem
ssl_certificate: /ssl/tmp/fullchain.pem
ssl_key: /ssl/tmp/privkey.pem
Why doesn’t it work?
Any ideas?
ta