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
15
nix/home/programs/nginx/default.nix
Normal file
15
nix/home/programs/nginx/default.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{lib, ...}:
|
||||
let
|
||||
acmeEmail = lib.strings.fileContents ../../../../secrets/letsencrypt/mediaserver/email;
|
||||
in
|
||||
{
|
||||
security.acme.acceptTerms = true;
|
||||
security.acme.defaults.email = acmeEmail;
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
recommendedGzipSettings = true;
|
||||
recommendedOptimisation = true;
|
||||
recommendedProxySettings = true;
|
||||
recommendedTlsSettings = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue