From 6e1f615b4b0e36b98d179dc4bcab79acdc200c56 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Fri, 11 Jun 2021 07:59:14 -0400 Subject: Deploy grocy --- Biz/Cloud/Grocy.nix | 17 +++++++++++++++++ Biz/Cloud/Web.nix | 7 ++++++- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 Biz/Cloud/Grocy.nix (limited to 'Biz/Cloud') diff --git a/Biz/Cloud/Grocy.nix b/Biz/Cloud/Grocy.nix new file mode 100644 index 0000000..3f63cc7 --- /dev/null +++ b/Biz/Cloud/Grocy.nix @@ -0,0 +1,17 @@ +{ config, pkgs, ... }: + +{ + services.grocy = { + enable = true; + hostName = "grocy.simatime.com"; + nginx.enableSSL = false; # set in Web.nix + settings = { + calendar = { + firstDayOfWeek = 1; + showWeekNumber = true; + }; + currency = "USD"; + culture = "en"; + }; + }; +} diff --git a/Biz/Cloud/Web.nix b/Biz/Cloud/Web.nix index 2a47fc1..fd28eee 100644 --- a/Biz/Cloud/Web.nix +++ b/Biz/Cloud/Web.nix @@ -42,7 +42,7 @@ in statusPage = true; user = "nginx"; - group = "www-data"; + group = "nginx"; virtualHosts = { ${rootDomain} = { @@ -152,6 +152,10 @@ in # proxyWebsockets = true; # }; #}; + "grocy.${rootDomain}" = { + useACMEHost = rootDomain; + forceSSL = true; + }; }; }; }; @@ -166,5 +170,6 @@ in "dandel-rovbur.${rootDomain}" "sabten.${rootDomain}" "cal.${rootDomain}" + "grocy.${rootDomain}" ];# } -- cgit v1.2.3