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, ... }:
|
{ lib, pkgs, nixpkgs-unstable, config, machines, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.lab.monitoring;
|
cfg = config.lab.monitoring;
|
||||||
gatusPort = 8080;
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -59,8 +58,6 @@ in
|
||||||
package = pkgs.unstable.gatus;
|
package = pkgs.unstable.gatus;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
web.port = gatusPort;
|
|
||||||
|
|
||||||
storage = {
|
storage = {
|
||||||
type = "sqlite";
|
type = "sqlite";
|
||||||
path = "/srv/gatus/gatus.db";
|
path = "/srv/gatus/gatus.db";
|
||||||
|
@ -96,7 +93,7 @@ in
|
||||||
virtualHosts."${config.networking.fqdn}" = {
|
virtualHosts."${config.networking.fqdn}" = {
|
||||||
locations = {
|
locations = {
|
||||||
"/" = {
|
"/" = {
|
||||||
proxyPass = "http://127.0.0.1:${toString gatusPort}";
|
proxyPass = "http://127.0.0.1:${toString config.services.gatus.settings.web.port}";
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue