This commit is contained in:
2026-01-04 20:13:47 +03:00
parent 9fa61da370
commit cbeac7021e
3 changed files with 8 additions and 11 deletions
Generated
+4 -4
View File
@@ -426,11 +426,11 @@
}, },
"zeroq-credentials": { "zeroq-credentials": {
"locked": { "locked": {
"lastModified": 1767531779, "lastModified": 1767546811,
"narHash": "sha256-VsWgM6Smejb8DN2FCHpPiyxi+suNuqs8wa32zkwCPpc=", "narHash": "sha256-Dlt+ejZ4WQy9DiGB/Sb4M/HyJCSROCrdCsiWMT/QxXg=",
"ref": "refs/heads/master", "ref": "refs/heads/master",
"rev": "2df427f5ee6378a690fe0e792e19d74b08b96d4c", "rev": "bd86b0347cedd43a28db75ed6a40d559945e5b2d",
"revCount": 64, "revCount": 65,
"type": "git", "type": "git",
"url": "ssh://git@github.com/oqyude/zeroq-credentials.git" "url": "ssh://git@github.com/oqyude/zeroq-credentials.git"
}, },
+3 -6
View File
@@ -7,10 +7,7 @@ let
server = "100.64.0.0"; server = "100.64.0.0";
in in
{ {
environment.etc."nginx/.htpasswd".text = '' environment.etc."nginx/pubray".text = inputs.zeroq-credentials.services.xray.auth;
test:$apr1$3m7iYgVv$31i.S8LP3i8dKuOIBhoeE1
oqyude:$apr1$SOZTZPw9$33dfsailwRjmgbpeohYtQ.
'';
users.users.nginx.extraGroups = [ "acme" ]; users.users.nginx.extraGroups = [ "acme" ];
services = { services = {
nginx = { nginx = {
@@ -23,11 +20,11 @@ in
"sub.zeroq.ru" = { "sub.zeroq.ru" = {
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
root = "/var/www/sub"; root = "${inputs.zeroq-credentials.services.xray.subs}";
locations."/" = { locations."/" = {
extraConfig = '' extraConfig = ''
auth_basic "Restricted"; auth_basic "Restricted";
auth_basic_user_file /etc/nginx/.htpasswd; auth_basic_user_file /etc/nginx/pubray;
autoindex off; autoindex off;
satisfy all; satisfy all;
+1 -1
View File
@@ -7,7 +7,7 @@
{ {
services.xray = { services.xray = {
enable = true; enable = true;
settings = inputs.zeroq-credentials.services.xray; settings = inputs.zeroq-credentials.services.xray.config;
}; };
networking.firewall = { networking.firewall = {