# nfpm config for the modelrouter core gateway binary. # The version placeholder below is substituted by packaging/core-dist.sh (nfpm v2 # here does not honour {{ .Env.VERSION }} template rendering), so do not edit it # by hand. name: modelrouter arch: amd64 platform: linux version: __VERSION__ epoch: "1" section: net priority: optional maintainer: JianFeeeee description: | Unified OpenAI-compatible multi-source LLM gateway. Routes requests across multiple upstream LLM providers with Lua adapters, model scheduling, quota windows, an elastic Lua worker pool, and a Web UI. vendor: ModelRouter homepage: https://gitcode.com/JianFeeeee/ModelRouter license: MIT contents: # binary - src: ./cmd/build/modelrouter dst: /usr/bin/modelrouter file_info: mode: 0755 # systemd unit (memory tuning baked in) - src: ./packaging/modelrouter.service dst: /etc/systemd/system/modelrouter.service file_info: mode: 0644 # example config (seeded to /etc/modelrouter on first install by postinst). # Must be the tracked sanitised template: ./config.yaml is the operator's own # gitignored config and shipping it would leak real credentials — it shipped a # working admin key (sk-gw-local-0001) to every install for a while. - src: ./packaging/config.example.yaml dst: /usr/share/modelrouter/config.example.yaml file_info: mode: 0644 # built-in Lua adapters (deployed to /etc/modelrouter/adapters) - src: ./internal/lua/adapters/*.lua dst: /usr/share/modelrouter/adapters/ file_info: mode: 0644 # 服务端浏览器栈依赖安装脚本(VNC 兜底登录用;需 root,运维显式执行) - src: ./packaging/install-browser-stack.sh dst: /usr/share/modelrouter/install-browser-stack.sh file_info: mode: 0755 # README pointer - src: ./README.md dst: /usr/share/doc/modelrouter/README.md file_info: mode: 0644 scripts: postinstall: ./packaging/postinst.sh preremove: ./packaging/prerm.sh rpm: group: Applications/Internet summary: Unified OpenAI-compatible multi-source LLM gateway compression: gzip deb: compression: gzip fields: Recommends: ca-certificates