mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-11 04:30:41 +03:00
nginx uuu
This commit is contained in:
+32
-47
@@ -15,55 +15,40 @@
|
|||||||
recommendedTlsSettings = true;
|
recommendedTlsSettings = true;
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"immich.zeroq.ru" = {
|
"immich.zeroq.ru" = {
|
||||||
listen = [
|
forceSSL = true; # Принудительный HTTPS
|
||||||
{
|
enableACME = true;
|
||||||
addr = "sapphira.laxta-platy.ts.net";
|
locations."/" = {
|
||||||
port = 2283;
|
proxyPass = "http://sapphira.laxta-platy.ts.net:2283"; # Порт Immich
|
||||||
}
|
proxyWebsockets = true; # Если Immich использует WebSockets
|
||||||
];
|
};
|
||||||
|
};
|
||||||
|
"nextcloud.zeroq.ru" = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://sapphira.laxta-platy.ts.net:10000"; # Порт Nextcloud
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
"llm.zeroq.ru" = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://sapphira.laxta-platy.ts.net:11111"; # Порт Open WebUI
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
# "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
|
|
||||||
|
|
||||||
# };
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
# security.acme = {
|
security.acme = {
|
||||||
# acceptTerms = true;
|
acceptTerms = true;
|
||||||
# defaults.email = "oqyude@gmail.com"; # Укажите ваш email
|
defaults.email = "oqyude@gmail.com";
|
||||||
# certs."${inputs.zeroq.devices.vds.hostname}.latxa-platy.ts.net" = {
|
};
|
||||||
# dnsProvider = null; # Tailscale hostname не требует DNS-проверки, если используем HTTP-01
|
networking.firewall.allowedTCPPorts = [
|
||||||
# webroot = "/var/lib/acme/acme-challenge";
|
#44443
|
||||||
# extraLegoFlags = [ "--http-01.port=80" ];
|
#44444
|
||||||
# };
|
80
|
||||||
# };
|
443
|
||||||
# networking.firewall.allowedTCPPorts = [
|
];
|
||||||
# 44443
|
|
||||||
# 44444
|
|
||||||
# 80
|
|
||||||
# ];
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user