Add forge server, clean up common nginx configuration, and update for

latest nixos configuration expectations
This commit is contained in:
Haak Saxberg 2025-01-04 09:50:53 -08:00
parent c5de48b167
commit 8b74198e4d
8 changed files with 99 additions and 33 deletions

View file

@ -1,19 +1,14 @@
{ lib, ... }:
let
domain = lib.strings.fileContents ../../../../secrets/letsencrypt/mediaserver/bookdomain;
in
{
services.calibre-web = {
enable = true;
};
security.acme.acceptTerms = true;
security.acme.defaults.email = lib.strings.fileContents ../../../../secrets/letsencrypt/mediaserver/email;
services.nginx = {
enable = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts."${lib.strings.fileContents ../../../../secrets/letsencrypt/mediaserver/bookdomain}" = {
virtualHosts."${domain}" = {
forceSSL = true;
enableACME = true;
# http2 can more performant for streaming: https://blog.cloudflare.com/introducing-http2/