status: remove status as it got replaced by a ansible-managed Gatus
This commit is contained in:
parent
79952f8c63
commit
28d82f149d
7 changed files with 0 additions and 232 deletions
|
|
@ -6,22 +6,6 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
services.nginx.streamConfig = ''
|
|
||||||
map $ssl_preread_server_name $address {
|
|
||||||
status.ccchh.net 10.31.206.15:8443;
|
|
||||||
status.hamburg.ccc.de 10.31.206.15:8443;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Listen on port 443 as a reverse proxy and use PROXY Protocol for the
|
|
||||||
# upstreams.
|
|
||||||
server {
|
|
||||||
listen 0.0.0.0:443;
|
|
||||||
proxy_pass $address;
|
|
||||||
ssl_preread on;
|
|
||||||
proxy_protocol on;
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
|
|
||||||
services.nginx.appendHttpConfig = ''
|
services.nginx.appendHttpConfig = ''
|
||||||
map $host $upstream_acme_challenge_host {
|
map $host $upstream_acme_challenge_host {
|
||||||
club-assistant.ccchh.net 10.31.208.10;
|
club-assistant.ccchh.net 10.31.208.10;
|
||||||
|
|
@ -35,7 +19,6 @@
|
||||||
zigbee2mqtt.ccchh.net 10.31.208.25:31820;
|
zigbee2mqtt.ccchh.net 10.31.208.25:31820;
|
||||||
esphome.ccchh.net 10.31.208.24:31820;
|
esphome.ccchh.net 10.31.208.24:31820;
|
||||||
proxmox-backup-server.ccchh.net 10.31.208.28;
|
proxmox-backup-server.ccchh.net 10.31.208.28;
|
||||||
status.ccchh.net 10.31.206.15:31820;
|
|
||||||
default "";
|
default "";
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
networking = {
|
|
||||||
hostName = "status";
|
|
||||||
domain = "z9.ccchh.net";
|
|
||||||
};
|
|
||||||
|
|
||||||
system.stateVersion = "24.05";
|
|
||||||
}
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
./configuration.nix
|
|
||||||
./networking.nix
|
|
||||||
./nginx.nix
|
|
||||||
./uptime-kuma.nix
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
networking = {
|
|
||||||
interfaces.net0 = {
|
|
||||||
ipv4.addresses = [
|
|
||||||
{
|
|
||||||
address = "10.31.206.15";
|
|
||||||
prefixLength = 23;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
ipv6.addresses = [
|
|
||||||
{
|
|
||||||
address = "2a07:c481:1:ce::a";
|
|
||||||
prefixLength = 64;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
defaultGateway = "10.31.206.1";
|
|
||||||
defaultGateway6 = "2a07:c481:1:ce::1";
|
|
||||||
nameservers = [ "10.31.206.1" "2a07:c481:1:ce::1" ];
|
|
||||||
search = [ "z9.ccchh.net" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.network.links."10-net0" = {
|
|
||||||
matchConfig.MACAddress = "BC:24:11:79:D3:E1";
|
|
||||||
linkConfig.Name = "net0";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,149 +0,0 @@
|
||||||
# Sources for this configuration:
|
|
||||||
# - https://github.com/louislam/uptime-kuma/wiki/Reverse-Proxy
|
|
||||||
|
|
||||||
{ config, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
services.nginx = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
virtualHosts = {
|
|
||||||
"status.hamburg.ccc.de" = {
|
|
||||||
forceSSL = true;
|
|
||||||
enableACME = true;
|
|
||||||
serverName = "status.hamburg.ccc.de";
|
|
||||||
|
|
||||||
listen = [
|
|
||||||
{
|
|
||||||
addr = "[::]";
|
|
||||||
port = 80;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
addr = "[::]";
|
|
||||||
port = 443;
|
|
||||||
ssl = true;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
locations."/" = {
|
|
||||||
proxyPass = "http://localhost:3001";
|
|
||||||
proxyWebsockets = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"status-proxyprotocol.hamburg.ccc.de" = {
|
|
||||||
forceSSL = true;
|
|
||||||
useACMEHost = "status.hamburg.ccc.de";
|
|
||||||
serverName = "status.hamburg.ccc.de";
|
|
||||||
|
|
||||||
listen = [
|
|
||||||
{
|
|
||||||
addr = "0.0.0.0";
|
|
||||||
port = 8443;
|
|
||||||
ssl = true;
|
|
||||||
proxyProtocol = true;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
locations."/" = {
|
|
||||||
proxyPass = "http://localhost:3001";
|
|
||||||
proxyWebsockets = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
extraConfig = ''
|
|
||||||
# Make use of the ngx_http_realip_module to set the $remote_addr and
|
|
||||||
# $remote_port to the client address and client port, when using proxy
|
|
||||||
# protocol.
|
|
||||||
# First set our proxy protocol proxy as trusted.
|
|
||||||
set_real_ip_from 10.31.206.11;
|
|
||||||
# Then tell the realip_module to get the addreses from the proxy protocol
|
|
||||||
# header.
|
|
||||||
real_ip_header proxy_protocol;
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
"status.ccchh.net" = {
|
|
||||||
forceSSL = true;
|
|
||||||
useACMEHost = "status.hamburg.ccc.de";
|
|
||||||
serverName = "status.ccchh.net";
|
|
||||||
|
|
||||||
listen = [
|
|
||||||
{
|
|
||||||
addr = "[::]";
|
|
||||||
port = 80;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
addr = "[::]";
|
|
||||||
port = 443;
|
|
||||||
ssl = true;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
globalRedirect = "status.hamburg.ccc.de";
|
|
||||||
redirectCode = 307;
|
|
||||||
};
|
|
||||||
"status-proxyprotocol.ccchh.net" = {
|
|
||||||
forceSSL = true;
|
|
||||||
useACMEHost = "status.hamburg.ccc.de";
|
|
||||||
serverName = "status.ccchh.net";
|
|
||||||
|
|
||||||
listen = [
|
|
||||||
{
|
|
||||||
addr = "0.0.0.0";
|
|
||||||
port = 8443;
|
|
||||||
ssl = true;
|
|
||||||
proxyProtocol = true;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
globalRedirect = "status.hamburg.ccc.de";
|
|
||||||
redirectCode = 307;
|
|
||||||
|
|
||||||
extraConfig = ''
|
|
||||||
# Make use of the ngx_http_realip_module to set the $remote_addr and
|
|
||||||
# $remote_port to the client address and client port, when using proxy
|
|
||||||
# protocol.
|
|
||||||
# First set our proxy protocol proxy as trusted.
|
|
||||||
set_real_ip_from 10.31.206.11;
|
|
||||||
# Then tell the realip_module to get the addreses from the proxy protocol
|
|
||||||
# header.
|
|
||||||
real_ip_header proxy_protocol;
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
"status.z9.ccchh.net" = {
|
|
||||||
forceSSL = true;
|
|
||||||
useACMEHost = "status.hamburg.ccc.de";
|
|
||||||
serverName = "status.z9.ccchh.net";
|
|
||||||
|
|
||||||
listen = [
|
|
||||||
{
|
|
||||||
addr = "0.0.0.0";
|
|
||||||
port = 80;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
addr = "[::]";
|
|
||||||
port = 80;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
addr = "0.0.0.0";
|
|
||||||
port = 443;
|
|
||||||
ssl = true;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
addr = "[::]";
|
|
||||||
port = 443;
|
|
||||||
ssl = true;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
globalRedirect = "status.hamburg.ccc.de";
|
|
||||||
redirectCode = 307;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
security.acme.certs."status.hamburg.ccc.de".extraDomainNames = [
|
|
||||||
"status.ccchh.net"
|
|
||||||
"status.z9.ccchh.net"
|
|
||||||
];
|
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 80 443 8443 ];
|
|
||||||
}
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
services.uptime-kuma = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
10
flake.nix
10
flake.nix
|
|
@ -201,16 +201,6 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
status = nixpkgs.lib.nixosSystem {
|
|
||||||
inherit system specialArgs;
|
|
||||||
modules = [
|
|
||||||
self.nixosModules.common
|
|
||||||
self.nixosModules.proxmox-vm
|
|
||||||
sops-nix.nixosModules.sops
|
|
||||||
./config/hosts/status
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
penpot = nixpkgs.lib.nixosSystem {
|
penpot = nixpkgs.lib.nixosSystem {
|
||||||
inherit system specialArgs;
|
inherit system specialArgs;
|
||||||
modules = [
|
modules = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue