Seafile

文档

通过 nginx 代理

模式:

  • serverA: hosting seafile
  • serverB: public server

nginx + server A (seafile server)

作用:

  • 代理,转换 seafile + docker compose 部署的各种服务,替代自带的 Caddy

    • 因为 Caddy + nginx 会出现, nginx 代理 Caddy 服务,配置出错问题

nginx.yaml – compose 文件:

Rustdesk

client

set password

rustdesk --password YourPassword123

get access id

rustdesk --get-id 

Opencode

oh my opencode

update prompt

update oh my opencode config: ~/.config/opencode/oh-my-opencode.json

adapt to fix the latest schema: "$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json"

and select suitable model from openrouter, if one field has an older config, comment it, and replace it with new one

I have already installed latest opencode and oh-my-opencode, reference document: https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/refs/heads/master/docs/guide/installation.md

Dotenv And Direnv

.env Vs .envrc 文件格式说明

  1. .env 不包括 export
  2. .envrc 需要包括 export

    • 它是一个遵循 bash 语法的文件

zsh + direnv

1
2
3
if command -v direnv >/dev/null; then
    eval "$(direnv hook zsh)"
fi