init hosting

This commit is contained in:
admin 2024-03-01 22:15:55 +01:00
parent d829e61515
commit e74c66006a
4 changed files with 168 additions and 0 deletions

27
audiobooks.nix Normal file
View file

@ -0,0 +1,27 @@
{ config, ... }:
let
domain = "books.sondell.org";
# derp = "hi";
in
{
#
services.audiobookshelf = {
enable = true;
port = 8000;
};
services.nginx.virtualHosts.${domain} = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:8000/";
proxyWebsockets = true;
# extraConfig = ''
# access_log /var/log/nginx/access.log main if=$forgejo_access_log;
# '';
};
};
}