mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-15 22:41:52 +03:00
123
This commit is contained in:
@@ -30,15 +30,12 @@ in
|
|||||||
auth_basic_user_file /etc/nginx/.htpasswd;
|
auth_basic_user_file /etc/nginx/.htpasswd;
|
||||||
|
|
||||||
autoindex off;
|
autoindex off;
|
||||||
|
|
||||||
# выдаём файл в зависимости от пользователя
|
|
||||||
satisfy all;
|
satisfy all;
|
||||||
|
|
||||||
if ($remote_user = "test") {
|
if ($remote_user = "test") {
|
||||||
rewrite ^/empty.txt$ /test.txt break;
|
rewrite ^/$ /test.txt break;
|
||||||
}
|
}
|
||||||
if ($remote_user = "oqyude") {
|
if ($remote_user = "oqyude") {
|
||||||
rewrite ^/empty.txt$ /my.txt break;
|
rewrite ^/$ /my.txt break;
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user