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