Skip to content

Make GDK config ruby object the SSOT

Toon Claes requested to merge tc-https-all-the-things into master

This changes ensures all configuration sources from the config object.

The order of precedence is now:

This change should not interrupt any users, because it should keep using the same values if you're using the the loose files.

Closes #413 (closed)

HTTPS locally

With this change I was able to run HTTPS locally. Steps to set up:

  • Create a new loopback network device:

    # macOS
    sudo ifconfig lo1 alias 127.1.1.1
    # linux
    sudo ifconfig lo:1 127.1.1.1
  • Add a host to /etc/hosts:

    echo '127.1.1.1 gdk.test' >> /etc/hosts
  • Create certificate with mkcert:

    mkcert gdk.test 127.1.1.1
  • Use the following gdk.yml:

    ---
    hostname: gdk.test
    nginx:
      enabled: true
      http:
        enabled: true
      ssl:
        certificate: gdk.test+1.pem
        key: gdk.test+1-key.pem
    port: 443
    https:
      enabled: true
  • Run gdk reconfigure

  • 💥

Future

This change allows us to slowly move away from Makefile targets and implement one-by-one with Ruby in Rakefile.

Edited by Toon Claes

Merge request reports