一些服务配置文件备份

望舒的配置文件备份

为了防止隐私数据泄露我还是把一些重要的Token放本地吧

Nonebot相关

其一

pyproject.toml文件

[project]
name = "nb"
version = "0.1.0"
description = "nb"
readme = "README.md"
requires-python = ">=3.8, <4.0"

[tool.nonebot]
adapters = [
    { name = "OneBot V11", module_name = "nonebot.adapters.onebot.v11" }
]
plugins = ["nonebot_plugin_kawaii_robot", "nonebot_plugin_longtu", "nonebot_plugin_status", "nonebot_plugin_rename", "nonebot_plugin_githubcard"]
plugin_dirs = []
builtin_plugins = []

.env.prod文件

# 基本配置
DRIVER=~fastapi+~websockets
HOST=0.0.0.0
PORT=9999
SUPERUSERS=["2478314183"]
NICKNAME=["望舒"]
COMMAND_START=["/", ""]
ONEBOT_V11_WS_URLS=["ws://0.0.0.0:8082/onebot/ws"]

# Kawaii Robot
LEAF_PERMISSION=GROUP
LEAF_REPEATER_LIMIT=[3, 6]
LEAF_REPEAT_CONTINUE=True
LEAF_MATCH_PATTERN=2
LEAF_SEARCH_MAX=35
LEAF_NEED_AT=False
LEAF_TRIGGER_PERCENT=3

# 龙图
MAX_DRAGONS=10

# 群名片更改
self_name="望舒 "
is_one_bot_set_all_group_card=True
rename_mhy_versions='
{
    "sr": {
        "version_list": [26, 27],
        "special_versions_dict": {},
        "base_time": "2024-10-23 11:00:00",
        "name": "崩铁"
    },
    "gi": {
        "version_list": [43, 44, 45, 46, 47, 48, 50],
        "special_versions_dict": {},
        "base_time": "2024-1-31 11:00:00",
        "name": "原神"
    }
}
'

其二

pyproject.toml文件

[project]
name = "nb2"
version = "0.1.0"
description = "nb2"
readme = "README.md"
requires-python = ">=3.8, <4.0"

[tool.nonebot]
adapters = [
    { name = "OneBot V11", module_name = "nonebot.adapters.onebot.v11" }
]
plugins = ["nonebot_plugin_deer_pipe"]
plugin_dirs = []
builtin_plugins = []

.env.prod文件

DRIVER=~fastapi+~websockets+~httpx
HOST=0.0.0.0
PORT=9990
SUPERUSERS=["2478314183"]
NICKNAME=["望舒"]
COMMAND_START=["/", ""]
ONEBOT_V11_WS_URLS=["ws://0.0.0.0:8083/onebot/ws"]

Lagrange

appsettings.json

{
    "Logging": {
        "LogLevel": {
            "Default": "Information",
            "Microsoft": "Warning",
            "Microsoft.Hosting.Lifetime": "Information"
        }
    },
    "SignServerUrl": "http://106.54.14.24:8082/api/sign/25765",
    "MusicSignServerUrl": "",
    "Account": {
        "Uin": 0,
        "Password": "",
        "Protocol": "Linux",
        "AutoReconnect": true,
        "GetOptimumServer": true
    },
    "Message": {
        "IgnoreSelf": true,
        "StringPost": false
    },
    "QrCode": {
        "ConsoleCompatibilityMode": false
    },
    "Implementations": [
      {
        "Type": "ForwardWebSocket",
        "Host": "0.0.0.0",
        "Port": 8086,
        "HeartBeatInterval": 5000,
        "AccessToken": ""
      },
      {
        "Type": "ForwardWebSocket",
        "Host": "0.0.0.0",
        "Port": 8081,
        "HeartBeatInterval": 5000,
        "AccessToken": ""
      },
      {
        "Type": "ForwardWebSocket",
        "Host": "0.0.0.0",
        "Port": 8082,
        "HeartBeatInterval": 5000,
        "AccessToken": ""
      },
      {
        "Type": "ForwardWebSocket",
        "Host": "0.0.0.0",
        "Port": 8083,
        "HeartBeatInterval": 5000,
        "AccessToken": ""
      },
      {
        "Type": "ForwardWebSocket",
        "Host": "0.0.0.0",
        "Port": 8084,
        "HeartBeatInterval": 5000,
        "AccessToken": ""
      }
    ]
}

March7th

.env.prod

# 驱动器配置,请勿修改
DRIVER=~fastapi+~httpx+~websockets

# 监听主机名称
HOST=0.0.0.0
# 监听端口号
PORT=23037

# 日志等级
# DEBUG  : 打印调试及以上日志
# INFO   : 打印信息及以上日志
# WARNING: 打印警告及以上日志
# ERROR  : 打印错误及以上日志
LOG_LEVEL=INFO

# 数据库迁移文件目录
ALEMBIC_VERSION_LOCATIONS='{
    "nonebot_plugin_srbind": "march7th/nonebot_plugin_srbind/migrations",
    "nonebot_plugin_srgacha": "march7th/nonebot_plugin_srgacha/migrations",
    "nonebot_plugin_srpanel": "march7th/nonebot_plugin_srpanel/migrations"
}'

# 数据存储目录
LOCALSTORE_CACHE_DIR="cache"
LOCALSTORE_CONFIG_DIR="config"
LOCALSTORE_DATA_DIR="data"

# 以下配置项根据需求修改

# 超级用户账号配置,如 QQ 号等
SUPERUSERS=["2478314183"]
# Bot 昵称列表
NICKNAME=["望舒"]
# Bot 命令前缀列表
COMMAND_START=["","/"]


# 以下配置项已配置有默认值,可根据实际需求取消注释并修改

# GitHub 代理地址
# GITHUB_PROXY="https://mirror.ghproxy.com"
# GITHUB_PROXY="https://github.moeyy.xyz"
GITHUB_PROXY=""
# 角色面板 API 地址
SR_PANEL_URL="https://proxy.qiusyan.top/proxy/api.mihomo.me/sr_info_parsed/"
# 遗器评分文件地址
SR_SCORE_URL="https://raw.qiusyan.eu.org/Mar-7th/StarRailScore/master/score.json"
# 图片资源下载来源
SR_WIKI_URL="https://raw.qiusyan.eu.org/Mar-7th/StarRailRes/master"

# 固定攻略来源
SR_WIKI_PROVIDERS=["Nwflower"]

# 连接
ONEBOT_V11_WS_URLS=["ws://0.0.0.0:8081/onebot/ws"]

# 过码
MAGIC_API=https://api.fuckmys.tk/geetest?token=****** # 已存本地

Supervisor配置文件

b.conf

b站刷播放量脚本

[program:b]
command=python3 b.py
directory=/root
stdout_logfile=/root/b.log
stdout_logfile_maxfiles=1
stdout_logfile_maxbytes=1048576

Lagrange.conf

[program:Lagrange]
command=/data/Lagrange/Lagrange.OneBot
directory=/data/Lagrange
autostart=true
autorestart=true
stdout_logfile=/data/Lagrange/log/Lagrange.log
stdout_logfile_maxfiles=1
stdout_logfile_maxbytes=1048576

March7.conf

[program:March7]
command=nb run
directory=/data/March7th
autostart=true
autorestart=true
stdout_logfile=/data/March7th/log/March7th.log
stdout_logfile_maxfiles=1
stdout_logfile_maxbytes=1048576

mcl.conf

[program:mcl]
command=/data/mcl/mcl
directory=/data/mcl
autostart=true
autorestart=true
stdout_logfile=/data/mcl/log/mcl.log
stdout_logfile_maxfiles=1
stdout_logfile_maxbytes=1048576

nb2.conf

[program:nb2]
command=nb run
directory=/data/nb2
autostart=true
autorestart=true
stdout_logfile=/data/nb2/log/nb2.log
stdout_logfile_maxfiles=1
stdout_logfile_maxbytes=1048576

nb.conf

[program:nb]
command=nb run
directory=/data/nb
autostart=true
autorestart=true
stdout_logfile=/data/nb/log/nb.log
stdout_logfile_maxfiles=1
stdout_logfile_maxbytes=1048576

评论