add instruction for ansible deployment
This commit is contained in:
parent
170a6428d1
commit
333f99215a
|
|
@ -104,6 +104,36 @@ $ docker run -d --name rsshub -p 1200:1200 -e CACHE_EXPIRE=3600 -e GITHUB_ACCESS
|
|||
|
||||
To configure more options please refer to [Configuration](#configuration).
|
||||
|
||||
# Ansible Deployment
|
||||
|
||||
[This Ansible playbook](https://github.com/k-t-corp/RSSHub-ansible) includes RSSHub, Redis, browserless and Caddy
|
||||
|
||||
This Ansible playbook currently only support Ubuntu 20.04
|
||||
|
||||
### Install
|
||||
|
||||
```bash
|
||||
sudo apt update
|
||||
sudo apt install ansible
|
||||
cd ~
|
||||
git clone https://github.com/k-t-corp/RSSHub-ansible.git
|
||||
cd RSSHub-ansible
|
||||
ansible-playbook rsshub.yaml
|
||||
# When prompt to enter a domain name, enter the domain name that this machine/VM will use
|
||||
# For example, if your users use https://rsshub.exmaple.com to access your RSSHub instance, enter rsshub.exmaple.com (remove the https://)
|
||||
```
|
||||
|
||||
### Update
|
||||
|
||||
```bash
|
||||
cd ~
|
||||
git clone https://github.com/k-t-corp/RSSHub-ansible.git
|
||||
cd RSSHub-ansible
|
||||
ansible-playbook rsshub.yaml
|
||||
# When prompt to enter a domain name, enter the domain name that this machine/VM will use
|
||||
# For example, if your users use https://rsshub.exmaple.com to access your RSSHub instance, enter rsshub.exmaple.com (remove the https://)
|
||||
```
|
||||
|
||||
## Manual Deployment
|
||||
|
||||
The most direct way to deploy `RSSHub`, you can follow the steps below to deploy`RSSHub` on your computer, server or anywhere.
|
||||
|
|
|
|||
|
|
@ -106,6 +106,36 @@ $ docker run -d --name rsshub -p 1200:1200 -e CACHE_EXPIRE=3600 -e GITHUB_ACCESS
|
|||
|
||||
更多配置项请看 [#配置](#pei-zhi)
|
||||
|
||||
## Ansible 部署
|
||||
|
||||
[该 Ansible playbook](https://github.com/k-t-corp/RSSHub-ansible) 包括了 RSSHub, Redis, browserless 以及 Caddy 的安装
|
||||
|
||||
该 Ansible playbook 目前只支持 Ubuntu 20.04
|
||||
|
||||
### 安装
|
||||
|
||||
```bash
|
||||
sudo apt update
|
||||
sudo apt install ansible
|
||||
cd ~
|
||||
git clone https://github.com/k-t-corp/RSSHub-ansible.git
|
||||
cd RSSHub-ansible
|
||||
ansible-playbook rsshub.yaml
|
||||
# 当提示输入 domain name 的时候,输入该主机所使用的域名
|
||||
# 举例:如果您的 RSSHub 用户使用 https://rsshub.exmaple.com 访问您的 RSSHub 实例,输入 rsshub.exmaple.com(去掉 https://)
|
||||
```
|
||||
|
||||
### 更新
|
||||
|
||||
```bash
|
||||
cd ~
|
||||
git clone https://github.com/k-t-corp/RSSHub-ansible.git
|
||||
cd RSSHub-ansible
|
||||
ansible-playbook rsshub.yaml
|
||||
# 当提示输入 domain name 的时候,输入该主机所使用的域名
|
||||
# 举例:如果您的 RSSHub 用户使用 https://rsshub.exmaple.com 访问您的 RSSHub 实例,输入 rsshub.exmaple.com(去掉 https://)
|
||||
```
|
||||
|
||||
## 手动部署
|
||||
|
||||
部署 `RSSHub` 最直接的方式,您可以按照以下步骤将 `RSSHub` 部署在您的电脑、服务器或者其他任何地方
|
||||
|
|
|
|||
Loading…
Reference in New Issue