Add audiobookshelf
This commit is contained in:
parent
1a14118877
commit
c26e63315e
21
nix/modules/nixos/features/homelab/audiobookshelf.nix
Normal file
21
nix/modules/nixos/features/homelab/audiobookshelf.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
services.audiobookshelf = {
|
||||
enable = true;
|
||||
|
||||
host = "audiobookshelf.localhost";
|
||||
port = 4001;
|
||||
};
|
||||
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
|
||||
virtualHosts."audiobookshelf.localhost" = {
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:${toString config.services.audiobookshelf.port}/";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./audiobookshelf.nix
|
||||
./gitea.nix
|
||||
./immich.nix
|
||||
./jellyfin.nix
|
||||
|
|
Loading…
Reference in a new issue