Remove the standard modules

Can I safely remove some of the standard modules from a custom build?
If so which ones?

You’d need to fork Caddy and edit caddy/modules/caddyhttp/standard/imports.go at master · caddyserver/caddy · GitHub to do so.

Why do you want to do this? There’s very little reason to do so.

2 Likes

Thank you for showing me where they are.
I was attempting to reduce the size of final binary.
I was only about to cut about 2 megabyte from the final size by removing some.
The juice is not worth the squeeze.

1 Like

You would have probably remove most/all of the caddyhttp modules to get a good squeeze.

2 Likes

This topic was automatically closed after 30 days. New replies are no longer allowed.