Skip to content

Commit cfb4731

Browse files
frozenheliumsamshara
authored andcommitted
Update nginx-server to include APP_SDT_URL env
1 parent f766bc7 commit cfb4731

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

nginx-serve/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ ENV APP_MAPBOX_ACCESS_TOKEN=APP_MAPBOX_ACCESS_TOKEN_PLACEHOLDER
3636
ENV APP_TINY_API_KEY=APP_TINY_API_KEY_PLACEHOLDER
3737
ENV APP_API_ENDPOINT=https://APP-API-ENDPOINT-PLACEHOLDER.COM/
3838
ENV APP_RISK_API_ENDPOINT=https://APP-RISK-API-ENDPOINT-PLACEHOLDER.COM/
39+
ENV APP_SDT_URL=https://APP-SDT-URL-PLACEHOLDER.COM/
3940
ENV APP_SENTRY_DSN=https://APP-SENTRY-DSN-PLACEHOLDER.COM
4041

4142
# Static configs (Configured when building docker image)

nginx-serve/apply-config.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ find "$DESTINATION_DIRECTORY" -type f -exec sed -i "s|\<APP_TINY_API_KEY_PLACEHO
3232
find "$DESTINATION_DIRECTORY" -type f -exec sed -i "s|\<https://APP-API-ENDPOINT-PLACEHOLDER.COM/|$APP_API_ENDPOINT|g" {} +
3333
# NOTE: We don't need a word boundary at end as we already have a trailing slash
3434
find "$DESTINATION_DIRECTORY" -type f -exec sed -i "s|\<https://APP-RISK-API-ENDPOINT-PLACEHOLDER.COM/|$APP_RISK_API_ENDPOINT|g" {} +
35+
find "$DESTINATION_DIRECTORY" -type f -exec sed -i "s|\<https://APP-SDT-URL-PLACEHOLDER.COM/|$APP_SDT_URL|g" {} +
3536
find "$DESTINATION_DIRECTORY" -type f -exec sed -i "s|\<https://APP-SENTRY-DSN-PLACEHOLDER.COM\>|$APP_SENTRY_DSN|g" {} +
3637

3738
# Show diffs (Useful to debug issues)

nginx-serve/helm/templates/configmap.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ data:
1313
APP_MAPBOX_ACCESS_TOKEN: {{ required "env.APP_MAPBOX_ACCESS_TOKEN" .Values.env.APP_MAPBOX_ACCESS_TOKEN | quote }}
1414
APP_TINY_API_KEY: {{ required "env.APP_TINY_API_KEY" .Values.env.APP_TINY_API_KEY | quote }}
1515
APP_RISK_API_ENDPOINT: {{ required "env.APP_RISK_API_ENDPOINT" .Values.env.APP_RISK_API_ENDPOINT | quote }}
16+
APP_SDT_URL: {{ required "env.APP_SDT_URL" .Values.env.APP_SDT_URL | quote }}
1617
APP_SENTRY_DSN: {{ required "env.APP_SENTRY_DSN" .Values.env.APP_SENTRY_DSN | quote }}

nginx-serve/helm/values-test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ env:
1414
APP_TINY_API_KEY: RANDOM_DUMMY_TOKEN
1515
APP_RISK_API_ENDPOINT: https://risk-1-api.test.com
1616
APP_SENTRY_DSN: https://random-token@[email protected]/10000
17+
APP_SDT_URL: https://alpha-1-sdt.test.com

nginx-serve/helm/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ env:
2323
APP_TINY_API_KEY:
2424
APP_RISK_API_ENDPOINT:
2525
APP_SENTRY_DSN:
26+
APP_SDT_URL:

0 commit comments

Comments
 (0)