Add forge server, clean up common nginx configuration, and update for
latest nixos configuration expectations
This commit is contained in:
parent
c5de48b167
commit
8b74198e4d
8 changed files with 99 additions and 33 deletions
|
|
@ -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/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue