You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
2.0 KiB
53 lines
2.0 KiB
Index: user/config-sample.php |
|
--- user/config-sample.php.orig 2021-03-07 12:48:00.032983000 +0100 |
|
+++ user/config-sample.php 2021-03-07 12:49:47.640018000 +0100 |
|
@@ -1,4 +1,4 @@ |
|
-<?php |
|
+ |
|
/* This is a sample config file. |
|
* Edit this file with your own settings and save it as "config.php" |
|
* |
|
@@ -11,10 +11,10 @@ |
|
*/ |
|
|
|
/** MySQL database username */ |
|
-define( 'YOURLS_DB_USER', 'your db user name' ); |
|
+define( 'YOURLS_DB_USER', 'yours' ); |
|
|
|
/** MySQL database password */ |
|
-define( 'YOURLS_DB_PASS', 'your db password' ); |
|
+define( 'YOURLS_DB_PASS', 'yours' ); |
|
|
|
/** The name of the database for YOURLS |
|
** Use lower case letters [a-z], digits [0-9] and underscores [_] only */ |
|
@@ -22,7 +22,7 @@ |
|
|
|
/** MySQL hostname. |
|
** If using a non standard port, specify it like 'hostname:port', e.g. 'localhost:9999' or '127.0.0.1:666' */ |
|
-define( 'YOURLS_DB_HOST', 'localhost' ); |
|
+define( 'YOURLS_DB_HOST', '127.0.0.1:3306' ); |
|
|
|
/** MySQL tables prefix |
|
** YOURLS will create tables using this prefix (eg `yourls_url`, `yourls_options`, ...) |
|
@@ -37,7 +37,7 @@ |
|
** All lowercase, no trailing slash at the end. |
|
** If you define it to "http://sho.rt", don't use "http://www.sho.rt" in your browser (and vice-versa) |
|
** To use an IDN domain (eg http://héhé.com), write its ascii form here (eg http://xn--hh-bjab.com) */ |
|
-define( 'YOURLS_SITE', 'http://your-own-domain-here.com' ); |
|
+define( 'YOURLS_SITE', 'http://example.com:8081' ); |
|
|
|
/** YOURLS language |
|
** Change this setting to use a translation file for your language, instead of the default English. |
|
@@ -62,10 +62,9 @@ |
|
/** Username(s) and password(s) allowed to access the site. Passwords either in plain text or as encrypted hashes |
|
** YOURLS will auto encrypt plain text passwords in this file |
|
** Read http://yourls.org/userpassword for more information */ |
|
+define( 'YOURLS_NO_HASH_PASSWORD', true ); |
|
$yourls_user_passwords = [ |
|
- 'username' => 'password', |
|
- // 'username2' => 'password2', |
|
- // You can have one or more 'login'=>'password' lines |
|
+ 'admin' => 'admin', |
|
]; |
|
|
|
/** URL shortening method: 36 or 62
|
|
|