use default gatus port
This commit is contained in:
parent
01138760f4
commit
01d54f8c2e
1 changed files with 1 additions and 4 deletions
|
@ -1,7 +1,6 @@
|
|||
{ lib, pkgs, nixpkgs-unstable, config, machines, ... }:
|
||||
let
|
||||
cfg = config.lab.monitoring;
|
||||
gatusPort = 8080;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
|
@ -59,8 +58,6 @@ in
|
|||
package = pkgs.unstable.gatus;
|
||||
|
||||
settings = {
|
||||
web.port = gatusPort;
|
||||
|
||||
storage = {
|
||||
type = "sqlite";
|
||||
path = "/srv/gatus/gatus.db";
|
||||
|
@ -96,7 +93,7 @@ in
|
|||
virtualHosts."${config.networking.fqdn}" = {
|
||||
locations = {
|
||||
"/" = {
|
||||
proxyPass = "http://127.0.0.1:${toString gatusPort}";
|
||||
proxyPass = "http://127.0.0.1:${toString config.services.gatus.settings.web.port}";
|
||||
recommendedProxySettings = true;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue