Shorten long urls
Shorten long urls
Want to deploy this service quickly? Try out this one click setup in QuickDeploy.
config-sample.inc.php
to config.inc.php
config.inc.php
& static/config.js
install.php
& Remove install.php
Option | Description |
---|---|
DB_HOST | Mysql host, normally localhost |
DB_PORT | Mysql port, normally 3306 |
DB_NAME | Mysql database name |
DB_USER | Mysql user |
DB_PASSWORD | Mysql password |
REDIS_HOST | Redis host, normally localhost |
REDIS_PORT | Redis listen port, normally 6379 |
BASE_URL | Base URL of your site |
OAUTH_CLIENT_ID | ClientID |
OAUTH_CLIENT_SECRET | ClientSecret |
If you want to run this service not only on localhost, it is required to update the OAuth properties
OAUTH_CLIENT_ID
and OAUTH_CLIENT_SECRET
.
To get your own configuration, 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
.
The OAuth related functions are located at auth.php
, user.logic.php
.