Code Monkey home page Code Monkey logo

Comments (4)

regisb avatar regisb commented on August 16, 2024 2

Good news! This is now a feature of the latest release. Just run:

ACTIVATE_HTTPS=1 make all

instead of make all.

More information in the readme.

from tutor.

tony-h avatar tony-h commented on August 16, 2024 1

You can add the SSL certs directly in the edx stack. It's kind of a pain. Below is what I did to get it to work. The better option that I found is to use NGINX as a reverse proxy and leave the edx configs alone. https://tylermade.net/2017/09/14/the-perfect-reverse-proxy-nginx-ssl-webui-management/
Take your pick.

# add default certs (or copy the real certs)
mkdir ~/openedx-docker/data/lms/certs
mkdir ~/openedx-docker/data/cms/certs
cp /etc/ssl/certs/ssl-cert-snakeoil.pem ~/openedx-docker/data/lms/certs/fullchain.pem
cp /etc/ssl/private/ssl-cert-snakeoil.key ~/openedx-docker/data/lms/certs/privkey.pem
cp /etc/ssl/certs/ssl-cert-snakeoil.pem ~/openedx-docker/data/cms/certs/fullchain.pem
cp /etc/ssl/private/ssl-cert-snakeoil.key ~/openedx-docker/data/cms/certs/privkey.pem
  
# Copy configs and add 443 SSL support
cp ~/openedx-docker/config/nginx/lms.conf ~/openedx-docker/config/nginx/lms-ssl.conf
cp ~/openedx-docker/config/nginx/cms.conf ~/openedx-docker/config/nginx/cms-ssl.conf

nano ~/openedx-docker/config/nginx/lms-ssl.conf
  listen 443 ssl;
  ssl_certificate     /openedx/data/lms/certs/fullchain.pem;
  ssl_certificate_key /openedx/data/lms/certs/privkey.pem;

nano ~/openedx-docker/config/nginx/cms-ssl.conf
  listen 443 ssl;
  ssl_certificate     /openedx/data/cms/certs/fullchain.pem;
  ssl_certificate_key /openedx/data/cms/certs/privkey.pem;

from tutor.

regisb avatar regisb commented on August 16, 2024

Thanks @tony-h for your thorough answer!
@gmsk19 I am fully aware that SSL certificates are a crucial feature for a production platform. When I created this project I thought it would be better simply to provide instructions on how to install certificates rather than have an optional SSL feature flag which would have made the 1-click install more complex and opaque. This opinion was reflected in that disclaimer: https://github.com/regisb/openedx-docker#ssl-certificates
However, I now think it should be possible to produce SSL certificates rather easily, post-install. I still need to work out the details, though. So I'm going to leave this issue open until I find an easy way to generate and update certificates. Meanwhile, @tony-h's instructions should work.

from tutor.

gmsk19 avatar gmsk19 commented on August 16, 2024

Dear @regisb and @tony-h
Thanks for sharing the information. I shall try out tony's recommendations and revert back.

With regards,
Shashi Kiran G M

from tutor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.