1
0
mirror of https://github.com/misterunknown/ifm.git synced 2025-08-09 17:46:31 +02:00
This commit is contained in:
Jannis Rondorf
2017-08-01 17:25:03 +02:00

View File

@@ -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
## 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
The IFM offers a simple authentication feature using the configuration keys `auth` and `auth_source`. You can configure it like this:
```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".
See [authentication](https://github.com/misterunknown/ifm/wiki/Authentication).
## docker