gavin/README.md

32 lines
1.2 KiB
Markdown
Raw Normal View History

# gavin
2020-05-08 07:09:58 -06:00
[![builds.sr.ht status](https://builds.sr.ht/~qbit/gavin.svg)](https://builds.sr.ht/~qbit/gavin?)
2021-01-20 07:15:22 -07:00
Simple utility to serve password protected, HTTPS'd WebDAV server and
[Organice](https://github.com/200ok-ch/organice) instance.
2020-05-08 07:02:51 -06:00
## Installation
```
go git -u suah.dev/gavin
```
## Example usage
`gavin` was built as a simple WebDAV server specifically to run
[organice](https://github.com/200ok-ch/organice). Here is an example showing how
to host organice via WebDAV.
| Flag | Value | Description |
|-----------|---------------------|-----------------------------------------------------------------------------------------|
| `-davdir` | /tmp/org | The directory we have our .org files in. |
| `-htpass` | /tmp/.htpasswd | Standard `htpasswd` file generated with `htpasswd`. Currently only bcrypt is supported. |
```
2021-01-20 07:15:22 -07:00
gavin -davdir /tmp/org -htpass /tmp/.htpasswd
```
Now you can open your browser to
[http://localhost:8080/](http://localhost:8080/), sign in using the credentials
in the `.htpasswd` file, and org away!