diff options
-rw-r--r-- | biz.org | 13 | ||||
-rw-r--r-- | configuration.nix | 34 |
2 files changed, 20 insertions, 27 deletions
@@ -102,3 +102,16 @@ CLOCK: [2019-02-02 Sat 08:46]--[2019-02-02 Sat 08:46] => 0:00 a website where you put in your birthday and I select the best wine from that year/month whatever. Make it expensive, then I take a cut +* PROJ Infra +:PROPERTIES: +:ID: b4580692-9101-445a-a9b7-4a869170f548 +:END: +** DONE 7: Add home and tv subdomains +CLOSED: [2019-02-11 Mon 14:15] +:PROPERTIES: +:ID: 7f5b07dd-30f7-402e-926f-08527291f3d3 +:END: +:LOGBOOK: +- State "DONE" from [2019-02-11 Mon 14:15] +CLOCK: [2019-02-11 Mon 14:06]--[2019-02-11 Mon 14:15] => 0:09 +:END: diff --git a/configuration.nix b/configuration.nix index 1828d22..775bc99 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,5 +1,8 @@ { ... }: +let + bensIp = "68.107.97.20"; +in { nixpkgs.config.packageOverrides = pkgs: { ibb = import ./ibb/default.nix {}; @@ -18,33 +21,10 @@ recommendedProxySettings = true; recommendedTlsSettings = true; virtualHosts = { - "simatime.com" = { - #forceSSL = true; - #enableACME = true; - locations = { - "/" = { - proxyPass = "http://68.107.97.20:8000"; - }; - }; - }; - "dev.simatime.com" = { - #forceSSL = true; - #enableACME = true; - locations = { - "/" = { - proxyPass = "http://68.107.97.20:3000"; - }; - }; - }; - "hero.simatime.com" = { - #forceSSL = true; - #enableACME = true; - locations = { - "/" = { - proxyPass = "http://68.107.97.20:3001"; - }; - }; - }; + "simatime.com".locations."/".proxyPass = "http://${bensIp}:8000"; + "dev.simatime.com".locations."/".proxyPass = "http://${bensIp}:3000"; + "hero.simatime.com".locations."/".proxyPass = "http://${bensIp}:3001"; + "tv.simatime.com".locations."/".proxyPass = "http://${bensIp}:8096"; # emby runs on port 8096 "influencedbybooks.com" = { forceSSL = true; enableACME = true; |