mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-15 22:41:52 +03:00
123
This commit is contained in:
Generated
+4
-4
@@ -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"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user