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
+1 -1
View File
@@ -17,7 +17,7 @@
# server = "https://localhost:9000/acme/acme/directory"; # server = "https://localhost:9000/acme/acme/directory";
# listenHTTP = ":80"; # listenHTTP = ":80";
# dnsProvider = null; # dnsProvider = null;
# }; # };
# # "turn.home.arpa" = { # # "turn.home.arpa" = {
# # listenHTTP = "127.0.0.1:80"; # # listenHTTP = "127.0.0.1:80";
# # group = "turnserver"; # # group = "turnserver";
+2 -1
View File
@@ -4,6 +4,7 @@
}: }:
{ {
imports = [ imports = [
../containers/3x-ui.nix
../software/beets ../software/beets
./acme.nix ./acme.nix
./bentopdf.nix ./bentopdf.nix
@@ -23,9 +24,9 @@
./postgresql.nix ./postgresql.nix
./power.nix ./power.nix
./samba.nix ./samba.nix
# ./step-ca.nix
./syncthing.nix ./syncthing.nix
./systemd.nix ./systemd.nix
# ./step-ca.nix
# ../containers/remnawave.nix # ../containers/remnawave.nix
# ./coturn.nix # ./coturn.nix
# ./mealie.nix # ./mealie.nix
+15 -12
View File
@@ -6,6 +6,9 @@
xlib, xlib,
... ...
}: }:
let
navidromeDir = "/var/lib/services/navidrome-point";
in
{ {
services = { services = {
navidrome = { navidrome = {
@@ -15,19 +18,19 @@
settings = { settings = {
Address = "0.0.0.0"; Address = "0.0.0.0";
Port = 4533; Port = 4533;
MusicFolder = "${xlib.dirs.server-home}/Music"; MusicFolder = "${navidromeDir}";
}; };
}; };
}; };
# systemd.mounts = [ systemd.mounts = [
# { {
# enable = true; enable = true;
# options = "bind,x-systemd.automount,nofail"; options = "bind,x-systemd.automount,nofail";
# requires = [ "local-fs.target" ]; requires = [ "local-fs.target" ];
# type = "none"; type = "none";
# wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
# what = "${xlib.dirs.server-home}/Music"; what = "${xlib.dirs.server-home}/Music";
# where = "/home/${xlib.device.username}/.config/beets"; where = "${navidromeDir}";
# } }
# ]; ];
} }
+22
View File
@@ -64,6 +64,28 @@ in
client_max_body_size 5G; 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" = { # "pdf.home.arpa" = {
# forceSSL = true; # forceSSL = true;
# enableACME = true; # enableACME = true;