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