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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9066db19d32e16e954719e6860873b22d081e0d8a68c24e7f19a8d74e86f599 |
|
MD5 | 560a2ae7460467912f209778ef882459 |
|
BLAKE2b-256 | 0bcec4b2b3722958ba96dd2da3d51ef03543b4c5b433df0523e747ab52ed8fc9 |
Close
Hashes for nonebot_plugin_shorturl-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bef97266f6ce3ffa0a0de1968d173f8b8518df822d041111b302dcc28502b31e |
|
MD5 | 628ca0bcc19d108f77d28b4175aa6001 |
|
BLAKE2b-256 | b8e413b2423687a5a412552adb601585f692fdc64a187d98767f4df6ba349dbd |