mail2-nixos-config/hopglass-frontend.nix
2024-12-30 13:36:07 +01:00

25 lines
608 B
Nix

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