From 1c10ea89d7a59011920adab9e3b59a6294b14905 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Wed, 22 Jan 2025 01:34:25 -0700 Subject: [PATCH] Add working proof-of-concept of frp server (frps) This is working on a single IPv6 address of the two we now have avaliable. Because nginx is still binding to port 80 on all addresses, we have to test this on port 8081, which is less than ideal. Still, it's progress. --- sovr/etc/nixos/configuration.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sovr/etc/nixos/configuration.nix b/sovr/etc/nixos/configuration.nix index 1f473c3..5215116 100644 --- a/sovr/etc/nixos/configuration.nix +++ b/sovr/etc/nixos/configuration.nix @@ -65,6 +65,15 @@ enable = true; network.enable = false; }; + services.frp = { + enable = true; + role = "server"; + settings = { + bindAddr = "2605:e440::2:3e"; + bindPort = 7000; + vhostHTTPPort = 8081; + }; + }; services.openssh = { enable = true; # require public key authentication for better security