mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-28 20:17:12 +08:00
bring back jelly
This commit is contained in:
parent
702908ebc8
commit
0efd6295a9
3 changed files with 46 additions and 22 deletions
1
.vscode/extensions.json
vendored
1
.vscode/extensions.json
vendored
|
|
@ -3,7 +3,6 @@
|
|||
"bbenoist.nix",
|
||||
"b4dm4n.nixpkgs-fmt",
|
||||
"jnoortheen.nix-ide",
|
||||
"mattn.lisp",
|
||||
"mkhl.direnv",
|
||||
"kdl-org.kdl"
|
||||
]
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ in
|
|||
imports = [
|
||||
self.nixosModules.default
|
||||
./configuration.nix
|
||||
./home-media.nix
|
||||
(self + /modules/nixos/linux/lxd.nix)
|
||||
(self + /modules/nixos/shared/github-runner.nix)
|
||||
];
|
||||
|
|
|
|||
|
|
@ -14,34 +14,58 @@
|
|||
vlc
|
||||
];
|
||||
|
||||
/* Not using this
|
||||
services.transmission = {
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
group = "jellyfin";
|
||||
openRPCPort = true;
|
||||
settings = {
|
||||
recommendedProxySettings = true;
|
||||
recommendedTlsSettings = true;
|
||||
virtualHosts = {
|
||||
"pureintent" = {
|
||||
locations = {
|
||||
# Return index.html with likns to other two sites
|
||||
"/browse" = {
|
||||
extraConfig = ''
|
||||
default_type text/html;
|
||||
'';
|
||||
return = "200 '<ul style=\"font-size: 4em;\"><li><a href=\"/web\">Jellyfin</a> (Watch Movies)</li><li><a href=\"/transmission\">Transmission</a> (Torrent Download)</li></ul>'";
|
||||
};
|
||||
# Jellyfin
|
||||
"/" = {
|
||||
proxyPass = "http://localhost:8096";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
/* Not using this
|
||||
services.transmission = {
|
||||
enable = true;
|
||||
group = "jellyfin";
|
||||
openRPCPort = true;
|
||||
settings = {
|
||||
rpc-bind-address = "localhost";
|
||||
rpc-whitelist-enabled = false; # ACL managed through Tailscale
|
||||
rpc-host-whitelist = "pureintent pureintent.rooster-blues.ts.net";
|
||||
download-dir = "/Self/Downloads";
|
||||
trash-original-torrent-files = true;
|
||||
};
|
||||
};
|
||||
*/
|
||||
};
|
||||
};
|
||||
*/
|
||||
|
||||
/* Disabled, because jellyfin has issues
|
||||
age.secrets = {
|
||||
"pureintent-basic-auth.age" = {
|
||||
age.secrets = {
|
||||
"pureintent-basic-auth.age" = {
|
||||
file = self + /secrets/pureintent-basic-auth.age;
|
||||
owner = "nginx";
|
||||
};
|
||||
};
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
recommendedProxySettings = true;
|
||||
recommendedTlsSettings = true;
|
||||
# virtualHosts."pureintent.rooster-blues.ts.net" = {
|
||||
virtualHosts = rec {
|
||||
};
|
||||
};
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
recommendedProxySettings = true;
|
||||
recommendedTlsSettings = true;
|
||||
# virtualHosts."pureintent.rooster-blues.ts.net" = {
|
||||
virtualHosts = rec {
|
||||
"pureintent.rooster-blues.ts.net" = pureintent;
|
||||
"pureintent" = {
|
||||
locations = {
|
||||
|
|
@ -66,7 +90,7 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
*/
|
||||
};
|
||||
};
|
||||
*/
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue