1
0
mirror of https://github.com/misterunknown/ifm.git synced 2025-08-13 11:34:00 +02:00

Restructured the possibilities to edit the configuration

Markus
2022-10-29 14:42:34 +02:00
parent a494dc7e0b
commit ad7a65d0da

@@ -1,5 +1,8 @@
## edit configuration
There are several ways to configure the IFM. At the moment you can either change the default configuration at the top of the script, or pass a custom configuration array to the constructor (when using `libifm.php`). Furthermore it is possible to configure the IFM via environment variables. This is especially handy when you use the docker image or want to update the IFM without bothering with the new default config.
There are several ways to configure the IFM.
1. Default configuration at the top of the script (`main.php` in the sources or `*ifm*.php` in the releases)
2. Pass a custom configuration array to the constructor (when using `libifm.php`)
3. Set environment variables. This is especially handy when you use the docker image or want to update the IFM without bothering with the new default config.
### environment variables
The way to set environment variables depends on the software you use. If you are using the apache2 webserver running mod_php you can set them by adding the `SetEnv` directive to either you virtual host definition, or in a `.htaccess` file: