Skip to content

Yin-Jinlong/h-nas-community

Repository files navigation

H NAS

开发

1.配置环境

AI Service配置:

和风天气:须在命令行添加jvm参数或环境变量

-Dqweather.host=api host
-Dqweather.jwt.privateKey=ed25519-private不包含前后缀
-Dqweather.jwt.keyId=keyID
-Dqweather.jwt.projectId=项目id

2.加载项目

加载gradle项目

./gradlew --refresh-dependencies

生成前端国际化文件。l10需要构建,见l10n

l10n --dir <clinet/l10n目录>

前端项目

cd client && flutter pub get

3.项目结构

- buildSrc # gradle插件
- client: # 客户端
    - android # android端
    - assets  # 资源目录
    - lib     # 源码目录
    - web     # web端
    - windows # windows端
- server:
    - annotation  # 通用注解
    - common-data # 通用数据,前后端通用
    - entity      # 实体类预先义(接口)
    - fs          # 虚拟文件系统
    - utils       # 通用工具类
    - subs:
        - ai-service        # AI服务
        - broadcast-service # (总)服务广播
        - core              # 服务核心(非服务)
        - file-service      # 文件服务
        - user-service      # 用户服务

部署

Docker

Ollama

  1. 安装Ollama
  2. 启动服务

构建镜像

gradle image
  • 配置所有留空的环境变量
  • 按需修改或添加配置

默认使用nivdia_cuda加速。

nginx

nginx.conf

License

  • 主体 Apache 2.0
  • FFmpeg h264部分 GPL v2+

Copyright (c) 2024-PRESENT Yin-Jinlong@github

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published