DO NOT PUBLISH ON THE INTERNET.
DO NOT USE FOR PRODUCTION.
NOT CHECKED FOR BUGS OR VULNERABILITIES.
Cronjob not working properly(Fixed 2023-01-27)
Create a file or a secret with your cakey and mount it to the container. Use ENV:
environment:
- cakey_FILE=/run/secrets/cakey
Or
environment:
- cakey=supersecretpassword
version: '3.2'
secrets:
cakey:
file: ./cakey.txt
services:
app:
container_name: localca
hostname: ca
domainname: local.local
secrets:
- cakey
image: 'palleri/localca:latest'
restart: unless-stopped
ports:
- '80:80'
volumes:
- ./data:/var/www/html
environment:
- ca=ca.homelab.local # Name of the CA including your domain (FQDN)
- cakey_FILE=/run/secrets/cakey
- O=localca
- C=SE # Country code
services:
app:
....
dns:
- 192.168.1.1
....
Access webgui: http://x.x.x.x/index.php
Convert to .p12: This create certificate with client authentication attributes instead of server authentication.
For more security: Create your client certificate .p12 and add it to your browser. Install ca.pem in your browser and nginx and activate ssl_verify_client on;
NGINX proxy manager conf
ssl_client_certificate /etc/ssl/certs/ca.pem;
ssl_verify_client on;