meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
config_php [2023/05/30 19:14] – rm https:// from base url wrongechoconfig_php [2025/03/07 18:52] (current) – [GET IP Method] Changed " to ' to avoid PHP errors 24.251.197.69
Line 4: Line 4:
 You may need to tweak these values occasionally. You may need to tweak these values occasionally.
  
-**MariaDB Database details**+===== MariaDB Database details ===== 
  
   * ''$dbhost'' - Database host (generally localhost, but doesn't have to be)   * ''$dbhost'' - Database host (generally localhost, but doesn't have to be)
Line 12: Line 13:
   * ''$mysqli'' - PHP Variable used to connect to database throughout app   * ''$mysqli'' - PHP Variable used to connect to database throughout app
  
-**Setup enabled**+===== Setup enabled ===== 
   * ''$config_enable_setup'' - Used to prevent re-setting up ITFlow once installed & setup   * ''$config_enable_setup'' - Used to prevent re-setting up ITFlow once installed & setup
  
-**Install ID**+===== Install ID ===== 
   * ''$installation_id'' - Used to track your installation when opted in to telemetry   * ''$installation_id'' - Used to track your installation when opted in to telemetry
  
-**Repo Branch** +===== Repo Branch ===== 
-  * ''$repo_branch'' - Used to specify the GitHub branch to update against (//master//)+ 
 +  * ''$repo_branch'' - Used to specify the GitHub branch to update against (usually //master//, but change to //develop// if required) 
 + 
 +===== Application instance name =====
  
-**Application instance name** 
   * ''$config_app_name'' - Name of your app, will appear in various places (e.g. myITFlow)   * ''$config_app_name'' - Name of your app, will appear in various places (e.g. myITFlow)
  
-**Application URL**+===== 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. demo.itflow.org)   * ''$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. demo.itflow.org)
  
  
-**HTTPS enabled status**  //(Intended for development purposes only)// +===== HTTPS enabled status ===== 
-  * ''$config_https_only'' - If you need ITFlow to work without HTTPS, you need to set this variable to ''false''. Otherwise login cookies won'work.+ //(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 login cookies won'be set, and you will **not be able to login**.
  
-**GET IP Method** //(Not configured by default)// +===== GET IP Method ===== 
-  * ''DEFINE("CONST_GET_IP_METHOD""HTTP_X_FORWARDED_FOR");''+ //(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. 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.