Skip to content

Commit

Permalink
Add new configuration option for NGINX (Access-Control-Allow-Credenti…
Browse files Browse the repository at this point in the history
…als) (#158)
  • Loading branch information
AlexGacon committed Mar 6, 2024
1 parent 7dd9dd8 commit ef4feef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/geonode/templates/nginx/nginx-conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ data:
{{- if .Values.nginx.external_cors.enabled }}
add_header Access-Control-Allow-Origin {{ .Values.nginx.external_cors.domain }};
{{ end }}
add_header Access-Control-Allow-Credentials false;
add_header Access-Control-Allow-Credentials {{ .Values.nginx.access_control_allow.credentials }};
add_header Access-Control-Allow-Headers "Content-Type, Accept, Authorization, Origin, User-Agent";
add_header Access-Control-Allow-Methods "GET, POST, PUT, PATCH, OPTIONS";

Expand Down
3 changes: 3 additions & 0 deletions charts/geonode/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,9 @@ nginx:
memory: "1Gi"
# -- limit cpu as in resource.requests.cpu (https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/)
cpu: "800m"
access_control_allow:
# -- control value of Access-Control-Allow-Credentials in nginx configuration
credentials: false
external_cors:
# -- Add Access-Control-Allow-Origin directive to allow integration from an external domain
enabled: false
Expand Down

0 comments on commit ef4feef

Please sign in to comment.