http.gomods Plugin
Create a config file like this example: gomods.test { gomods } The example above uses the default values for Go binary and number of parallel workers. To customize these values add these fields to your config file: gomods.test { gomods { gobinary /usr/bin/go workers 2 } } To enable caching you should also add the cache field to the config: gomods.test { gomods { cache } } Just like gomods itself, cache also uses its default values when not provided. You can specify fields like type and path to customize caching: gomods.test { gomods { cache { type local path /home/user/gomods_cache } } } To run Gomods use the following command:
Examples
gomods.test {
gomods {
cache {
type local
path /home/user/gomods_cache
}
}
}
Setup Caddy with gomods
enabled with aocal gomods cache.
Access the full documentation for this plugin off-site:
DocsGet help from the maintainers of the http.gomods plugin:
SupportVisit http.gomods's website for more information:
Website