abiosoft / abiosoft/caddy-exec

Dynamically receive arguments

未关闭
#16 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Go
星标
155
派生
21
PR 合并指标
30 天内没有已合并 PR

描述

I'm going over the possibilities to handle a html form submission since directive [mailout](https://caddy.its-em.ma/v1/docs/http.mailout) that used to work perfectly with caddy v1 is not supported in v2 anymore.

Was thinking to simply trigger a .go file when a route is being hit. Is it possible to dynamically receive arguments instead of hard coding them in the Caddyfile?

e.g something like this:
```
// command to execute
"command": "handleform.go",
// command arguments
"args": [$args]
```

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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