default no debug. clever solution for api keys in git ignored local conf file.
This commit is contained in:
parent
6a122e3bed
commit
d185a26f87
5 changed files with 37 additions and 5 deletions
15
README.md
15
README.md
|
|
@ -22,13 +22,22 @@ ApFab Zap Machine needs some PHP extensions:
|
|||
- CUrl (default installed)
|
||||
- Imagick (Image Magick image processing Class)
|
||||
|
||||
You need to acquire the following API key and put it into `conf/conf.php`:
|
||||
You need to acquire the following API key:
|
||||
|
||||
1. **Brave Search API Key** - https://api.search.brave.com/
|
||||
|
||||
See `conf/conf.php` for the exact constant names to use.
|
||||
Then set up your configuration:
|
||||
|
||||
Adjust permission (chmod 777) for 'sessions' folder, run index.php in the www/ directory, fill in the form and voila.
|
||||
```bash
|
||||
# Create your local config from the template
|
||||
cp conf/conf.local.php.dist conf/conf.local.php
|
||||
# Edit it with your real keys
|
||||
nano conf/conf.local.php
|
||||
```
|
||||
|
||||
`conf/conf.local.php` is gitignored so your secrets stay safe. You can also set the `BRAVE_API_KEY` environment variable as an alternative.
|
||||
|
||||
Adjust permission (chmod 777) for 'sessions' folder, then run index.php in the www/ directory, fill in the form and voila.
|
||||
|
||||
# yet to come
|
||||
- Logfile also generated in imgProcess Class (0.9.2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue