Projects da.wid.codes acme2s3 Files
.onedev-buildspec.yml Loading last commit info...
Dockerfile
README.md
acme2s3.sh
README.md

acme2s3

A small container tool to watch acme.json (used by Traefik) and push TLS certificates to an S3-compatible bucket (e.g., MinIO). Supports multi-domain export and optional immediate sync at startup.

Required Environment Variables

VariableDescription
DOMAINSComma-separated list of domains to extract and upload
MC_ACCESS_KEYS3 access key (from MinIO user)
MC_SECRET_KEYS3 secret key
MC_HOSTS3 host URL including optional port (e.g. minio.example.com:9000)
MC_PROTOCOLProtocol to connect to S3 (http or https, default: https)
ACME_FILEPath to acme.json (default: /data/acme.json)
BUCKET_PATHS3 bucket path where certs will be uploaded (default: traefik)
FORCE_PUSH_ON_STARTIf true, certificates are extracted and uploaded once immediately when the container starts

Usage

Set the environment variables accordingly and run the container. The container will watch the specified acme.json file for changes and automatically extract and push certificates to the configured S3 bucket.

If FORCE_PUSH_ON_START is enabled, the certificates are pushed once immediately on startup before watching for changes.

Please wait...
Page is in error, reload to recover