update frpc service

This commit is contained in:
Adithya 2023-05-29 23:20:18 +05:30
parent 3c83f8b5d4
commit 3ac3177236
Signed by: adtya
GPG key ID: 48FC9915FFD326D0

View file

@ -4,12 +4,15 @@ in {
systemd.services.frpc = { systemd.services.frpc = {
enable = true; enable = true;
description = "FRP Client"; description = "FRP Client";
wantedBy = ["multi-user.target"]; after = ["network.target"];
requires = ["network.target"]; requires = ["network.target"];
path = [ wantedBy = ["multi-user.target"];
pkgs.frp serviceConfig = {
]; Type="simple";
script = "frpc -c /etc/frp/frpc.ini"; ExecStart="${pkgs.frp}/bin/frpc -c /etc/frp/frpc.ini";
Restart="always";
RestartSec="5s";
};
}; };
environment.etc."frp/frpc.ini".text = '' environment.etc."frp/frpc.ini".text = ''
[common] [common]