From aa8e550406d4e23584c375df89d85176a833a9d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Sun, 20 Sep 2026 10:32:51 +0200 Subject: [PATCH] Allow browser/CORS access to Gitea repos --- site-cookbooks/kosmos_gitea/templates/default/app.ini.erb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/site-cookbooks/kosmos_gitea/templates/default/app.ini.erb b/site-cookbooks/kosmos_gitea/templates/default/app.ini.erb index 9b50f1a..d393806 100644 --- a/site-cookbooks/kosmos_gitea/templates/default/app.ini.erb +++ b/site-cookbooks/kosmos_gitea/templates/default/app.ini.erb @@ -17,6 +17,10 @@ ROOT_URL = https://%(DOMAIN)s # LETSENCRYPT_DIRECTORY = /data/gitea/https # LETSENCRYPT_EMAIL = ops@5apps.com +[cors] +ENABLED = true +ALLOW_DOMAIN = * + [database] DB_TYPE = postgres HOST = <%= @postgresql_host %> @@ -29,6 +33,7 @@ MAX_OPEN_CONNS = 20 [repository] ROOT = <%= @repository_root_directory %> DISABLE_DOWNLOAD_SOURCE_ARCHIVES = true +ACCESS_CONTROL_ALLOW_ORIGIN = * [repository.signing] SIGNING_KEY = <%= @git_home_directory %>/.ssh/id_ed25519.pub -- 2.50.1