mail2-nixos-config/hopglass-frontend.nix

26 lines
546 B
Nix

{ config, lib, pkgs, ... }:
let
hopglass-fe = (pkgs.callPackage ./pkg-hopglass-fe.nix {
conf = ./hopglass-frontend.config.json;
} );
in
{
services.nginx.virtualHosts."map.hamburg.freifunk.net" = {
forceSSL = true;
enableACME = true;
default = true;
root = "${hopglass-fe}";
extraConfig = ''
access_log off;
'';
locations."/" = {
extraConfig = ''
index index.html;
etag off;
add_header etag "\"${builtins.substring 11 32 hopglass-fe}\"";
'';
};
};
}