mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
35 lines
568 B
Nix
35 lines
568 B
Nix
|
|
{
|
||
|
|
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;
|
||
|
|
}
|
||
|
|
];
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|