feat(etna): authenticate frp via token

This commit is contained in:
uku 2024-05-19 18:53:03 +02:00
parent c1d8953fc0
commit 0bfa1816d3
Signed by: uku
SSH key fingerprint: SHA256:4P0aN6M8ajKukNi6aPOaX0LacanGYtlfjmN+m/sHY/o
3 changed files with 23 additions and 0 deletions

View file

@ -31,6 +31,8 @@ in {
owner = "cloudflared";
group = "cloudflared";
};
frpToken = {};
};
boot.kernelPackages = lib.mkForce pkgs.linuxPackages_6_1;
@ -46,6 +48,10 @@ in {
settings = {
serverAddr = "49.13.148.129";
serverPort = 7000;
auth = {
method = "token";
token = "{{ .Envs.FRP_TOKEN }}";
};
};
};
@ -57,4 +63,6 @@ in {
};
};
};
systemd.services.frp.serviceConfig.EnvironmentFile = config.age.secrets.frpToken.path;
}