mirror of
https://github.com/oqyude/nixos.git
synced 2026-08-09 08:03:16 +03:00
3x-ui on server
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
# server = "https://localhost:9000/acme/acme/directory";
|
||||
# listenHTTP = ":80";
|
||||
# dnsProvider = null;
|
||||
# };
|
||||
# };
|
||||
# # "turn.home.arpa" = {
|
||||
# # listenHTTP = "127.0.0.1:80";
|
||||
# # group = "turnserver";
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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}";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user