This commit is contained in:
2025-08-02 22:17:11 +03:00
parent f3c73603c7
commit d5c5b93cb0
2 changed files with 32 additions and 24 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
{
services = {
cloudflared = {
enable = true;
enable = false;
certificateFile = "${inputs.zeroq-credentials}/services/cloudflared/cert.pem";
tunnels = {
"58b340ee-e98a-4af9-b786-74600c71f49e" = {
+31 -23
View File
@@ -8,39 +8,47 @@
{
services = {
nginx = {
enable = false;
enable = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts = {
"vless-sub" = {
serverName = "${inputs.zeroq.devices.vds.hostname}.latxa-platy.ts.net";
"immich.zeroq.ru" = {
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;
addr = "100.64.0.0";
port = 2283;
}
];
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
# };
};
};
};