O3 SSL Setup (docker compose, nginx, certbot)

Hi, I am in the process of setting up SSL for O3. As I understand I need to:

  • change docker compose
  • change nginx.conf
  • set up certbot

I could not find examples or recommendations for how to do this. Any help would be greatly appreciated.

1 Like

@jochenade I assume you’re trying to do apply a self signed certificate…

This is a non openmrs example but you could pick some clues OpenELIS-Global-2/tools/CertGeneration at 2b75f6adb2a933bc37cf239cb0fc0d1b131d7acb · I-TECH-UW/OpenELIS-Global-2 · GitHub

1 Like

Thanks for this. This is similar to some of the examples I have and probably possible to stitch sth. together. However, I thought it would be good to have examples specifically for o3 as a setup with ssl is likely to be a standard case.

1 Like

have a look at:

regards, Hans

2 Likes

Thanks Hans, this is very helpful. I am not exactly a docker expert, but the changes in docker-compose seem quite straightforward and I think I roughly understand what you are doing in gateway/ssl.config.

How are you planning to handle certificate renewal?

because currently just a demo app, just manual, however entering: nginx ssl renew will give you examples how to implement that.

regards,

Hans