into “list of imports”? I don’t get it at all.
4. And how can I get a build result? (when I execute “go build”, it is done in a second without returning a message, and I don’t know the destination folder.)
Hi there! Actually, the nginx-adapter is still work-in-progress. If you glance at the code in the repo, you’ll see it doesn’t handle rewrites yet, which I assume you’ll need based on your other thread. I’d say let’s focus on solving the issue you’re facing there.
The nginx adapter isn’t a command, so go build will only compile it to check for errors, not create an executable file. It’s a Caddy plugin, so you add that import as described here: Extending Caddy — Caddy Documentation (near the beginning). Literally just add it to the list of imports. Making your own main is recommended.
Then compile your own main (or a modified Caddy main, if you added the import into Caddy’s main package instead of your own) and you will get a binary with that plugin.