first commit
This commit is contained in:
commit
17f65ed65f
9 changed files with 394 additions and 0 deletions
25
marzban/options.nix
Normal file
25
marzban/options.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ lib, ... }:
|
||||
|
||||
{
|
||||
options = with lib; with types; {
|
||||
marzban = {
|
||||
env = {
|
||||
UVICORN_HOST = mkOption { type = str; default = "0.0.0.0"; };
|
||||
UVICORN_PORT = mkOption { type = int; default = 8000; };
|
||||
SUDO_USERNAME = mkOption { type = str; default = "admin"; };
|
||||
SUDO_PASSWORD = mkOption { type = str; default = "admin"; };
|
||||
DASHBOARD_PATH = mkOption { type = str; default = "/dashboard/"; };
|
||||
DOCS = mkOption { type = bool; default = false; };
|
||||
};
|
||||
xray = {
|
||||
log = mkOption { type = anything; };
|
||||
dns = mkOption { type = anything; };
|
||||
routing = mkOption { type = anything; };
|
||||
inbounds = mkOption { type = anything; };
|
||||
outbounds = mkOption { type = anything; };
|
||||
};
|
||||
domain = mkOption { type = types.str; default = "example.com"; };
|
||||
cert = mkOption { type = types.bool; default = false; };
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue