Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traefik integration #63

Open
hosseinsalemi opened this issue Jan 14, 2020 · 1 comment
Open

Traefik integration #63

hosseinsalemi opened this issue Jan 14, 2020 · 1 comment

Comments

@hosseinsalemi
Copy link

How can I integrate with Traefik for SSL and more?

@ptruman
Copy link

ptruman commented Jul 27, 2020

Hi

Traefik proxies incoming connections,, not outgoing ones - but you can access the certs generated by Traefik.

#!/bin/sh
jq -r .YOURPROVIDER.Certificates[0].certificate /your/host/path/to/your/traefik/acme.json | base64 -d > /another/path/on/your/host/cert.pem
jq -r .YOURPROVIDER.Certificates[0].key /your/host/path/to/your/traefik/acme.json | base64 -d > /another/path/on/your/host//key.pem

I'm assuming that you

  1. have a volume you use for persistent Traefik storage, which contains acme.json
  2. have a different volume you can use to expose to namshi/smtp
  3. have "jq" installed (it's available to Debian)

I run this nightly as a cron job to extract my certs from Traefik and expose them to other services/containers that need them locally. You'd likely need to issue a docker restart to namshi/smtp also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants