Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cbc UI d2 3913 make config not case senstive #910

Merged
merged 8 commits into from
Aug 27, 2024
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.uid2</groupId>
<artifactId>uid2-operator</artifactId>
<version>5.38.18</version>
<version>5.38.21-alpha-270-SNAPSHOT</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
7 changes: 6 additions & 1 deletion scripts/aws/config-server/app.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from flask import Flask
import json

app = Flask(__name__)

Expand All @@ -7,7 +8,11 @@ def get_config():
try:
with open('/etc/secret/secret-value/config', 'r') as secret_file:
secret_value = secret_file.read().strip()
return secret_value
secret_value_json = json.loads(secret_value)
secret_value_json["environment"] = secret_value_json["environment"].lower()
secret_value_json["core_base_url"] = secret_value_json["core_base_url"].lower()
secret_value_json["optout_base_url"] = secret_value_json["optout_base_url"].lower()
return json.dumps(secret_value_json)
except Exception as e:
return str(e), 500

Expand Down
2 changes: 1 addition & 1 deletion scripts/aws/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ java \
-Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.SLF4JLogDelegateFactory \
-Dlogback.configurationFile=./conf/logback.xml \
-Dhttp_proxy=socks5://127.0.0.1:3305 \
-jar /app/"${JAR_NAME}"-"${JAR_VERSION}".jar > $LOG_FILE 2>&1
-jar /app/"${JAR_NAME}"-"${JAR_VERSION}".jar
thomasm-ttd marked this conversation as resolved.
Show resolved Hide resolved