http.gopkg Plugin
This feature does not come with Caddy by default. To get it, select the http.gopkg plugin when you download Caddy.
The gopkg directive allows you to create vanity Go import urls.
Examples
Basic Usage
mydomain.com { gopkg /gopkg https://github.com/zikes/gopkg }
Permits go get mydomain.com/gopkg
Specify Repository Type
gopkg /myrepo hg https://bitbucket.com/zikes/myrepo
Specifies the Mercurial repository type.
Related Links
Documentation
Access the full documentation for this plugin off-site:
Plugin Help
Get help from the maintainers of the http.gopkg plugin:
Plugin Website
Visit http.gopkg’s website for more information:
Plugin Author: Jason Hutchinson
Last Updated: 30 Jun 2017, 2:03 AM
This plugin is independent of the Caddy project and is not endorsed or maintained by Caddy developers. Use at your own risk. Do not file issues for this plugin on Caddy’s bug tracker.