Coder Social home page Coder Social logo

ealrang / short-url Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wxyshine/short-url

0.0 0.0 0.0 96 KB

基于spring boot + H2 数据库实现的短链接生成服务 https://a-url.tk/

License: Apache License 2.0

Java 57.26% HTML 41.03% Dockerfile 1.71%

short-url's Introduction

短链接生成服务

基于spring boot + H2 数据库实现的短链接生成服务(jdk1.8)

演示站为公共服务(不能保证永久链接),如需使用请自行部署。

demo

提供API wiki

部署方式一 🖥️

需要环境:jdk1.8

下载jar包 直接启动 默认端口 8090

# 自行替换版本号
java -jar -Xms128m -Xmx512m -XX:PermSize=128M -XX:MaxPermSize=256M  short-url-版本号.jar

部署方式二 🐋

需要已经安装docker 参考
docker hub

使用docker方式部署 latest默认最新版本 可以指定版本

docker run -d -p 8090:8090 -v ~/.short-url:/root/.short-url --name short-url --restart=always wxyshine/short-url:latest

如nginx 配置ssl后 生成的短链接不带https
在nginx 配置加上 proxy_set_header X-Forwarded-Scheme $scheme;

conf

short-url's People

Contributors

wxyshine 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.