feat(etna): authenticate frp via token
This commit is contained in:
parent
c1d8953fc0
commit
0bfa1816d3
3 changed files with 23 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue