diff --git a/imageroot/actions/get-configuration/20read b/imageroot/actions/get-configuration/20read index bda3060..bfaffaf 100755 --- a/imageroot/actions/get-configuration/20read +++ b/imageroot/actions/get-configuration/20read @@ -16,6 +16,11 @@ import agent # Prepare return variable config = {} +if os.path.exists("rally.env"): + data = agent.read_envfile("rally.env") + config["ALLOWED_EMAILS"] = data['ALLOWED_EMAILS'] +else: + config["ALLOWED_EMAILS"] = "" # Read current configuration from the environment file config["host"] = os.getenv("TRAEFIK_HOST","") diff --git a/ui/src/views/Settings.vue b/ui/src/views/Settings.vue index 3747e7b..6c26c3e 100644 --- a/ui/src/views/Settings.vue +++ b/ui/src/views/Settings.vue @@ -61,6 +61,17 @@ $t("settings.enabled") }} + + + @@ -125,6 +136,7 @@ export default { host: "", isLetsEncryptEnabled: false, isHttpToHttpsEnabled: true, + ALLOWED_EMAILS: "", loading: { getConfiguration: false, configureModule: false, @@ -135,6 +147,7 @@ export default { host: "", lets_encrypt: "", http2https: "", + ALLOWED_EMAILS: "", }, }; }, @@ -202,6 +215,7 @@ export default { this.host = config.host; this.isLetsEncryptEnabled = config.lets_encrypt; this.isHttpToHttpsEnabled = config.http2https; + this.ALLOWED_EMAILS = config.ALLOWED_EMAILS; this.loading.getConfiguration = false; this.focusElement("host"); @@ -271,6 +285,7 @@ export default { host: this.host, lets_encrypt: this.isLetsEncryptEnabled, http2https: this.isHttpToHttpsEnabled, + ALLOWED_EMAILS: this.ALLOWED_EMAILS, }, extra: { title: this.$t("settings.instance_configuration", {