2 /* This is a sample config file.
3 * Edit this file with your own settings and save it as "config.php"
5 * IMPORTANT: edit and save this file as plain ASCII text, using a text editor, for instance TextEdit on Mac OS or
6 * Notepad on Windows. Make sure there is no character before the opening <?php at the beginning of this file.
10 ** MySQL settings - You can get this info from your web host
13 /** MySQL database username */
14 define( 'YOURLS_DB_USER', 'your db user name' );
16 /** MySQL database password */
17 define( 'YOURLS_DB_PASS', 'your db password' );
19 /** The name of the database for YOURLS */
20 define( 'YOURLS_DB_NAME', 'yourls' );
23 ** If using a non standard port, specify it like 'hostname:port', eg. 'localhost:9999' or '127.0.0.1:666' */
24 define( 'YOURLS_DB_HOST', 'localhost' );
26 /** MySQL tables prefix */
27 define( 'YOURLS_DB_PREFIX', 'yourls_' );
33 /** YOURLS installation URL -- all lowercase and with no trailing slash.
34 ** If you define it to "http://sho.rt", don't use "http://www.sho.rt" in your browser (and vice-versa) */
35 define( 'YOURLS_SITE', 'http://your-own-domain-here.com' );
37 /** Server timezone GMT offset */
38 define( 'YOURLS_HOURS_OFFSET', 0 );
41 ** Change this setting to use a translation file for your language, instead of the default English.
42 ** That translation file (a .mo file) must be installed in the user/language directory.
43 ** See http://yourls.org/translations for more information */
44 define( 'YOURLS_LANG', '' );
46 /** Allow multiple short URLs for a same long URL
47 ** Set to true to have only one pair of shortURL/longURL (default YOURLS behavior)
48 ** Set to false to allow multiple short URLs pointing to the same long URL (bit.ly behavior) */
49 define( 'YOURLS_UNIQUE_URLS', true );
51 /** Private means the Admin area will be protected with login/pass as defined below.
52 ** Set to false for public usage (eg on a restricted intranet or for test setups)
53 ** Read http://yourls.org/privatepublic for more details if you're unsure */
54 define( 'YOURLS_PRIVATE', true );
56 /** A random secret hash used to encrypt cookies. You don't have to remember it, make it long and complicated. Hint: copy from http://yourls.org/cookie **/
57 define( 'YOURLS_COOKIEKEY', 'modify this text with something random' );
59 /** Username(s) and password(s) allowed to access the site. Passwords either in plain text or as encrypted hashes
60 ** YOURLS will auto encrypt plain text passwords in this file
61 ** Read http://yourls.org/userpassword for more information */
62 $yourls_user_passwords = array(
63 'username' => 'password',
64 // 'username2' => 'password2',
65 // You can have one or more 'login'=>'password' lines
68 /** Debug mode to output some internal information
69 ** Default is false for live site. Enable when coding or before submitting a new issue */
70 define( 'YOURLS_DEBUG', false );
73 ** URL Shortening settings
76 /** URL shortening method: 36 or 62 */
77 define( 'YOURLS_URL_CONVERT', 36 );
79 * 36: generates all lowercase keywords (ie: 13jkm)
80 * 62: generates mixed case keywords (ie: 13jKm or 13JKm)
81 * Stick to one setting. It's best not to change after you've started creating links.
85 * Reserved keywords (so that generated URLs won't match them)
86 * Define here negative, unwanted or potentially misleading keywords.
88 $yourls_reserved_URL = array(
89 'porn', 'faggot', 'sex', 'nigger', 'fuck', 'cunt', 'dick',
93 ** Personal settings would go after here.