2 /* This is a sample config file.
\r
3 * Edit this file with your own settings and save it as "config.php"
\r
7 ** MySQL settings - You can get this info from your web host
\r
10 /** MySQL database username */
\r
11 define( 'YOURLS_DB_USER', 'dbuser' );
\r
13 /** MySQL database password */
\r
14 define( 'YOURLS_DB_PASS', 'dbpassword' );
\r
16 /** The name of the database for YOURLS */
\r
17 define( 'YOURLS_DB_NAME', 'yourls' );
\r
19 /** MySQL hostname */
\r
20 define( 'YOURLS_DB_HOST', 'localhost' );
\r
22 /** MySQL tables prefix */
\r
23 define( 'YOURLS_DB_PREFIX', 'yourls_' );
\r
29 /** YOURLS installation URL -- all lowercase and with no trailing slash.
\r
30 ** If you define it to "http://site.com", don't use "http://www.site.com" in your browser (and vice-versa) */
\r
31 define( 'YOURLS_SITE', 'http://site.com' );
\r
33 /** Timezone GMT offset */
\r
34 define( 'YOURLS_HOURS_OFFSET', 0 );
\r
36 /** Allow multiple short URLs for a same long URL
\r
37 ** Set to true to have only one pair of shortURL/longURL (default YOURLS behavior)
\r
38 ** Set to false to allow multiple short URLs pointing to the same long URL (bit.ly behavior) */
\r
39 define( 'YOURLS_UNIQUE_URLS', true );
\r
41 /** Private means protected with login/pass as defined below. Set to false for public usage on a restricted intranet or for test setups. */
\r
42 define( 'YOURLS_PRIVATE', true );
\r
44 /** 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 **/
\r
45 define( 'YOURLS_COOKIEKEY', 'modify this text with something random' );
\r
47 /** Username(s) and password(s) allowed to access the site */
\r
48 $yourls_user_passwords = array(
\r
49 'username' => 'password',
\r
50 'username2' => 'password2' // You can have one or more 'login'=>'password' lines
\r
54 ** URL Shortening settings
\r
57 /** URL shortening method: 36 or 62 */
\r
58 define( 'YOURLS_URL_CONVERT', 36 );
\r
60 * 36: generates case insentitive lowercase keywords (ie: 13jkm)
\r
61 * 62: generate case sensitive keywords (ie: 13jKm or 13JKm)
\r
62 * Stick to one setting, don't change after you've created links as it will change all your short URLs!
\r
63 * Base 36 should be picked. Use 62 only if you understand what it implies.
\r
67 * Reserved keywords (so that generated URLs won't match them)
\r
68 * Define here negative, unwanted or potentially misleading keywords.
\r
70 $yourls_reserved_URL = array(
\r
71 'porn', 'faggot', 'sex', 'nigger', 'fuck', 'cunt', 'dick', 'gay',
\r
75 ** Personal settings would go after here.
\r