mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 11:37:44 +00:00
Fix exposed ports
This commit is contained in:
parent
621812d645
commit
cb4ca64bd7
1 changed files with 6 additions and 2 deletions
|
@ -14,9 +14,13 @@ serverSystemConfiguration {
|
|||
|
||||
nixpkgs.config.allowUnfree = true; # For pkgs.clash-geoip.
|
||||
|
||||
# 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.
|
||||
networking.firewall.allowedTCPPorts = [ config.services.endlessh-go.port ];
|
||||
|
||||
services.endlessh-go = enabled {
|
||||
openFirewall = true;
|
||||
port = 22;
|
||||
port = 22;
|
||||
|
||||
extraOptions = [
|
||||
"-alsologtostderr"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue