mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2026-07-08 17:42:32 +02:00
Merge pull request #800 from cmruffin/master
gitea: support git credential manager oauth flow
This commit is contained in:
@@ -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
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user