grafana: replace caddy with nginx

...so that it's automatically included in public-access-proxy
This commit is contained in:
Astro 2021-10-11 23:04:05 +02:00
parent 63822d6d8a
commit 8c2c3baf21
1 changed files with 9 additions and 5 deletions

View File

@ -20,12 +20,16 @@
# collectd
networking.firewall.allowedUDPPorts = [ 25826 ];
services.caddy = {
services.nginx = {
enable = true;
config = ''
grafana.hq.c3d2.de
reverse_proxy localhost:3000
'';
virtualHosts = {
"grafana.hq.c3d2.de" = {
default = true;
enableACME = true;
forceSSL = true;
locations = { "/".proxyPass = "http://localhost:3000/"; };
};
};
};
services.grafana = {
enable = true;