baratsemet/ohurlshortener-portal
ohUrlShortener 短链接系统门户
1.5K
适合中小型社区网站使用的短链接服务系统,支持短链接成产、查询及302转向,并顺带简单的点击量统计
Gitee: https://gitee.com/barat/ohurlshortener
Github: https://github.com/barats/ohUrlShortener
Gitlink: https://www.gitlink.org.cn/baladiwei/ohurlshortener
$ docker run --name {some_container_name} -v {path_to_config_file}:/app/config.ini -p {local_port}:9091 -d baratsemet/ohurlshortener-portal:latest
-v {path_to_config_file}:/app/config.ini
镜像启动时,会读取 app/config.ini
文件,并试图从中获取必要的系统配置参数,其内容请参照:
[app]
debug = false
port = 9091
admin_port = 9092
url_prefix = http://localhost:9091/
[redis]
host = 127.0.0.1:6379
database= 0
username=
password=
pool_size = 50
[postgres]
host = localhost
port = 5432
user = postgres
password = postgres
database = oh_url_shortener
max_open_conn = 20
max_idle_conn = 5
-p {local_port}:9091
镜像启动时,会开启容器 9091
端口服务,请映射必要的本地端口
启动 PostgreSQL
数据库并新建名称 oh_url_shortener
的数据库,其需要的表、视图等请参考如下脚本
Gitee: https://gitee.com/barat/ohurlshortener/blob/main/structure.sql
Github: https://github.com/barats/ohUrlShortener/blob/main/structure.sql
Gitlink: https://www.gitlink.org.cn/baladiwei/ohurlshortener/tree/main/structure.sql
docker pull baratsemet/ohurlshortener-portal