Generate short url by bot for bypassing censorship
Project description
nonebot-plugin-shorturl
✨ 为 NoneBot 插件提供短链接服务支持 ✨
使用方式
在 .env
文件中添加必填的配置项
配置项
通用配置项
SHORTURL_HOST
(必填):用于为外部插件构造完整的包含域名的短链接。示例值:http://localhost:8080
SHORTURL_ENDPOINT
:指定短链接服务的入口点模板。默认值:/shorturl/{encoded}
,可以自定义为/s/{encoded}
等SHORTURL_CACHE_TYPE
:指定短链接服务的后端缓存类型,可选值:memory
|diskcache
|redis
差分配置项
Redis
SHORTURL_REDIS_HOST
:Redis 后端的地址SHORTURL_REDIS_PORT
:Redis 后端的端口SHORTURL_REDIS_DB
:Redis DB 配置项SHORTURL_REDIS_USERNAME
:Redis 用户名SHORTURL_REDIS_PASSWORD
:Redis 密码
Diskcache
SHORTURL_DISKCACHE_FOLDER
:Diskcache 文件持久化目录
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for nonebot_plugin_shorturl-0.2.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5c42b020a22c60a7767269464eb8784e68ee58e428f8df8d4139d4a6a9c7ab2 |
|
MD5 | 8b8ff6355ed2937bc9ec62362333a245 |
|
BLAKE2b-256 | 943541ad3016f49c10c9223df4e8b028595e161bfc02d457862f908c4795acc6 |
Close
Hashes for nonebot_plugin_shorturl-0.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd2812e247e8aca2a133f0dabcd66345325c0e1381bfe4d5aee4137a8ec04ce8 |
|
MD5 | fdcef6fbb9f33084361861edfb217e67 |
|
BLAKE2b-256 | 08306e806b0d87145015b82be5115bcbb382a37a66b1b2cd7205753c4ab10a8f |