3x-ui on server

This commit is contained in:
2026-08-09 03:18:09 +03:00
parent 5b3da95fc2
commit ae026883ed
4 changed files with 40 additions and 14 deletions
+2 -1
View File
@@ -4,6 +4,7 @@
}:
{
imports = [
../containers/3x-ui.nix
../software/beets
./acme.nix
./bentopdf.nix
@@ -23,9 +24,9 @@
./postgresql.nix
./power.nix
./samba.nix
# ./step-ca.nix
./syncthing.nix
./systemd.nix
# ./step-ca.nix
# ../containers/remnawave.nix
# ./coturn.nix
# ./mealie.nix
+15 -12
View File
@@ -6,6 +6,9 @@
xlib,
...
}:
let
navidromeDir = "/var/lib/services/navidrome-point";
in
{
services = {
navidrome = {
@@ -15,19 +18,19 @@
settings = {
Address = "0.0.0.0";
Port = 4533;
MusicFolder = "${xlib.dirs.server-home}/Music";
MusicFolder = "${navidromeDir}";
};
};
};
# systemd.mounts = [
# {
# enable = true;
# options = "bind,x-systemd.automount,nofail";
# requires = [ "local-fs.target" ];
# type = "none";
# wantedBy = [ "multi-user.target" ];
# what = "${xlib.dirs.server-home}/Music";
# where = "/home/${xlib.device.username}/.config/beets";
# }
# ];
systemd.mounts = [
{
enable = true;
options = "bind,x-systemd.automount,nofail";
requires = [ "local-fs.target" ];
type = "none";
wantedBy = [ "multi-user.target" ];
what = "${xlib.dirs.server-home}/Music";
where = "${navidromeDir}";
}
];
}
+22
View File
@@ -64,6 +64,28 @@ in
client_max_body_size 5G;
'';
};
"z.zeroq.su" = {
forceSSL = true;
enableACME = true;
locations = {
"/" = {
proxyPass = "http://${server}:2049";
proxyWebsockets = true;
};
"/subs/" = {
proxyPass = "http://${server}:2096";
proxyWebsockets = true;
};
"/subsjs/" = {
proxyPass = "http://${server}:2096";
proxyWebsockets = true;
};
"/clash/" = {
proxyPass = "http://${server}:2096";
proxyWebsockets = true;
};
};
};
# "pdf.home.arpa" = {
# forceSSL = true;
# enableACME = true;