User Tools

Site Tools


wiki:config_php

Config.php

Basic configuration settings for ITFlow exist in config.php. This file is automatically generated during setup. You may need to tweak these values occasionally.

MariaDB Database details

  • $dbhost - Database host (generally localhost, but doesn't have to be)
  • $dbusername - Username to login to database
  • $dbpassword - Password to login to database
  • $database - Database name (e.g. ITFlow)
  • $mysqli - PHP Variable used to connect to database throughout app

Setup enabled

  • $config_enable_setup - Used to prevent re-setting up ITFlow once installed & setup

Install ID

  • $installation_id - Used to track your installation when opted in to telemetry

Repo Branch

  • $repo_branch - Used to specify the GitHub branch to update against (master)

Application instance name

  • $config_app_name - Name of your app, will appear in various places (e.g. myITFlow)

Application URL

  • $config_base_url - The home/base URL for your app. This is used when generating/sending links (cron, client portal SSO, emailed ticket updates) (e.g.

HTTPS enabled status (Intended for development purposes only)

  • $config_https_only - If you need ITFlow to work without HTTPS, you need to set this variable to false. Otherwise cookies won't work.

GET IP Method (Not configured by default)

  • DEFINE(“CONST_GET_IP_METHOD”, “HTTP_X_FORWARDED_FOR”);

By default, ITFlow will retrieve IP addresses using PHP's REMOTE_ADDR. If you are using a reverse-proxy, you'll need to configure ITFlow to use the Forwarded For header instead.

wiki/config_php.txt · Last modified: 2023/01/31 18:40 by wrongecho

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki