From d39475d8f7194d1a148c144d13acbc3b0f808997 Mon Sep 17 00:00:00 2001 From: v-kamerdinerov Date: Wed, 25 Dec 2024 01:29:01 +0700 Subject: [PATCH] Flag for custom sub template, and CA_TYPE for dev version --- roles/marzban/templates/env.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/marzban/templates/env.j2 b/roles/marzban/templates/env.j2 index 5e5e5f5..8a40cec 100644 --- a/roles/marzban/templates/env.j2 +++ b/roles/marzban/templates/env.j2 @@ -11,9 +11,12 @@ SQLALCHEMY_DATABASE_URL = "sqlite:////var/lib/marzban/db.sqlite3" UVICORN_PORT = {{ marzban_panel_port }} UVICORN_SSL_CERTFILE = "/var/lib/marzban/certs/{{ marzban_ssl_certfile }}" UVICORN_SSL_KEYFILE = "/var/lib/marzban/certs/{{ marzban_ssl_keyfile }}" +UVICORN_SSL_CA_TYPE = "private" XRAY_SUBSCRIPTION_URL_PREFIX = https://{{ marzban_panel_uri }} CUSTOM_TEMPLATES_DIRECTORY="{{ marzban_system_dirs | json_query('[*].templates_dir') | first }}/" +{% if marzban_custom_subscription_template is defined and marzban_custom_subscription_template %} SUBSCRIPTION_PAGE_TEMPLATE="index.html" +{% endif %} XRAY_JSON = "{{ marzban_system_dirs | json_query('[*].work_dir') | first }}/xray_config.json" SUDO_USERNAME="{{ marzban_panel_login }}" SUDO_PASSWORD="{{ marzban_panel_password }}"