diff options
author | Patryk Niedźwiedziński <patryk@niedzwiedzinski.cyou> | 2024-08-18 20:14:40 +0200 |
---|---|---|
committer | Patryk Niedźwiedziński <patryk@niedzwiedzinski.cyou> | 2024-08-18 20:14:40 +0200 |
commit | 12dc368a22a60d2ec0891a5d9ff2c228d9374e93 (patch) | |
tree | 38b9b64c064aa0e64250e9826a9c37524ccaedcb /machines/srv3/configuration.nix | |
parent | 7453e4bacf3647a74427f8a11e9793a095b551bc (diff) | |
download | dots-12dc368a22a60d2ec0891a5d9ff2c228d9374e93.tar.gz dots-12dc368a22a60d2ec0891a5d9ff2c228d9374e93.zip |
fresh.niedzwiedzinski.cyou
Diffstat (limited to 'machines/srv3/configuration.nix')
-rw-r--r-- | machines/srv3/configuration.nix | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/machines/srv3/configuration.nix b/machines/srv3/configuration.nix index 73c20db..8438826 100644 --- a/machines/srv3/configuration.nix +++ b/machines/srv3/configuration.nix @@ -29,7 +29,7 @@ in }; hostName = "srv3"; extraHosts = '' - 192.168.1.136 srv3.niedzwiedzinski.cyou git.niedzwiedzinski.cyou tmp.niedzwiedzinski.cyou zhr.niedzwiedzinski.cyou help.niedzwiedzinski.cyou niedzwiedzinski.cyou pics.niedzwiedzinski.cyou + 192.168.1.136 srv3.niedzwiedzinski.cyou git.niedzwiedzinski.cyou tmp.niedzwiedzinski.cyou zhr.niedzwiedzinski.cyou help.niedzwiedzinski.cyou niedzwiedzinski.cyou pics.niedzwiedzinski.cyou fresh.niedzwiedzinski.cyou 192.168.1.144 srv2.niedzwiedzinski.cyou '' + lib.readFile ( pkgs.fetchurl { url = "https://raw.githubusercontent.com/StevenBlack/hosts/d2be343994aacdec74865ff8d159cf6e46359adf/alternates/fakenews-gambling-porn/hosts"; @@ -81,6 +81,15 @@ in ]; }; + services.freshrss = { + enable = true; + virtualHost = "fresh.niedzwiedzinski.cyou"; + baseUrl = "https://fresh.niedzwiedzinski.cyou"; + authType = "form"; + defaultUser = "admin"; + passwordFile = "/fresh/passwd"; + }; + services.nginx.enable = true; services.nginx.additionalModules = with pkgs.nginxModules; [ modsecurity ]; services.nginx.appendHttpConfig = '' @@ -153,6 +162,10 @@ in forceSSL = true; root = "${www}/niedzwiedzinski.cyou/help"; }; + "fresh.niedzwiedzinski.cyou" = { + enableACME = true; + forceSSL = true; + }; }; security.acme.defaults.email = "pniedzwiedzinski19@gmail.com"; security.acme.acceptTerms = true; |