2 /* This is a sample config file.
3 * Edit this file with your own settings and save it as "config.php"
7 ** MySQL settings - You can get this info from your web host
10 /** MySQL database username */
11 define( 'YOURLS_DB_USER', 'your db user name' );
13 /** MySQL database password */
14 define( 'YOURLS_DB_PASS', 'your db password' );
16 /** The name of the database for YOURLS */
17 define( 'YOURLS_DB_NAME', 'yourls' );
20 define( 'YOURLS_DB_HOST', 'localhost' );
22 /** MySQL tables prefix */
23 define( 'YOURLS_DB_PREFIX', 'yourls_' );
29 /** YOURLS installation URL -- all lowercase and with no trailing slash.
30 ** If you define it to "http://site.com", don't use "http://www.site.com" in your browser (and vice-versa) */
31 define( 'YOURLS_SITE', 'http://site.com' );
33 /** Timezone GMT offset */
34 define( 'YOURLS_HOURS_OFFSET', 0 );
36 /** YOURLS language or "locale".
37 ** Change this setting to "localize" YOURLS (use a translation instead of the default English). A corresponding .mo file
38 ** must be installed in the user/language directory.
39 ** See http://yourls.org/translations for more information */
40 define( 'YOURLS_LANG', '' );
42 /** Allow multiple short URLs for a same long URL
43 ** Set to true to have only one pair of shortURL/longURL (default YOURLS behavior)
44 ** Set to false to allow multiple short URLs pointing to the same long URL (bit.ly behavior) */
45 define( 'YOURLS_UNIQUE_URLS', true );
47 /** Private means the Admin area will be protected with login/pass as defined below.
48 ** Set to false for public usage (eg on a restricted intranet or for test setups)
49 ** Read http://yourls.org/privatepublic for more details if you're unsure */
50 define( 'YOURLS_PRIVATE', true );
52 /** 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 **/
53 define( 'YOURLS_COOKIEKEY', 'modify this text with something random' );
55 /** Username(s) and password(s) allowed to access the site. Passwords either in plain text or as encrypted hashes
56 ** YOURLS will auto encrypt plain text passwords in this file
57 ** Read http://yourls.org/userpassword for more information */
58 $yourls_user_passwords = array(
59 'username' => 'password',
60 'username2' => 'password2' // You can have one or more 'login'=>'password' lines
64 ** URL Shortening settings
67 /** URL shortening method: 36 or 62 */
68 define( 'YOURLS_URL_CONVERT', 36 );
70 * 36: generates all lowercase keywords (ie: 13jkm)
71 * 62: generates mixed case keywords (ie: 13jKm or 13JKm)
72 * Stick to one setting. It's best not to change after you've started creating links.
76 * Reserved keywords (so that generated URLs won't match them)
77 * Define here negative, unwanted or potentially misleading keywords.
79 $yourls_reserved_URL = array(
80 'porn', 'faggot', 'sex', 'nigger', 'fuck', 'cunt', 'dick', 'gay',
84 ** Personal settings would go after here.