Freshrss搭建
前置准备
需要一台1G1核心的云主机,我用ucloud;操作系统选择ubuntu
配置ssh登录
ssh-keygen -t rsa -f ~/.ssh/ucloud_ubuntu
ssh-copy-id -i ~/.ssh/ucloud_ubuntu user@remotehost
比如root就新建一个ucloud_root密钥,shuai就新建一个ucloud_shuai密钥
修改配置文件~/.ssh/config
Host ucloud_root
HostName 132.43.143.434(修改过的)
User root
Port 22
IdentityFile ~/.ssh/ucloud_root
ssh user@remotehost
安装docker
sudo apt install docker
- add mirror web
/etc/docker/deamon.json
{
"registry-mirrors": [
"https://registry.docker-cn.com"
]
}
安装vraya
docker镜像有很多时候pull不下来,需借助魔法
https://github.com/ningmoon/v2ray
$ sudo apt install v2ray v2raya
$ sudo systemctl start v2raya.service
运行服务
- 准备docker-compose.yml文件
version: "3"
services:
freshrss-app:
image: freshrss/freshrss:latest
container_name: freshrss-app
hostname: freshrss-app
restart: unless-stopped
ports:
- "7000:80"
depends_on:
- freshrss-db
volumes:
- ./data:/var/www/FreshRSS/data
- ./extensions:/var/www/FreshRSS/extensions
environment:
CRON_MIN: '*/45'
TZ: Asia/Shanghai
freshrss-db:
image: postgres:latest
container_name: freshrss-db
hostname: freshrss-db
restart: unless-stopped
volumes:
- freshrss-db:/var/lib/postgresql/data
environment:
POSTGRES_USER: freshrss
POSTGRES_PASSWORD: freshrss
POSTGRES_DB: freshrss
volumes:
freshrss-db:
注:不要瞎改,要吃亏的
- 运行 在docker-compose.yml同级目录下,执行:
sudo docker-compose up -d
,然后在浏览器输入ip:port,就能看到freshrss的界面了
配置
服务运行后有两个需求:
1 让其他人能看到我的rss
2 安卓手机的feedme软件也能订阅刷新
还有别的需求:
3 多用户管理
4 rsshub接入
这两个需求不管了,因为服务器吞吐量太小,后续升级
end
just have fun!