onstatic

The onstatic is static page hosting controller.
Quick Start
Start application from Releases or yourself.
go run cmd/server/main.go
Then, do register. Like this.
curl -X POST -H "X-ONSTATIC-KEY: onstaticonstaticonstatic" -H "X-ONSTATIC-REPONAME: git@github.com:sters/onstatic.git" localhost:18888/register
And you can get SSH Public Key that register to Your git repository's access authentication.
Finally, do pull. Like this:
curl -v -X POST -H "X-ONSTATIC-KEY: onstaticonstaticonstatic" -H "X-ONSTATIC-REPONAME: git@github.com:sters/onstatic.git" localhost:18888/pull
You can get hashed repository name. Try access localhost:18888/{Hashed Repository Name}/{your file path}.
Plugins
See plugins/example.
You need implement EntryPoint on onstatic/plugin/api.go.
Also you need set *.so file into .onstatic dir on top of your repository. Like this:
- foobar_repository
- .onstatic
- foo.so
- bar.so
- other_dirs
- other_files
- more_other_files
See conf/conf.go, onstatic/handler.go. You can do it.