Skip to content

Commit

Permalink
TODOs for future dendrite-pinecone refactorings
Browse files Browse the repository at this point in the history
Signed-off-by: Mika Tammi <[email protected]>
  • Loading branch information
Mika Tammi authored and brianmcgillion committed May 22, 2024
1 parent d892fdc commit 4e5d7fd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/common/services/dendrite-pinecone.nix
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ in
Type = "simple";
ExecStart = "${pkgs.smcroute}/sbin/smcrouted -n -s -f /etc/smcroute.conf";
#TODO sudo setcap cap_net_admin=ep ${pkgs.smcroute}/sbin/smcroute
# TODO: Add proper AmbientCapabilities= or CapabilityBoundingSet=,
# preferably former and then change user to something else than
# root.
User = "root";
# Automatically restart service when it exits.
Restart = "always";
Expand All @@ -126,6 +129,9 @@ in
# Allow loopback traffic
iptables -A INPUT -i lo -j ACCEPT
# TODO: Move all these TcpPort and things like that, to the options of
# this module, away from from package itself.
# Forward incoming TCP traffic on port ${dendrite-pineconePkg.TcpPort} to internal network(element-vm)
iptables -t nat -A PREROUTING -i ${cfg.externalNic} -p tcp --dport ${dendrite-pineconePkg.TcpPort} -j DNAT --to-destination ${cfg.serverIpAddr}:${dendrite-pineconePkg.TcpPort}
Expand Down
2 changes: 2 additions & 0 deletions packages/dendrite-pinecone/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ buildGoModule rec {
pname = "dendrite-pinecone";
version = "0.9.1";

# TODO: Move all these to the options module.
TcpPort = "49000";
McastUdpPort = "60606";
McastUdpIp = "239.0.0.114";
TcpPortInt = 49000;
McastUdpPortInt = 60606;

src = fetchFromGitHub {
owner = "tiiuae";
repo = "dendrite";
Expand Down

0 comments on commit 4e5d7fd

Please sign in to comment.