foxcpp / foxcpp/maddy

Feature request: JSON config format

未关闭
#548 2 条评论 4 个 reaction 已指派 0 人 在 GitHub 查看
new feature
主要语言
Go
星标
6.1k
派生
327
PR 合并指标
30 天内没有已合并 PR

描述

# Use case

Maddy's uses a custom config format. This makes it hard to integrate maddy with solutions for automatic configuration management (both generating maddy config or parsing maddy config). NixOS for example can very easily generate JSON from it's structured module system, but it is much harder to generate the current maddy config format in a meaningful way from nix.

# Your idea for a solution

I propose to introduce a canonical JSON representation of the configuration and a way to convert from the current configuration format to the JSON format (similar to how Caddy uses the human readable Caddyfile format and a machine readable JSON format). This also makes it easier to write various adapters that can translate from other mailserver config (e.g. dovecot) to the equivalent maddy config on a best effort basis (similar to how Caddy has adapters e.g. for nginx).

- [ ] I'm willing to help with the implementation

贡献指南

打开贡献指南

调研方向

该 issue 没有指明文件、测试或入口点。首先了解现有的配置格式,并确定规范 JSON 表示形式以及两个转换方向的范围;完成的标准是模式和转换行为都已定义并实现。

由索引模型根据 Issue 内容生成。

评估

技术栈
go
领域
backend
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。