run Gitea with TLS

created onAugust 29, 2025

You need two certificates: the certificate chain to the Root CA and the certificate for gitea. I’m running an own root CA in my LAN (mostly for fun and educational purpose) and issued a cert for gitea.

Self-signed certificates can also be generated with .

Edit section in :

  • Change from to .
  • Change the scheme in from to .
  • is the certificate chain to the Root CA.
  • is the certificate for gitea.

Excerpt of my :

[server] ... PROTOCOL = https ROOT_URL = https://idoru/gitea CERT_FILE = /opt/intra/srv/gitea-1.24.3/cert/gitea2.cert KEY_FILE = /opt/intra/srv/gitea-1.24.3/cert/gitea2.key
x