diff options
author | Ben Sima <ben@bsima.me> | 2019-02-22 15:22:49 -0800 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2019-02-23 13:25:47 -0800 |
commit | 9b2b49e9063d805e68acbef40989075f1b1a6576 (patch) | |
tree | c2c5464bb2b6b3bf2c9109d6a2218d9a6d62b222 /configuration.nix | |
parent | 3b90927e818729f2983ae7ebe5ab65c0b96bcd2a (diff) |
Package and deploy fathom
Diffstat (limited to 'configuration.nix')
-rw-r--r-- | configuration.nix | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/configuration.nix b/configuration.nix index a5cd2c6..83c449b 100644 --- a/configuration.nix +++ b/configuration.nix @@ -3,12 +3,13 @@ let bensIp = "68.107.97.20"; ibbPort = "3000"; + fathomPort = "3030"; in { nixpkgs.config.allowUnfree = true; - nixpkgs.config.packageOverrides = pkgs: { - ibb = import ./ibb/default.nix {}; - }; + nixpkgs.overlays = [ + (import ./pack/default.nix) + ]; networking.firewall.allowedTCPPorts = [ 22 80 443 ]; @@ -19,6 +20,12 @@ in port = ibbPort; }; + fathom = { + enable = true; + port = fathomPort; + dataDir = "/var/lib/fathom"; + }; + nginx = { enable = true; recommendedGzipSettings = true; @@ -30,6 +37,12 @@ in "dev.simatime.com".locations."/".proxyPass = "http://${bensIp}:${ibbPort}"; "hero.simatime.com".locations."/".proxyPass = "http://${bensIp}:3001"; "tv.simatime.com".locations."/".proxyPass = "http://${bensIp}:8096"; # emby runs on port 8096 + + "stats.simatime.com" = { + locations."/".proxyPass = "http://localhost:${fathomPort}"; + forceSSL = true; + enableACME = true; + }; "influencedbybooks.com" = { forceSSL = true; enableACME = true; |