HGustavs / LenaSYS

Code Viewer and Course Organization System used in some courses at University of Skövde
57 stars 31 forks source link

Enable SSL in Docker dev environment #14788

Open a22willi opened 6 months ago

a22willi commented 6 months ago

In issue: #14550 a dev environment using docker was created that works on all platforms. Update this to support SSL, and port 443, since this is a requirement to be able to access some pages in LenaSYS.

a22chrfa commented 6 months ago

Since the assignment text specifically said that no files other than php, js, html and css doesn't count. I've asked to be withdrawn from this issue. image

For the next person though. I'll describe what I've found so far. I'm not sure I'm on the exact right track yet.

resource: https://forums.docker.com/t/setup-local-domain-and-ssl-for-php-apache-container/116015

  1. Use OpenSSL to create a cert and private key (these are to be included in the docker folder)
  2. Edit dockerfile to copy SSL certificates to the container
  3. Enable SSL in dockerfile
  4. configure an SSL virtual host in dockerfile
  5. add port 443 in docker-composer
a22willi commented 6 months ago

@andras-marki As noted in the message above, we noticed that the assignment page on canvas says that other files than php, js, html and css are not counted as code contribution. I was wondering if other file types, such as SQL and in this case Dockerfiles and shell-scripts, are also considered? I assume the intention behind the description was to ensure contributions aren't limited to just .md files.