From f933a5a67ea2a1dabf0f339e185c3076293a98ac Mon Sep 17 00:00:00 2001 From: Diego Ciangottini Date: Tue, 29 Oct 2024 16:51:55 +0100 Subject: [PATCH] Fix Oauth2 proxy with socket --- cmd/installer/templates/interlink-install.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cmd/installer/templates/interlink-install.sh b/cmd/installer/templates/interlink-install.sh index 994eeb3a..c99c0a84 100644 --- a/cmd/installer/templates/interlink-install.sh +++ b/cmd/installer/templates/interlink-install.sh @@ -102,13 +102,12 @@ start() { $HOME/.interlink/bin/oauth2-proxy \ --client-id "{{.OAUTH.ClientID}}" \ --client-secret "\"{{.OAUTH.ClientSecret}}\"" \ - --http-address unix://${HOME}/.interlink/interlink.sock \ --oidc-issuer-url "{{.OAUTH.Issuer}}" \ --pass-authorization-header true \ --provider oidc \ --redirect-url http://localhost:8081 \ --oidc-extra-audience {{.OAUTH.Audience}} \ - --upstream http://localhost:30080 \ + --upstream unix://${HOME}/.interlink/interlink.sock \ --allowed-group {{.OAUTH.Group}} \ --validate-url {{.OAUTH.TokenURL}} \ --oidc-groups-claim {{.OAUTH.GroupClaim}} \ @@ -129,11 +128,10 @@ start() { $HOME/.interlink/bin/oauth2-proxy \ --client-id {{.OAUTH.ClientID}} \ --client-secret {{.OAUTH.ClientSecret}} \ - --http-address unix://$HOME/.interlink/interlink.sock \ --pass-authorization-header true \ --provider github \ --redirect-url http://localhost:8081 \ - --upstream http://localhost:30080 \ + --upstream unix://$HOME/.interlink/interlink.sock \ --email-domain="*" \ --github-user="{{.OAUTH.GitHUBUser}}" \ --cookie-secret 2ISpxtx19fm7kJlhbgC4qnkuTlkGrshY82L3nfCSKy4= \