1

I run a Docker container that contains a lightweight Debian and an app on a Ubuntu remote-server.

Right now I can reach the app online over http://remote-server-ip:port, but I'd like to make it available on HTTPS.

I wonder which part I have to configure in order to serve the app over HTTPS. Do I have to setup HTTPS just for the Ubuntu remote-server or do I also need to adjust the Debian running inside the container?

1 Answer 1

4

HTTPS can't be just enabled in your container, like a setting. You'll need to configure your web server, generate the certificates and even your application must be able to receive HTTPS requests.

I can suggest you two approaches:

  1. The old and dumb style is to generate and sign your own certificates. Then point them in your web server config files. Here is a tutorial using nginx in Ubuntu. [1] [2]
  2. The best way is use a Docker container made for this purpose. You can do it by yourself, from scratch, but I'll leave the one I use. It uses Let's Encrypt and and it's nothing less than awesome. [4]
1
  • @rotareti, does my answer solves your question? Commented Nov 7, 2016 at 17:38

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.