Handle new parameters

This commit is contained in:
nemunaire 2024-01-02 17:06:49 +01:00
parent cc55808f31
commit a35d78be37
3 changed files with 21 additions and 1 deletions

View File

@ -13,20 +13,24 @@ happydomain_baseurl: ""
happydomain_custom_body_html: ""
happydomain_custom_head_html: ""
happydomain_default_nameserver: "127.0.0.1:53"
happydomain_disable_providers_edit: "false"
happydomain_endpoint: ":8081"
happydomain_external_auth: ""
happydomain_external_url: "http://localhost:8081"
happydomain_hide_feedback_button: "false"
happydomain_jwt_secret_key: ""
happydomain_storage_leveldb_path: "./happydomain.db"
happydomain_mail_from: "happyDomain <happydomain@localhost>"
happydomain_mail_smtp_host: ""
happydomain_mail_smtp_port: "465"
happydomain_mail_smtp_username: ""
happydomain_mail_smtp_password: ""
happydomain_mail_smtp_tls_no_verify: ""
happydomain_msg_header_text: ""
happydomain_msg_header_color: "danger"
happydomain_newsletter_server_url: ""
happydomain_newsletter_id: ""
happydomain_no_auth: "false"
happydomain_ovh_application_key: ""
happydomain_ovh_application_secret: ""
happydomain_storage_engine: "leveldb"
happydomain_storage_leveldb_path: "./happydomain.db"

View File

@ -16,10 +16,14 @@
HAPPYDOMAIN_BASEURL: "{{ happydomain_baseurl }}"
HAPPYDOMAIN_CUSTOM_HEAD_HTML: "{{ happydomain_custom_head_html }}"
HAPPYDOMAIN_DEFAULT_NS: "{{ happydomain_default_nameserver }}"
HAPPYDOMAIN_DISABLE_PROVIDERS_EDIT: "{{ happydomain_disable_providers_edit }}"
HAPPYDOMAIN_EXTERNAL_AUTH: "{{ happydomain_external_auth }}"
HAPPYDOMAIN_EXTERNALURL: "{{ happydomain_external_url }}"
HAPPYDOMAIN_HIDE_FEEDBACK_BUTTON: "{{ happydomain_hide_feedback_button }}"
HAPPYDOMAIN_JWT_SECRET_KEY: "{{ happydomain_jwt_secret_key }}"
HAPPYDOMAIN_LEVELDB_PATH: "{{ happydomain_storage_leveldb_path }}"
HAPPYDOMAIN_MSG_HEADER_TEXT: "{{ happydomain_msg_header_text }}"
HAPPYDOMAIN_MSG_HEADER_COLOR: "{{ happydomain_msg_header_color }}"
HAPPYDOMAIN_NEWSLETTER_SERVER_URL: "{{ happydomain_newsletter_server_url }}"
HAPPYDOMAIN_NEWSLETTER_ID: "{{ happydomain_newsletter_id }}"
HAPPYDOMAIN_MAIL_FROM: "{{ happydomain_mail_from }}"

View File

@ -16,6 +16,9 @@ custom-body-html={{ happydomain_custom_body_html }}
{% if happydomain_default_nameserver is defined and happydomain_default_nameserver != "" %}
default-ns={{ happydomain_default_nameserver }}
{% endif %}
{% if happydomain_disable_providers_edit is defined and happydomain_disable_providers_edit != "" %}
disable-providers-edit={{ happydomain_disable_providers_edit }}
{% endif %}
{% if happydomain_external_auth is defined and happydomain_external_auth != "" %}
external-auth={{ happydomain_external_auth }}
{% endif %}
@ -25,6 +28,9 @@ externalurl={{ happydomain_external_url }}
{% if happydomain_jwt_secret_key is defined and happydomain_jwt_secret_key != "" %}
jwt-secret-key={{ happydomain_jwt_secret_key }}
{% endif %}
{% if happydomain_hide_feedback_button is defined and happydomain_hide_feedback_button %}
hide-feedback-button={{ happydomain_hide_feedback_button }}
{% endif %}
leveldb-path={{ happydomain_storage_leveldb_path | default(happydomain_data_dir + '/happydomain.db') }}
{% if happydomain_mail_from is defined and happydomain_mail_from != "" %}
mail-from={{ happydomain_mail_from }}
@ -44,6 +50,12 @@ mail-smtp-password={{ happydomain_mail_smtp_password }}
{% if happydomain_mail_smtp_tls_no_verify is defined and happydomain_mail_smtp_tls_no_verify != "" %}
mail-smtp-tls-no-verify={{ happydomain_mail_smtp_tls_no_verify }}
{% endif %}
{% if happydomain_msg_header_text is defined and happydomain_msg_header_text != "" %}
msg-header-text={{ happydomain_msg_header_text }}
{% endif %}
{% if happydomain_msg_header_color is defined and happydomain_msg_header_color != "" %}
msg-header-color={{ happydomain_msg_header_color }}
{% endif %}
{% if happydomain_newsletter_server_url is defined and happydomain_newsletter_server_url != "" %}
newsletter-server-url={{ happydomain_newsletter_server_url }}
{% endif %}