Git Product home page Git Product logo

short-link's Introduction

URL Shortener

Shorten long urls

| English | 简体中文 |

features

  • Customized short url
  • Generate related QR code
  • Support expiration time
  • Support available time
  • Update after created
  • Pause & Resume
  • Various forms of visit log analytics
  • Able to export your short urls
  • Remove confusing chars (l, I etc.)
  • Use 307 status code to preserve request method
  • Block unhealthy short links

Requirements

  • Redis
  • Php (>=5.1)
  • Mysql (>=5.7.8, or MariaDB >=10.2)
  • Apache (with Rewrite module enabled)

Setup

Want to deploy this service quickly? Try out this one click setup in QuickDeploy.

  • Install requirements
  • Download the latest release, unzip the tarball
  • Rename config-sample.inc.php to config.inc.php
  • Customize config.inc.php & static/config.js
  • Run install.php & Remove install.php

Configuration Options

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.

short-link's People

Contributors

newnius avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.