Webhook handler可以用于部署在PASH上

Thin-Deployer的Python项目详细描述


瘦部署程序[构建状态](https://travis-ci.org/riotkit-org/thin-deployer.svg?branch=master)(https://travis ci.org/riotkit org/thin deployer)
![Docker构建状态](https://img.shields.io/docker/build/wolnosciowiec/thin deployer.svg)
![Github发布](https://img.shields.io/github/release/riotkit-org/thin-deployer.svg?style=popout)
![pypi](https://img.shields.io/pypi/v/thin-deployer.svg?style=popout)
![pypi-python版本](https://img.shields.io/pypi/pyversions/thin deployer.svg)
![pypi-wheel](https://img.shields.io/pypi/wheel/thin deployer.svg)
[![codecov](https://codecov.io/gh/riotkit org/thin deployer/branch/master/graph/badge.svg)(https://codecov.io/gh/riotkit org/thin deployer)

git pull&;/deploy.sh

pip:https://pypi.org/project/thin deployer/
travis:https://travis ci.org/riotkit org/thin deployer
docker:https://hub.docker.com/r/wolnosciowec/thin deployer/

为无政府主义门户创建的免费软件以宣传以人为本的自由和基层社会运动为宗旨,不是资本和利润。

-https://wolnosciowiec.net
-http://iwait.org
-http://zsp.net.pl

但可以使用开关`--configuration={file path}`


指定示例:
````

或"x-auth-token"头
令牌:some-token-goes-here-use-only-least-64-characters-long-tokens

"logs"

如果不为空,则部署将执行
命令:
-git pull
-composer install--no dev

(…)可以有更多的服务定义
```

传统的方法是在主机上作为python包安装。

``bash
pip install thin deployer
thin deployer--configuration=/etc/thin deployer/.deployer.yml
````

Docker映像在独立容器中运行Thin Deployer。

``bash
sudo Docker run-p 8012:8012-v./deployer.yml:/root/.deployer.yml--rm--name thin deployer wolnosciowec/thin deployer
``

running dev环境
`--日志文件前缀{{path_to_log_file}`将日志保存到文件的开关。


默认为0.0.0


触发部署的示例请求:8012
x-auth-token:some-token-goes-here-use-only-least-64-characters-long-tokens

`````


----

`````
"output":"command""ls-la/nonexisting""失败,输出:\"b''\"
}
```

headers:
-x-runs-as:服务器在其上工作的特权用户的Unix用户名


dependencies
----

-python 3
-python yaml
-tornado framework
-py healthcheck
-[wolno_ciowiec通知服务器在某处设置](https://github.com/wolnosciowiec/wolnosciowiec-notification)(可选-仅用于通知)
-[wolno_ciowiec notification shell client](https://github.com/wolnosciowiec/wolnosciowiec-notification-shell-client)(可选-仅用于通知)

检查
----


服务在get/technical/healthcheck提供了一个简单的监视端点


授权有两种方式。
在对端点的请求中使用首选的端点由您决定。


-一个以令牌为值的头"x-auth-token"授权数据,登录名可以是任意的,作为密码,请键入令牌

头的示例:
-授权:ywfhonrlc3q=
-x-auth-token:test


`运行状况检查访问令牌
-`hc_min_token_length={{min_length}`每个服务中令牌的最小长度
-`hc_max_disk_usage={{{max_disk_usage_percentage}`默认为90(90%),当磁盘使用率高于或等于此值时,将报告一个错误

支持的通知格式是slack/mattermost(需要webhook url)


确保服务安全的良好做法
使用长标记
2很好。将服务隐藏在每秒请求速率受限的负载平衡器后面(以避免暴力攻击)
3。可选地添加基本身份验证(这可能会影响外部客户端应用程序对服务的使用)
4。从Internet调用服务时,请在负载平衡器后面使用SSL

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java Springboot数据JPA findByDate()   java是否可以有多个顶级树节点?   javahibernatehql。子查询中的多个   使用Twilio验证java Keyclope电话号码   java重写对象的toString()表示返回意外的符号   java Android最多每15分钟调用一个方法,否则使用保存的数据   在java swing中突出显示jeditorpane中的一些单词   java将时间戳转换为UTC时区   由于main中存在ArrayIndexOutOfBoundsException,导致java编译错误   java如何通过requestscope获取对象内部对象的值?   java访问安卓代码内的网站并检索生成的图像   java这种日期格式的模式是什么?   java解析包含超链接的xml字符串