SSL Certs #2119
-
|
Deploying to ec2 works great, however the default traefic docker image image doesn't seem to support HTTPS. When loading the traefik dashboard it doesn't show HTTPS and SSL endabled. From the README.md
How do we use the included certs for HTTPS? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
|
One option is to follow the instructions in https://dockerswarm.rocks. Note that the traefik container mentioned here is a separate container from the traefik container included in this cookiecutter. |
Beta Was this translation helpful? Give feedback.
-
|
@paxcodes Ty got it up but ran into a different SSL issue. Most of my calls to the backend are working however one route in particular we added is getting mixed content errors. The headers from uvicorn are returning with http://mydomain.com vs https://mydomain.com. Our other endpoints work perfect. Any ideas on why univicorn is setting them to http on a specific route? |
Beta Was this translation helpful? Give feedback.
-
|
@paxcodes did you manage to solve this, i run in to the same issue, the issue looks like the certification getting issued is the default one by Traefik, in my case: |
Beta Was this translation helpful? Give feedback.
-
|
I was able to have SSL for my domains when I followed the instructions in https://dockerswarm.rocks and then the deployment instructions in the README generated by this cookiecutter. One way to troubleshoot is checking the traefik logs as mentioned here. If there's a specific step in the process that you're having trouble with, I will try to help. |
Beta Was this translation helpful? Give feedback.
-
Sorry, no, not off the top of my head. If I were to encounter that, first thing I would check is my docker-compose files: making sure that everything is set up correctly there. Next would be how uvicorn is configured. But this is coming from someone who don't have a lot of experience with ssl certs / docker / uvicorn so I'm covering a lot of ground, instead of targeting something specific. |
Beta Was this translation helpful? Give feedback.
-
|
I got my issue fixed: after adding the docker.network label and tls on both services it works now |
Beta Was this translation helpful? Give feedback.
-
|
Hi, I encounter the same issue than @wolfieorama. All the certificates for the services (pgadmin, flower, and the other required traefik from the dockerswarm.rocks doc) where generated with success using the LetsEncrypt certresolver. But for the main app wich use the proxy service, it seems traefik didn't success to use letsencrypt and default to the self signed TRAEFIK DEFAULT CERT wich is not good on production... The logs provided by By adding the docker.network label and tls on the frontend service it allows traefik to generate the letsencrypt certificate successfully. But I don't understand why precisely? If someone as a clue? |
Beta Was this translation helpful? Give feedback.
-
|
This project has gone through several refactors that happened after this conversation. It currently targets Docker Compose, with Traefik on top handling HTTPS and certs. If anyone comes here, the latest docs in the repo have the info. |
Beta Was this translation helpful? Give feedback.
This project has gone through several refactors that happened after this conversation. It currently targets Docker Compose, with Traefik on top handling HTTPS and certs. If anyone comes here, the latest docs in the repo have the info.