Gogs - SSL


  • dockers
  • gogs
  • git

Enabling ssl on the http interface

taken from the Gogs faq

In the docker container

cd /app/gogs
./gogs cert -ca=true -duration=8760h0m0s -host=myhost.example.com

Edit the config file

vi /data/gogs/conf/app.ini

Add the following under section “[server]”

PROTOCOL = https
ROOT_URL = https://<your FQDN>
CERT_FILE = /app/gogs/cert.pem
KEY_FILE = /app/gogs/key.pem

Of course this will use self-signed certificates. You will get errors when connecting.