From 2aa3255b6614f77a75df8da7b122dee083bbe4bb Mon Sep 17 00:00:00 2001 From: oqyude Date: Wed, 17 Sep 2025 00:48:33 +0300 Subject: [PATCH] 123 --- nixosModules/vds/nginx.nix | 71 ++++++++++++++++++++++++-------------- 1 file changed, 45 insertions(+), 26 deletions(-) diff --git a/nixosModules/vds/nginx.nix b/nixosModules/vds/nginx.nix index 39fd448..01bf34a 100755 --- a/nixosModules/vds/nginx.nix +++ b/nixosModules/vds/nginx.nix @@ -18,19 +18,18 @@ in virtualHosts = { "immich.zeroq.ru" = { # 31.57.105.253 - listen = [ - { - addr = "0.0.0.0"; - port = 80; - } - { - addr = "0.0.0.0"; - port = 443; - ssl = true; - } - ]; - #forceSSL = true; - addSSL = true; + # listen = [ + # { + # addr = "0.0.0.0"; + # port = 80; + # } + # { + # addr = "0.0.0.0"; + # port = 443; + # ssl = true; + # } + # ]; + forceSSL = true; enableACME = true; locations = { "/" = { @@ -38,19 +37,39 @@ in proxyWebsockets = true; # Если Immich использует WebSockets }; }; - # locations."/.well-known/acme-challenge" = { - # root = "/var/www/acme/acme-challenge"; - # }; }; - # "nextcloud.zeroq.ru" = { - # addSSL = true; - # forceSSL = false; - # enableACME = false; - # locations."/" = { - # proxyPass = "http://${server}:10000"; # Порт Nextcloud - # proxyWebsockets = true; - # }; - # }; + "nextcloud.zeroq.ru" = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyPass = "http://${server}:10000"; # Порт Nextcloud + proxyWebsockets = true; + }; + }; + "flux.zeroq.ru" = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyPass = "http://${server}:6061"; # Порт Nextcloud + proxyWebsockets = true; + }; + }; + "calibre.zeroq.ru" = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyPass = "http://${server}:8083"; # Порт Nextcloud + proxyWebsockets = true; + }; + }; + "pdf.zeroq.ru" = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyPass = "http://${server}:6060"; # Порт Nextcloud + proxyWebsockets = true; + }; + }; # "llm.zeroq.ru" = { # addSSL = true; # enableACME = true; @@ -85,7 +104,7 @@ in security.acme = { acceptTerms = true; defaults = { - email = "oqyude@gmail.com"; + email = "go.bin043120@gmail.com"; #webroot = "/var/lib/acme/acme-challenge"; #group = config.services.nginx.group; #server = "https://acme-staging-v02.api.letsencrypt.org/directory";