From 7f920d85c8185e367057338e51b7d856abf985ee Mon Sep 17 00:00:00 2001 From: Mohammad20000 Date: Sun, 17 Mar 2024 09:49:15 +0330 Subject: [PATCH 1/2] Add .env file --- .env.example | 17 +++++++++++++++++ docker-compose.yml | 7 +------ 2 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..47b8d35 --- /dev/null +++ b/.env.example @@ -0,0 +1,17 @@ +SERVICE_PORT = 62050 + + +XRAY_API_PORT = 62051 +# XRAY_EXECUTABLE_PATH = /usr/local/bin/xray +# XRAY_ASSETS_PATH = /usr/local/share/xray + + +SSL_CERT_FILE = /var/lib/marzban-node/ssl_cert.pem +SSL_KEY_FILE = /var/lib/marzban-node/ssl_key.pem +SSL_CLIENT_CERT_FILE = /var/lib/marzban-node/ssl_client_cert.pem + +### can be rest or rpyc +# SERVICE_PROTOCOL = rpyc + +### for developers +# DEBUG = false diff --git a/docker-compose.yml b/docker-compose.yml index 3cf1df0..edb8ff9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,11 +4,6 @@ services: image: gozargah/marzban-node:latest restart: always network_mode: host - - environment: - SSL_CERT_FILE: "/var/lib/marzban-node/ssl_cert.pem" - SSL_KEY_FILE: "/var/lib/marzban-node/ssl_key.pem" - # SSL_CLIENT_CERT_FILE: "/var/lib/marzban-node/ssl_client_cert.pem" - + env_file: .env volumes: - /var/lib/marzban-node:/var/lib/marzban-node From 4e27567d818ada5acea2ce8b4294aa78f3696183 Mon Sep 17 00:00:00 2001 From: Mohammad20000 Date: Sun, 17 Mar 2024 10:09:12 +0330 Subject: [PATCH 2/2] fix: yaml --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index edb8ff9..26388a5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,6 +4,6 @@ services: image: gozargah/marzban-node:latest restart: always network_mode: host - env_file: .env + env_file: .env volumes: - /var/lib/marzban-node:/var/lib/marzban-node