Skip to content

Commit

Permalink
Merge pull request #36 from ImMohammad20000/env-file
Browse files Browse the repository at this point in the history
Add .env file
  • Loading branch information
SaintShit authored Apr 1, 2024
2 parents 6dbbdd1 + 4e27567 commit 6eb48cc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
17 changes: 17 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -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
7 changes: 1 addition & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6eb48cc

Please sign in to comment.