grafana: replace caddy with nginx
...so that it's automatically included in public-access-proxy
This commit is contained in:
parent
63822d6d8a
commit
8c2c3baf21
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue