Skip to content

Configuration

Hayden Andreyka edited this page Oct 7, 2017 · 2 revisions

Start off by copying config.default.php to config.php if you haven't already.

Configuration values are notated using dots, keep in mind however that they are represented as arrays in code.

Configuration Value Default Explanation
host.domain alexa.yourdomain.com The domain the website is running on.
host.ssl-only true Whether or not the website will ONLY be served over SSL. This does not force SSL on.
authentication.login-lifetime 2.6E6 (about one month) How long a user should stay logged in, in seconds.
database.host localhost The hostname of your MySQL database.
database.port 3306 The port of your MySQL database.
database.username root The user to log into MySQL with.
database.password (empty string) Password to log into MySQL.
database.dbname alexa Name of the database to use.
recaptcha.site google-recaptcha-sitekey Your Google reCATPCHA site key
recaptcha.secret google-recaptcha-secret Your Google reCAPTCHA secret
geoip.api-uri http://freegeoip.net/json/%s The path to the API for retrieving geoip information on the backend. %s is substituted for the IP address.
geoip.browser-uri https://geoiptool.com/en/?ip=%s The path that users get sent to when requesting additional geoip information. %s is substituted for the IP address.
Clone this wiki locally