2022-12-01 17:31:09 -05:00
|
|
|
{{/* Define the secret */}}
|
|
|
|
{{- define "gsm.secret" -}}
|
2023-07-04 08:37:37 -04:00
|
|
|
{{- $gsm := .Values.gsm -}}
|
2023-04-11 06:07:17 -04:00
|
|
|
enabled: true
|
|
|
|
data:
|
|
|
|
DATABASE_URL: {{ .Values.cnpg.main.creds.std | trimAll "\"" }}
|
2022-12-01 17:31:09 -05:00
|
|
|
DB_CONNECTION: {{ print "postgres" }}
|
2023-07-04 08:37:37 -04:00
|
|
|
APP_TOKEN: {{ $gsm.app_token | quote }}
|
|
|
|
{{- with $gsm.whitelist_guilds }}
|
2022-12-01 17:31:09 -05:00
|
|
|
WHITELIST_GUILDS: {{ join ";" . | quote }}
|
|
|
|
{{- end }}
|
2023-07-04 08:37:37 -04:00
|
|
|
APP_ACTIVITY_TYPE: {{ $gsm.app_activity_type | quote }}
|
|
|
|
{{- with $gsm.app_activity_name }}
|
2022-12-01 17:31:09 -05:00
|
|
|
APP_ACTIVITY_NAME: {{ . | quote }}
|
|
|
|
{{- end }}
|
2023-07-04 08:37:37 -04:00
|
|
|
APP_PRESENCE_ADVERTISE: {{ $gsm.app_presence_advertise | quote }}
|
|
|
|
POSTGRES_SSL_MODE: {{ $gsm.postgres_ssl_mode | quote }}
|
|
|
|
TASK_QUERY_SERVER: {{ $gsm.task_query_server | quote }}
|
|
|
|
COMMAND_QUERY_PUBLIC: {{ $gsm.command_query_public | quote }}
|
|
|
|
COMMAND_QUERY_COOLDOWN: {{ $gsm.command_query_cooldown | quote }}
|
|
|
|
WEB_API_ENABLE: {{ $gsm.web_api_enable | quote }}
|
|
|
|
{{- with $gsm.factorio_username }}
|
|
|
|
FACTORIO_USERNAME: {{ . | quote }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with $gsm.factorio_auth_token }}
|
|
|
|
FACTORIO_TOKEN: {{ . | quote }}
|
|
|
|
{{- end }}
|
2022-12-01 17:31:09 -05:00
|
|
|
{{- end }}
|