mirror of
https://github.com/misterunknown/ifm.git
synced 2025-08-09 17:46:31 +02:00
Merge branch 'master' of https://github.com/misterunknown/ifm
This commit is contained in:
17
README.md
17
README.md
@@ -57,22 +57,9 @@ By default, it is not allowed to show or edit the `.htaccess` file. This is beca
|
|||||||
* <kbd>Enter</kbd> - open a file or change to the directory
|
* <kbd>Enter</kbd> - open a file or change to the directory
|
||||||
|
|
||||||
## configuration
|
## configuration
|
||||||
The configuration is located at the top of the script. The options are commented and named laconically. If you have any questions [write me an email](mailto:marco@misterunknown.de).
|
See [configuration](https://github.com/misterunknown/ifm/wiki/Configuration).
|
||||||
### authentication
|
### authentication
|
||||||
The IFM offers a simple authentication feature using the configuration keys `auth` and `auth_source`. You can configure it like this:
|
See [authentication](https://github.com/misterunknown/ifm/wiki/Authentication).
|
||||||
```php
|
|
||||||
"auth" => 1,
|
|
||||||
"auth_source" => 'inline;<username>:<password_hash>',
|
|
||||||
```
|
|
||||||
In the example above the user and password are declared inline. You can also use a file (which should lie out of the $DocumentRoot of the webserver):
|
|
||||||
```php
|
|
||||||
"auth_source" => 'file;/path/to/file',
|
|
||||||
```
|
|
||||||
The file should contain ONLY ONE LINE:
|
|
||||||
```
|
|
||||||
<username>:<password_hash>
|
|
||||||
```
|
|
||||||
The password hash has to be a hash generated by PHPs `password_hash()` function. The default credentials are "admin:admin".
|
|
||||||
|
|
||||||
## docker
|
## docker
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user