Skip to content

问题反馈 #32

@ac0d3r

Description

@ac0d3r

关于部署

部署

Hyuga 通过github action 自动发布,使用 embed 打包好前端资源文件,所以部署特别简单:

  1. 准备一个域名,如 hyuga.icu,准备一台vps,如公网ip 1.1.1.1

  2. 在 cloudflare 中添加 hyuga.icu,并按照提示修改域名 DNS 服务器。

  3. 在cloudflare dns 那里添加两条记录:
    image

    • ns.hyuga.icu1.1.1.1
    • zznq.hyuga.icu NS → ns.hyuga.icu
  4. 下载 hyuga:Hyuga releases

  5. 编辑配置文件 config.toml ,修改dns 、github 等

    ...
    [oob]
        [oob.dns]
            main = "zznq.hyuga.icu"
            ip = "1.1.1.1"
            ns = ["ns.hyuga.icu"]
        [oob.jndi]
            address = ":233"
            limit = 1000
    
    [web]
        address = "localhost:8080"
        [web.github]
            client-id = "xxx"
            client-secret = "xxxxxxxx"
  6. 运行 ./hyuga -config config.toml

支持https部署

  1. 安装 caddy https://caddyserver.com/docs/install

  2. 配置 /etc/caddy/Caddyfile 然后重启 systemctl restart caddy

    zznq.hyuga.icu {
        reverse_proxy localhost:8080
    }
    :80 {
        reverse_proxy localhost:8080
    }
    

其他

image

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions