Remove configmap.yaml - xlrl/mantisbt generates config itself
This commit is contained in:
@@ -1,61 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ template "mantisbt.fullname" . }}-config
|
||||
labels:
|
||||
app: {{ template "mantisbt.name" . }}
|
||||
chart: {{ template "mantisbt.chart" . }}
|
||||
release: {{ .Release.Name }}
|
||||
heritage: {{ .Release.Service }}
|
||||
data:
|
||||
config_inc.php: |
|
||||
<?php
|
||||
# MantisBT Configuration - Generated by Helm
|
||||
|
||||
# Database settings
|
||||
$g_hostname = '{{ include "mantisbt.databaseHost" . }}';
|
||||
$g_db_type = 'mysqli';
|
||||
$g_database_name = '{{ include "mantisbt.databaseName" . }}';
|
||||
$g_db_username = '{{ include "mantisbt.databaseUser" . }}';
|
||||
$g_db_password = '{{ include "mantisbt.databasePassword" . }}';
|
||||
|
||||
# Site settings
|
||||
$g_window_title = '{{ .Values.mantisbt.siteName }}';
|
||||
$g_path = '{{ .Values.mantisbt.siteUrl }}/';
|
||||
|
||||
# Anonymous access
|
||||
$g_allow_anonymous_login = OFF;
|
||||
$g_anonymous_account = '';
|
||||
|
||||
# Security
|
||||
$g_crypto_master_salt = '{{ randAlphaNum 64 | b64enc }}';
|
||||
|
||||
{{- if .Values.mantisbt.email.enabled }}
|
||||
# Email settings
|
||||
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
|
||||
$g_smtp_host = '{{ .Values.mantisbt.email.smtpHost }}';
|
||||
$g_smtp_port = {{ .Values.mantisbt.email.smtpPort }};
|
||||
$g_from_email = '{{ .Values.mantisbt.email.fromAddress }}';
|
||||
$g_from_name = '{{ .Values.mantisbt.email.fromName }}';
|
||||
$g_enable_email_notification = ON;
|
||||
{{- if .Values.mantisbt.email.smtpUsername }}
|
||||
$g_smtp_username = '{{ .Values.mantisbt.email.smtpUsername }}';
|
||||
$g_smtp_password = '{{ .Values.mantisbt.email.smtpPassword }}';
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
# Email disabled
|
||||
$g_enable_email_notification = OFF;
|
||||
{{- end }}
|
||||
|
||||
# Timezone
|
||||
$g_default_timezone = '{{ .Values.mantisbt.timezone | default "Europe/Berlin" }}';
|
||||
|
||||
# File uploads
|
||||
$g_file_upload_method = DISK;
|
||||
$g_absolute_path_default_upload_folder = '/var/www/html/uploads/';
|
||||
$g_max_file_size = 10000000;
|
||||
$g_allowed_files = 'png,gif,jpg,jpeg,pdf,doc,docx,xls,xlsx,ppt,pptx,txt,zip,rar,7z';
|
||||
|
||||
# Logging (disable in production)
|
||||
$g_log_level = LOG_NONE;
|
||||
$g_show_detailed_errors = OFF;
|
||||
Reference in New Issue
Block a user