From 77263a3909554b93d77c4bb5219f2537ad192b1e Mon Sep 17 00:00:00 2001 From: kev Date: Wed, 27 Feb 2019 15:57:52 +0800 Subject: [PATCH] update yourls --- yourls/README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/yourls/README.md b/yourls/README.md index 25b2e4f..72bd37b 100644 --- a/yourls/README.md +++ b/yourls/README.md @@ -5,4 +5,27 @@ yourls that will allow you to run your own URL shortening service (a la TinyURL or Bitly). +# Up and Running + +```bash +$ docker-compose up -d +$ docker cp yourls_yourls_1:/var/www/html/user/config.php . +$ vi config.php +$ docker cp config.php yourls_yourls_1:/var/www/html/user/ +$ docker-compose exec chown www-data:www-data /var/www/html/user/config.php +$ docker-compose exec chmod 664 /var/www/html/user/config.php +``` + +File: config.php + +```php +/** 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 */ +$yourls_user_passwords = [ + 'user1' => 'secret1', + 'user2' => 'secret2', +]; +``` + [1]: http://yourls.org/