mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 19:47:47 +00:00
chore: migrate cube host
This commit is contained in:
parent
dad68acf68
commit
f2ab446c48
45 changed files with 904 additions and 88 deletions
|
@ -1,7 +1,7 @@
|
|||
{ config, lib, pkgs, ... }: let
|
||||
inherit (lib) enabled mkEnableOption mkIf mkOption types;
|
||||
|
||||
fakeSSHPort = 22;
|
||||
portFakeSSH = 22;
|
||||
in {
|
||||
config.services.prometheus.exporters.endlessh-go = mkIf config.isServer <| enabled {
|
||||
listenAddress = "[::]";
|
||||
|
@ -10,11 +10,11 @@ in {
|
|||
# `services.endlessh-go.openFirewall` exposes both the Prometheus
|
||||
# exporters port and the SSH port, and we don't want the metrics
|
||||
# to leak, so we manually expose this like so.
|
||||
config.networking.firewall.allowedTCPPorts = mkIf config.isServer <| [ fakeSSHPort ];
|
||||
config.networking.firewall.allowedTCPPorts = mkIf config.isServer <| [ portFakeSSH ];
|
||||
|
||||
config.services.endlessh-go = mkIf config.isServer <| enabled {
|
||||
listenAddress = "[::]";
|
||||
port = fakeSSHPort;
|
||||
port = portFakeSSH;
|
||||
|
||||
extraOptions = [
|
||||
"-alsologtostderr"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue