NREL / api-umbrella

Open source API management platform
http://apiumbrella.io
MIT License
2.01k stars 324 forks source link

Getting LetsEncrypt to work with Dock container #447

Open Outstep opened 5 years ago

Outstep commented 5 years ago

Hello,

I have just installed Umbrella on my VPS server in a Docker container via:

https://api-umbrella.readthedocs.io/en/latest/getting-started.html#running-with-docker

and now I want to add a LetEncrypt Cert on the server so that it will allow for HTTPS to my api subdomain which talks to the Umbrella docker container.

I was trying to follow:

https://api-umbrella.readthedocs.io/en/latest/server/https-config.html

but am not clear how to make this happen.

could please give me a bit of guidance on this, if possible so that I can get it setup and running cleanly. Thanks in advance

devsetgo commented 5 years ago

This is what works for me... If you use the docker images jwilder/nginx-proxy:latest and jrcs/letsencrypt-nginx-proxy-companion:latest to add a host to nginx and letsencrypt. Once you have them running in docker add the environment variables of VIRTUAL_HOST: your.domain.com, LETSENCRYPT_HOST: your.domain.com and LETSENCRYPT_EMAIL: Whatever@Domain.com and it should be running. You can find jwilder/nginx-proxy on github (code and documentation) and hub.docker.com.

I've all but given up with API-Umbrella due to the same issue here API Umbrella CORS options issue solving. Hope you have better luck.