From 70c7b20af7cc931c6c67643df31e227b6d19083a Mon Sep 17 00:00:00 2001 From: Chris Ruffin Date: Mon, 18 May 2026 18:07:04 -0400 Subject: [PATCH 1/2] gitea: support git credential manager --- gitea.subdomain.conf.sample | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gitea.subdomain.conf.sample b/gitea.subdomain.conf.sample index 7c1024f3..bc688856 100644 --- a/gitea.subdomain.conf.sample +++ b/gitea.subdomain.conf.sample @@ -57,6 +57,18 @@ server { } + # support for git credential manager. don't proxy a redirect to localhost in the oauth flow. + location /login/oauth/grant { + proxy_redirect ~^http://127.0.0.1(.*) http://127.0.0.1$1; + include /config/nginx/proxy.conf; + include /config/nginx/resolver.conf; + set $upstream_app gitea; + set $upstream_port 3000; + set $upstream_proto http; + proxy_pass $upstream_proto://$upstream_app:$upstream_port; + + } + location ~ (/gitea)?/(api|info/lfs) { include /config/nginx/proxy.conf; include /config/nginx/resolver.conf; From ad244cff76b03ac784b50dc842f4b5d696949346 Mon Sep 17 00:00:00 2001 From: Chris Ruffin Date: Fri, 3 Jul 2026 14:15:08 -0400 Subject: [PATCH 2/2] Update version date in gitea configuration sample --- gitea.subdomain.conf.sample | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitea.subdomain.conf.sample b/gitea.subdomain.conf.sample index bc688856..af64dcb2 100644 --- a/gitea.subdomain.conf.sample +++ b/gitea.subdomain.conf.sample @@ -1,4 +1,4 @@ -## Version 2025/07/18 +## Version 2026/07/03 # make sure that your gitea container is named gitea # make sure that your dns has a cname set for gitea # edit the following parameters in /data/gitea/conf/app.ini