mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
feat: adds frp
This commit is contained in:
parent
d7602d1f39
commit
12039dfbc0
1 changed files with 34 additions and 0 deletions
34
modules/services/frp.nix
Normal file
34
modules/services/frp.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
services.frp = {
|
||||
enable = true;
|
||||
role = "client";
|
||||
settings = {
|
||||
serverAddr = "";
|
||||
serverPort = 7000;
|
||||
auth.method = "token";
|
||||
auth.token = "";
|
||||
proxies = [
|
||||
{
|
||||
name = "http";
|
||||
type = "tcp";
|
||||
localIP = "localhost";
|
||||
localPort = 80;
|
||||
remotePort = 80;
|
||||
}
|
||||
{
|
||||
name = "https";
|
||||
type = "tcp";
|
||||
localIP = "localhost";
|
||||
localPort = 443;
|
||||
remotePort = 443;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue