Deploy the URL Shortener service quickly.
docker
install (version >= 17.03)- Permission to run docker commands
- A docker swarm created and this is the only node, or the storage may encounter failure
- One overlay network named
swarm-net
- The directory
/data
exists and able to read/write
If you haven't meet the requirements, refer to this script install_requirements.sh
to setup that.
git clone https://github.com/QuickDeploy/url-shortener.git
bash url-shortener/install.sh
visit http://127.0.0.1/install.php
to init the system, and you will see four Success
Part 1
First of all, login to QuickAuth and register for an account.
After login, visit Sites
> Add
, and add your server ip / domain (without http://
, /
or sub dir
)
Click View
, you can see the ClientID
and ClientSecret
, they will be used in the Part 2
Part 2
Modify the config files /data/us/web/config/config.js
and /data/us/web/config/config.inc.php
Properties to be updated are BASE_URL
, OAUTH_CLIENT_ID
, OAUTH_CLIENT_SECRET
That's all!
Feel free to post issues.