xray and nginx improvements
This commit is contained in:
parent
694a4e7605
commit
032a5f4b04
6 changed files with 7 additions and 7 deletions
|
|
@ -10,6 +10,7 @@ let
|
||||||
privateKey = mkOption { type = types.str; default = ""; };
|
privateKey = mkOption { type = types.str; default = ""; };
|
||||||
shortId = mkOption { type = types.str; default = ""; };
|
shortId = mkOption { type = types.str; default = ""; };
|
||||||
spiderX = mkOption { type = types.str; default = "/"; };
|
spiderX = mkOption { type = types.str; default = "/"; };
|
||||||
|
sni = mkOption { type = types.str; default = "/"; };
|
||||||
};
|
};
|
||||||
affine-config = with lib; {
|
affine-config = with lib; {
|
||||||
env = {
|
env = {
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@
|
||||||
privateKey = secret.marzban.privateKey;
|
privateKey = secret.marzban.privateKey;
|
||||||
shortId = secret.marzban.shortId;
|
shortId = secret.marzban.shortId;
|
||||||
spiderX = secret.marzban.spiderX;
|
spiderX = secret.marzban.spiderX;
|
||||||
|
sni = secret.marzban.sni;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ server-domain, port, dest, privateKey, shortId, spiderX }:
|
{ server-domain, port, dest, privateKey, shortId, spiderX, sni }:
|
||||||
|
|
||||||
{
|
{
|
||||||
log.loglevel = "warning";
|
log.loglevel = "warning";
|
||||||
|
|
@ -34,7 +34,7 @@
|
||||||
dest = dest;
|
dest = dest;
|
||||||
xver = 0;
|
xver = 0;
|
||||||
serverNames = [
|
serverNames = [
|
||||||
server-domain
|
sni
|
||||||
];
|
];
|
||||||
privateKey = privateKey;
|
privateKey = privateKey;
|
||||||
SpiderX = spiderX;
|
SpiderX = spiderX;
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,7 @@
|
||||||
privateKey = secret.marzban.privateKey;
|
privateKey = secret.marzban.privateKey;
|
||||||
shortId = secret.marzban.shortId;
|
shortId = secret.marzban.shortId;
|
||||||
spiderX = secret.marzban.spiderX;
|
spiderX = secret.marzban.spiderX;
|
||||||
|
sni = secret.marzban.sni;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@
|
||||||
privateKey = secret.marzban.privateKey;
|
privateKey = secret.marzban.privateKey;
|
||||||
shortId = secret.marzban.shortId;
|
shortId = secret.marzban.shortId;
|
||||||
spiderX = secret.marzban.spiderX;
|
spiderX = secret.marzban.spiderX;
|
||||||
|
sni = secret.marzban.sni;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,10 +15,6 @@
|
||||||
default marzban;
|
default marzban;
|
||||||
}
|
}
|
||||||
|
|
||||||
upstream git {
|
|
||||||
server 127.0.0.1:444;
|
|
||||||
}
|
|
||||||
|
|
||||||
upstream marzban {
|
upstream marzban {
|
||||||
server 127.0.0.1:1080;
|
server 127.0.0.1:1080;
|
||||||
}
|
}
|
||||||
|
|
@ -30,7 +26,7 @@
|
||||||
ssl_preread on;
|
ssl_preread on;
|
||||||
proxy_connect_timeout 30s;
|
proxy_connect_timeout 30s;
|
||||||
proxy_timeout 1h;
|
proxy_timeout 1h;
|
||||||
proxy_buffer_size 64k;
|
proxy_buffer_size 16k;
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue