api-umbrella icon indicating copy to clipboard operation
api-umbrella copied to clipboard

Getting LetsEncrypt to work with Dock container

Open Outstep opened this issue 6 years ago • 1 comments

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

Outstep avatar Mar 10 '19 17:03 Outstep

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: [email protected] 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.

devsetgo avatar Jul 05 '19 00:07 devsetgo