temporary chaos
This commit is contained in:
parent
3032768cc9
commit
8e31bd6c02
27 changed files with 490 additions and 106 deletions
37
servers/kotori/main.nix
Normal file
37
servers/kotori/main.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{ config, pkgs, secret, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./nginx.nix
|
||||
# ./hysteria.nix
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
hysteria
|
||||
];
|
||||
|
||||
services.yggdrasil.persistentKeys = true;
|
||||
marzban = {
|
||||
env = {
|
||||
UVICORN_HOST = "kotori.project-a.space";
|
||||
UVICORN_PORT = secret.marzban.port;
|
||||
SUDO_USERNAME = secret.marzban.sudo-username;
|
||||
SUDO_PASSWORD = secret.marzban.sudo-password;
|
||||
DOCS = true;
|
||||
};
|
||||
cert = true;
|
||||
domain = "kotori.project-a.space";
|
||||
xray = import ../common/xray.nix {
|
||||
server-domain = "kotori.project-a.space";
|
||||
port = secret.marzban.vless-port;
|
||||
dest = secret.marzban.dest;
|
||||
privateKey = secret.marzban.privateKey;
|
||||
shortId = secret.marzban.shortId;
|
||||
spiderX = secret.marzban.spiderX;
|
||||
sni = secret.marzban.sni;
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ secret.marzban.port secret.marzban.vless-port ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue