Repository navigation
Expand file tree
/
Copy pathconfig.example.php
More file actions
37 lines (27 loc) · 1.75 KB
/
Copy pathconfig.example.php
File metadata and controls
37 lines (27 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
// Copy this file to config.php in the project folder (the one holding vendor/), outside the web root, with
// cp vendor/runlight/runlight/config.example.php config.php
// Environment variables with the same names win over what is here. Leave out what you do not need.
// Docs: https://runlight.sh/docs/php/#settings
return [
// The dashboard's public address. Short links never take it over, and emails link to it.
'RUNLIGHT_URL' => 'https://stats.example.com',
// SQLite in the data folder by default. Set a URL to use Postgres, MySQL, or MariaDB instead.
// 'DATABASE_URL' => 'mysql://runlight:password@localhost:3306/runlight',
// The SQLite file, the secret, the setup link, and location data. Relative to the project folder.
// 'DATA_DIR' => 'runlight-data',
// Signs sign-ins and encrypts saved keys. Made and kept in the data folder when not set here.
// 'RUNLIGHT_SECRET' => '',
// A bearer token for scripts. When set, the first account is made with it instead of the setup link.
// 'RUNLIGHT_TOKEN' => '',
// Left unset, forwarded addresses count only from a proxy on this computer or a private network.
// "false" never reads them; behind a CDN that connects from public addresses, "true" or the one header it sets.
// 'TRUST_PROXY' => 'cf-connecting-ip',
// city (the default), country, off, or the path to an MMDB file of your own.
// 'RUNLIGHT_GEO' => 'country',
// Lets a scheduler run the check over HTTP when it cannot run the cron command.
// 'CRON_SECRET' => '',
// on (the default) downloads the address lists AI companies publish once a day, which AI agent fetches are
// checked against; off keeps the lists that came with this version.
// 'RUNLIGHT_AGENT_RANGES' => 'off',
];