telemetry_settings.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. // Type of db: "mssql", "mysql", "sqlite" or "postgresql"
  3. $db_type = 'mysql';
  4. // Password to login to stats.php. Change this!!!
  5. $stats_password = 'PASSWORD';
  6. // If set to true, test IDs will be obfuscated to prevent users from guessing URLs of other tests
  7. $enable_id_obfuscation = false;
  8. // If set to true, IP addresses will be redacted from IP and ISP info fields, as well as the log
  9. $redact_ip_addresses = false;
  10. // Sqlite3 settings
  11. $Sqlite_db_file = '../../speedtest_telemetry.sql';
  12. // mssql settings
  13. $MsSql_server = 'DB_HOSTNAME';
  14. $MsSql_databasename = 'DB_NAME';
  15. $MsSql_WindowsAuthentication = true; //true or false
  16. $MsSql_username = 'USERNAME'; //not used if MsSql_WindowsAuthentication is true
  17. $MsSql_password = 'PASSWORD'; //not used if MsSql_WindowsAuthentication is true
  18. $MsSql_TrustServerCertificate = true; //true, false or comment out for driver default
  19. //Download driver from https://docs.microsoft.com/en-us/sql/connect/php/download-drivers-php-sql-server?view=sql-server-ver16
  20. // Mysql settings
  21. $MySql_username = 'USERNAME';
  22. $MySql_password = 'PASSWORD';
  23. $MySql_hostname = 'DB_HOSTNAME';
  24. $MySql_databasename = 'DB_NAME';
  25. $MySql_port = '3306';
  26. // Postgresql settings
  27. $PostgreSql_username = 'USERNAME';
  28. $PostgreSql_password = 'PASSWORD';
  29. $PostgreSql_hostname = 'DB_HOSTNAME';
  30. $PostgreSql_databasename = 'DB_NAME';