blob: 4ab3fd993b73a7400004d4b526fa2c66cc2d808c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
inputs:
{ config, lib, ... }:
{
services.grocy = {
enable = true;
hostName = "grocy.${config.networking.fqdn}";
nginx.enableSSL = false;
settings = {
calendar.firstDayOfWeek = 1;
calendar.showWeekNumber = false;
culture = "fr";
currency = "EUR";
};
};
services.nginx.virtualHosts."${config.services.grocy.hostName}" = {
# Fixes nginx error:
# Problem: [add_header_redefinition] Nested "add_header" drops parent headers.
locations."~ \\.(js|css|ttf|woff2?|png|jpe?g|svg)$".extraConfig = lib.mkForce ''
access_log off;
'';
listen = [
{ addr = "[${config.topology.mainVpn.currentNodeIP}]"; port = 80; }
];
};
}
|