2015-05-11 22:20:19 +00:00
|
|
|
; Example Sakura configuration
|
|
|
|
; Rename this file to config.ini after you're done editing.
|
|
|
|
|
|
|
|
; Database configuration
|
|
|
|
[database]
|
|
|
|
; SQL Driver that should be used.
|
|
|
|
; This has to relate to a PHP file in the _sakura/components/database folder
|
|
|
|
; but must EXCLUDE the .php file extension. (I recommend sticking with the bundled mysql library)
|
|
|
|
driver = mysql
|
|
|
|
|
|
|
|
; Use a Unix system socket (if the library supports it), doesn't work on Windows servers.
|
2015-05-29 19:27:45 +00:00
|
|
|
unixsocket = false
|
2015-05-11 22:20:19 +00:00
|
|
|
|
|
|
|
; URI to SQL server (usually localhost or 127.0.0.1) or in the case that you're using Unix sockets
|
|
|
|
; the path to the socket.
|
|
|
|
host = localhost
|
|
|
|
|
|
|
|
; Port for the SQL server, ignored if Unix sockets are used. Should be 3306.
|
|
|
|
port = 3306
|
|
|
|
|
|
|
|
; Username used to authenticate with the SQL server
|
|
|
|
username = sakura
|
|
|
|
|
|
|
|
; Password for the same purpose
|
2015-05-29 19:27:45 +00:00
|
|
|
password = "password"
|
2015-05-11 22:20:19 +00:00
|
|
|
|
|
|
|
; Database (not table) name used.
|
|
|
|
database = sakura
|
|
|
|
|
|
|
|
; Table prefix used.
|
|
|
|
prefix = sakura_
|
|
|
|
|
|
|
|
|
|
|
|
; Path configuration (DO NOT INCLUDE PROTOCOLS)
|
|
|
|
[urls]
|
|
|
|
; Main site location
|
|
|
|
main = yourdomain.com
|
|
|
|
|
|
|
|
; API location
|
|
|
|
api = api.yourdomain.com
|
|
|
|
|
|
|
|
; Content location
|
|
|
|
content = content.yourdomain.com
|
|
|
|
|
|
|
|
; Chat location
|
|
|
|
chat = chat.yourdomain.com
|
|
|
|
|
|
|
|
|
|
|
|
; Data files relative to the _sakura directory
|
|
|
|
[data]
|
2015-05-25 18:18:56 +00:00
|
|
|
; File containing CloudFlare IPv4 CIDRs
|
|
|
|
cfipv4 = config/cloudflare.ipv4
|
|
|
|
|
|
|
|
; File containing CloudFlare IPv6 CIDRs
|
|
|
|
cfipv6 = config/cloudflare.ipv6
|
2015-05-11 22:20:19 +00:00
|
|
|
|
|
|
|
; JSON file containing WHOIS servers
|
|
|
|
whoisservers = config/whois.json
|
|
|
|
|
|
|
|
; JSON file containing ISO 3166 country codes
|
|
|
|
iso3166 = config/iso3166.json
|
|
|
|
|
|
|
|
|
|
|
|
; Sock Chat extensions configuration
|
|
|
|
; These only work properly if Sock Chat uses the same database as the rest of Sakura
|
|
|
|
[sockchat]
|
|
|
|
; Set whether the Sock Chat extensions should be used or not
|
2015-05-29 19:27:45 +00:00
|
|
|
enabled = true
|
2015-05-11 22:20:19 +00:00
|
|
|
|
|
|
|
; The table prefix used for Sock Chat
|
|
|
|
prefix = sock_
|