Nixpkgs: Automatically open ports for matrix synapse server

Created on 31 Jan 2017  路  2Comments  路  Source: NixOS/nixpkgs

Add a openPortsInFirewall option, with a default of true. It's pretty pointless to run a matrix server without connecting to other ones.

Most helpful comment

This could be said about most of our services. It'd be nice if we could abstract over common service patterns like the enable option and port settings. I.e., some sort of function that produces the { config, ... }: { options = ...; config = ... } structure but takes care of automatically managing common repetitive crap like this.

Ideal to me feels like:

  1. Global setting, firewall.openServicePortsByDefault, defaulting to false
  2. Every service (via some abstraction over services) has a service.foo.openPorts, with a default value of firewall.openServicePortsByDefault
  3. Now if you set firewall.openServicePortsByDefault = true;, services open ports by default, but you can opt individual services out by setting service.foo.openPorts = false;

Either way see #19504

All 2 comments

This could be said about most of our services. It'd be nice if we could abstract over common service patterns like the enable option and port settings. I.e., some sort of function that produces the { config, ... }: { options = ...; config = ... } structure but takes care of automatically managing common repetitive crap like this.

Ideal to me feels like:

  1. Global setting, firewall.openServicePortsByDefault, defaulting to false
  2. Every service (via some abstraction over services) has a service.foo.openPorts, with a default value of firewall.openServicePortsByDefault
  3. Now if you set firewall.openServicePortsByDefault = true;, services open ports by default, but you can opt individual services out by setting service.foo.openPorts = false;

Either way see #19504

Closing because this is, as pointed out by @copumpkin, discussed in #19504.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

teto picture teto  路  3Comments

sid-kap picture sid-kap  路  3Comments

ayyess picture ayyess  路  3Comments

matthiasbeyer picture matthiasbeyer  路  3Comments

lverns picture lverns  路  3Comments