Ai
2 Star 7 Fork 4

donghui/gitlab-backup-script

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
settings.py 541 Bytes
一键复制 编辑 原始数据 按行查看 历史
donghui 提交于 2020-03-16 10:42 +08:00 . chmod 755 *.py
# -*- coding:utf-8 -*-
# tips:the user of gitlab must be an administrator
GIT_SETTINGS = {
'gitlab_url': 'https://gitlab.example.com',
'private_token': '9koXpg98eAheJpvBs5tK',
'git_data_path': '/data/git-data/repositories'
}
MAIL_NOTIFY_ENABLE = True
MAIL_SETTINGS = {
'mailhost': 'smtp.xxx.com',
'username': 'xxx@xxx.com',
'password': 'xxx',
'fromaddr': 'xxx@xxx.com',
'toaddrs': ['xxx@xxx.com', 'xxx@xxx.com'],
'subject': 'Gitlab Backup E-mail Notification'
}
LOG_SETTINGS = {
'level': 'INFO',
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/donhui/gitlab-backup-script.git
git@gitee.com:donhui/gitlab-backup-script.git
donhui
gitlab-backup-script
gitlab-backup-script
master

搜索帮助