mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-11 04:30:41 +03:00
123
This commit is contained in:
+3
-11
@@ -16,6 +16,7 @@ in
|
|||||||
recommendedOptimisation = true;
|
recommendedOptimisation = true;
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
recommendedTlsSettings = true;
|
recommendedTlsSettings = true;
|
||||||
|
appendHttpConfig = inputs.zeroq-credentials.services.xray.maps;
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"pubray.zeroq.ru" = {
|
"pubray.zeroq.ru" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
@@ -26,17 +27,8 @@ in
|
|||||||
auth_basic "Restricted";
|
auth_basic "Restricted";
|
||||||
auth_basic_user_file /etc/nginx/pubray;
|
auth_basic_user_file /etc/nginx/pubray;
|
||||||
|
|
||||||
autoindex off;
|
if ($subfile = "") { return 403; }
|
||||||
satisfy all;
|
rewrite ^/$ $subfile break;
|
||||||
if ($remote_user = "test") {
|
|
||||||
rewrite ^/$ /test.txt break;
|
|
||||||
}
|
|
||||||
if ($remote_user = "oqyude") {
|
|
||||||
rewrite ^/$ /my.txt break;
|
|
||||||
}
|
|
||||||
if ($remote_user = "prplx") {
|
|
||||||
rewrite ^/$ /public.txt break;
|
|
||||||
}
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user