From 9e796e50731d7f48e826c9e9ec1f19201fe505d1 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 24 Jun 2019 18:54:44 +0800 Subject: [PATCH] nixbld: add password on munin output --- nixbld-etc-nixos/configuration.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index 182e632..c8715e8 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -276,6 +276,10 @@ ACTION=="add", SUBSYSTEM=="tty", \ addSSL = true; useACMEHost = "nixbld.m-labs.hk"; locations."/munin".alias = "/var/www/munin"; + locations."/munin".extraConfig = '' + auth_basic "Munin"; + auth_basic_user_file /etc/nixos/secret/muninpasswd; + ''; locations."/homu/".proxyPass = "http://127.0.0.1:54856/"; }; "nixbld.m-labs.hk" = {