docs: improve some parts
This commit is contained in:
34 files changed
+932
-123
No files matched your search
@@ -0,0 +1,35 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
services.proxy-suite = {
|
||||
enable = true;
|
||||
inbounds = {
|
||||
enable = true;
|
||||
serverAddress = "vpn.example.com"; # null: this host's public IPv4
|
||||
routing.via = "direct"; # clients exit straight from this host
|
||||
listeners = {
|
||||
vless-reality = {
|
||||
type = "vless";
|
||||
port = 443;
|
||||
flow = "xtls-rprx-vision";
|
||||
users = [
|
||||
{ name = "phone"; uuidFile = "/run/secrets/uuid-phone"; }
|
||||
{ name = "laptop"; uuidFile = "/run/secrets/uuid-laptop"; }
|
||||
];
|
||||
reality = {
|
||||
enable = true;
|
||||
serverNames = [ "www.microsoft.com" ];
|
||||
privateKeyFile = "/run/secrets/reality-private-key";
|
||||
publicKey = "jNXH…"; # from the same `xray x25519` run
|
||||
shortIds = [ "0123abcd" ];
|
||||
};
|
||||
};
|
||||
# Keys for the server and each user are generated on first start.
|
||||
awg = {
|
||||
type = "amneziawg";
|
||||
port = 51820;
|
||||
users = [ { name = "phone"; } ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user