From 5e483240c391201235864d4761d204a88776f958 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Kar=C3=A9kinian?= Date: Fri, 12 Jun 2020 17:22:34 +0200 Subject: [PATCH] Set the Gitea root URL to HTTPS It fixes U2F security keys support, that was broken because the protocol did not match Fixes #182 --- site-cookbooks/kosmos_gitea/templates/default/app.ini.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/site-cookbooks/kosmos_gitea/templates/default/app.ini.erb b/site-cookbooks/kosmos_gitea/templates/default/app.ini.erb index 68b771f..d85c896 100644 --- a/site-cookbooks/kosmos_gitea/templates/default/app.ini.erb +++ b/site-cookbooks/kosmos_gitea/templates/default/app.ini.erb @@ -8,7 +8,8 @@ DISABLE_SSH = false SSH_PORT = 22 PROTOCOL = http DOMAIN = gitea.kosmos.org -ROOT_URL = %(PROTOCOL)s://%(DOMAIN)s +# Gitea is running behind an nginx reverse load balancer, use an HTTPS root URL +ROOT_URL = https://%(DOMAIN)s # REDIRECT_OTHER_PORT = true # PORT_TO_REDIRECT = 3001 # ENABLE_LETSENCRYPT = true