You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
4 months ago | |
---|---|---|
caddy | 4 months ago | |
.editorconfig | 5 months ago | |
.gitignore | 5 months ago | |
caddy.go | 4 months ago | |
config.go | 5 months ago | |
docker-compose.yml | 4 months ago | |
go.mod | 4 months ago | |
go.sum | 4 months ago | |
license.md | 5 months ago | |
main.go | 4 months ago | |
readme.md | 4 months ago | |
tar_gz.go | 5 months ago |
readme.md
(cling)
static site hosting manager designed for CI workflows (think github pages but self-hosted)
usage
cli options (not fully implemented)
[serve] start cling server and ensure caddy webserver is running & configured
-password secret key for authentication
-keep how many old versions to keep (default 0)
[-caddy SOCK] path to Caddy socket, without `unix://` (default /caddysocket/caddy.sock)
push upload website files to the server
-password secret key for authentication
-server URL cling server address
-host HOST website domain name
[-root PATH] site files root
help [cmd] show this help
to-do lists
general
- configuration
- environment variables
- cli flags
- dockerize it (one image for both flows)
server
- http route
- handle file upload
- basic authentication
- decompress archive
- generate folder structure
- interface with caddy
- configure routes based on folder structure (hostname and latest version)
- generate routes for things like error pages
- delete old versions when done
client
- basic authentication
- compress archive
- make PUT request with file attached
potential future features
- multiple users