mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-11 04:30:41 +03:00
test
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
{
|
{
|
||||||
services = {
|
services = {
|
||||||
cloudflared = {
|
cloudflared = {
|
||||||
enable = true;
|
enable = false;
|
||||||
certificateFile = "${inputs.zeroq-credentials}/services/cloudflared/cert.pem";
|
certificateFile = "${inputs.zeroq-credentials}/services/cloudflared/cert.pem";
|
||||||
tunnels = {
|
tunnels = {
|
||||||
"58b340ee-e98a-4af9-b786-74600c71f49e" = {
|
"58b340ee-e98a-4af9-b786-74600c71f49e" = {
|
||||||
|
|||||||
+31
-23
@@ -8,39 +8,47 @@
|
|||||||
{
|
{
|
||||||
services = {
|
services = {
|
||||||
nginx = {
|
nginx = {
|
||||||
enable = false;
|
enable = true;
|
||||||
recommendedGzipSettings = true;
|
recommendedGzipSettings = true;
|
||||||
recommendedOptimisation = true;
|
recommendedOptimisation = true;
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
recommendedTlsSettings = true;
|
recommendedTlsSettings = true;
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"vless-sub" = {
|
"immich.zeroq.ru" = {
|
||||||
|
|
||||||
serverName = "${inputs.zeroq.devices.vds.hostname}.latxa-platy.ts.net";
|
|
||||||
listen = [
|
listen = [
|
||||||
{
|
{
|
||||||
addr = "0.0.0.0"; # Tailscale IP вашего VDS
|
addr = "100.64.0.0";
|
||||||
port = 44444;
|
port = 2283;
|
||||||
ssl = false;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
addr = "0.0.0.0"; # Tailscale IP вашего VDS
|
|
||||||
port = 44443;
|
|
||||||
ssl = true;
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
root = "${inputs.zeroq-credentials.paths.vless-subs.root}"; # "${inputs.zeroq-credentials}/services/xray/subs";
|
|
||||||
locations."/" = {
|
|
||||||
extraConfig = ''
|
|
||||||
if ($scheme = http) {
|
|
||||||
return 301 https://$host:44443$request_uri;
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
enableACME = true;
|
|
||||||
forceSSL = true; # Принудительно HTTPS
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
# "vless-sub" = {
|
||||||
|
|
||||||
|
# serverName = "${inputs.zeroq.devices.vds.hostname}.latxa-platy.ts.net";
|
||||||
|
# listen = [
|
||||||
|
# {
|
||||||
|
# addr = "0.0.0.0"; # Tailscale IP вашего VDS
|
||||||
|
# port = 44444;
|
||||||
|
# ssl = false;
|
||||||
|
# }
|
||||||
|
# {
|
||||||
|
# addr = "0.0.0.0"; # Tailscale IP вашего VDS
|
||||||
|
# port = 44443;
|
||||||
|
# ssl = true;
|
||||||
|
# }
|
||||||
|
# ];
|
||||||
|
# root = "${inputs.zeroq-credentials.paths.vless-subs.root}"; # "${inputs.zeroq-credentials}/services/xray/subs";
|
||||||
|
# locations."/" = {
|
||||||
|
# extraConfig = ''
|
||||||
|
# if ($scheme = http) {
|
||||||
|
# return 301 https://$host:44443$request_uri;
|
||||||
|
# }
|
||||||
|
# '';
|
||||||
|
# };
|
||||||
|
# enableACME = true;
|
||||||
|
# forceSSL = true; # Принудительно HTTPS
|
||||||
|
|
||||||
|
# };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user