1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-30 11:37:44 +00:00

Fix exposed ports

This commit is contained in:
RGBCube 2024-01-16 13:55:18 +03:00
parent 621812d645
commit cb4ca64bd7
No known key found for this signature in database

View file

@ -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"