Skip to content

Commit

Permalink
#1883 return pre-authenticated configuration to location-snippet
Browse files Browse the repository at this point in the history
Necessary for the Ingress-Nginx Controller
  • Loading branch information
RockyMM committed Dec 1, 2023
1 parent a7ccbfd commit c74b43f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions deployment/helm/ditto/templates/nginx-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ data:
# ignore X-Original-URI in the request
proxy_hide_header X-Original-URI;
# set ditto-specific forwarded headers - needed in the location for registry.k8s.io/ingress-nginx/controller
proxy_set_header X-Forwarded-User $remote_user;
proxy_set_header x-ditto-pre-authenticated "nginx:$remote_user";
proxy-connect-timeout: "10" # seconds, default: 60
# timeouts are configured slightly higher than gateway read-timeout of 60 seconds
proxy-send-timeout: "70" # seconds, default: 60
Expand Down

0 comments on commit c74b43f

Please sign in to comment.