hopglass: test if hopglass works on nixos
This commit is contained in:
parent
7b806690a8
commit
c006338aec
4 changed files with 129 additions and 0 deletions
21
hopglass-frontend.nix
Normal file
21
hopglass-frontend.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
hopglass-fe = (pkgs.callPackage ./pkg-hopglass-fe.nix {
|
||||
conf = ./hopglass-frontend.config.json;
|
||||
} );
|
||||
in
|
||||
{
|
||||
services.nginx.virtualHosts."map2.hamburg.freifunk.net" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
root = "${hopglass-fe}";
|
||||
locations."/" = {
|
||||
extraConfig = ''
|
||||
index index.html;
|
||||
etag off;
|
||||
add_header etag "\"${builtins.substring 11 32 hopglass-fe}\"";
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue