netbird
自动安装服务端 curl -fsSL https://github.com/netbirdio/netbird/releases/latest/download/getting-started.sh | bash ./getting-started.sh 安装ubuntu客户端 curl -fsSL https://pkgs.netbird.io/install.sh | sh ./install.sh 客户端执行 netbird up --management-url 启用ssh netbird down netbird up --management-url https://py.mba --setup-key BE39E-9AA4-40E1-BA0C-8C2D4F867BFB --allow-server-ssh --enable-ssh-root
yaml
services: # UI dashboard dashboard: image: registry.cn-hangzhou.aliyuncs.com/leiuvn/netbird:dashv1 container_name: netbird-dashboard restart: unless-stopped networks: lbu_net: ipv4_address: 172.20.0.234 # 指定你在 lbu_net 中的 IP ports: - '127.0.0.1:8080:80' env_file: - ./dashboard.env logging: driver: "json-file" options: max-size: "500m" max-file: "2" # Combined server (Management + Signal + Relay + STUN) netbird-server: image: registry.cn-hangzhou.aliyuncs.com/leiuvn/netbird:serverv1 container_name: netbird-server restart: unless-stopped networks: lbu_net: ipv4_address: 172.20.0.235 # 指定你在 lbu_net 中的 IP ports: - '127.0.0.1:8081:80' - '3478:3478/udp' volumes: - ./netbird_data:/var/lib/netbird - ./config.yaml:/etc/netbird/config.yaml command: ["--config", "/etc/netbird/config.yaml"] logging: driver: "json-file" options: max-size: "500m" max-file: "2" volumes: netbird_data: networks: lbu_net: external: true
刺猬墨客内容更新定时任务
任务:刺猬墨客后台内容更新定时任务
一.分别搜索当日以下四个分类的热点事件新闻和相关图片,使用写作技能每个分类写一篇热点事件文章及配图;
1.国际新闻(搜索新发布的国际热点新闻事件,不包含国内新闻事件)
2.历史回顾(搜索新发布且阅读量高的历史事件相关文章重新组织文本配图)
3.科技前沿(所搜新发布的科技资讯相关文章重新组织文本配图)
4.热门赛事(搜索新发布的重点热门赛事文章重新组织文本配图)
二.以上四个分类每个分类新建一篇文章,使用下面接口推送即可;
重点要求如下:
1.文章生动有趣富有阅读性,标题简短正文1000字以内,封面图片一张,正文图片两张左右,尽量使用网络下载的相关图片,AI生成图片兜底
2.总结文章正文写出小段摘要放在summary字段中
3.在新建时状态默认为published发布
4.使用utf-8的通用格式防止win平台与平台系统格式不兼容显示乱码
上传接口调用示例:
curl -X POST https://cw.ink/api/admin/content/external-create/ \
-F 'username=shilei' \
-F 'password=shimujiuxia' \
-F 'channel=tech' \
-F 'title=含正文图片的文章' \
-F 'summary=正文章摘要' \
-F 'source=刺猬原创' \
-F 'status=published' \
-F 'content=第一段文字。
{{image:0}}
第二段文字。
{{image:1}}' \
-F 'cover_image=@/data/cover.webp' \
-F 'content_images=@/data/body-1.jpg' \
-F 'content_images=@/data/body-2.png'
channel可选 world、history、tech、game;status 可选 draft、published。
上传支持 JPG、PNG、GIF、WebP,最大 20 MB,图片会压缩后上传到现有七牛目录。成功会返回文章 ID、slug、封面 key 和状态。-
« 上一篇:
49.k3s
-
51.ubuntu26笔记
:下一篇 »