Skip to content

Commit

Permalink
hardcode SERVER_NAME and HTTP_HOST www.santanderconsumer.no
Browse files Browse the repository at this point in the history
  • Loading branch information
belskiiartem committed Sep 8, 2024
1 parent ac634b7 commit 9fa2428
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/wp-project-skeleton/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ Default S3 bucket.
*/}}
{{- define "wp-project-skeleton.s3Bucket" }}
{{- $subPath := hasSuffix "-stage" .Release.Name | ternary "/stage" "" -}}
{{- printf "media.wpdgr.com/%s%s" (include "wp-project-skeleton.name" .) $subPath -}}
{{- printf "media.wpd.digital/%s%s" (include "wp-project-skeleton.name" .) $subPath -}}
{{- end -}}
2 changes: 1 addition & 1 deletion charts/wp-project-skeleton/templates/configmap-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ data:
{{- if .Values.app.cdnDomain }}
CDN_DOMAIN: {{ .Values.app.cdnDomain | quote }}
{{- else }}
CDN_DOMAIN: "{{ hasSuffix "-stage" .Release.Name | ternary .Release.Name (trimSuffix "-prod" .Release.Name) }}.wpdgr.com"
CDN_DOMAIN: "{{ hasSuffix "-stage" .Release.Name | ternary .Release.Name (trimSuffix "-prod" .Release.Name) }}.wpd.digital"
{{- end }}
{{- if .Values.app.newrelicDaemonAddress }}
NEWRELIC_DAEMON_ADDRESS: {{ .Values.app.newrelicDaemonAddress | quote }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ data:
# include the "?$args" part so non-default permalinks doesn't break when using query string
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
# Redirect to canonical domain
{{- if .Values.nginx.canonicalHostname }}
Expand Down
4 changes: 2 additions & 2 deletions charts/wp-project-skeleton/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ app:
dbName: "" # Defaults to internal subdomain name.
dbUser: "" # Defaults to internal subdomain name.
awsRegion: "" # Set default AWS region for all services.
s3UploadsBucket: "" # Defaults to media.wpdgr.com with internal subdomain name in path.
s3UploadsBucketUrl: "" # Defaults to https://media.wpdgr.com with internal subdomain name in path.
s3UploadsBucket: "" # Defaults to media.wpd.digital with internal subdomain name in path.
s3UploadsBucketUrl: "" # Defaults to https://media.wpd.digital with internal subdomain name in path.
s3UploadsRegion: "" # Defaults to awsRegion.
redisHost: "" # Defaults to release name + -redis-master.
redisPrefix: "" # Defaults to release name.
Expand Down

0 comments on commit 9fa2428

Please sign in to comment.