2015-04-08 23:53:34 +02:00
|
|
|
# Breve
|
|
|
|
### a url shortener
|
|
|
|
|
|
|
|
Breve is a web application that provides a simple interface to
|
2015-04-09 00:05:54 +02:00
|
|
|
shortening long urls creating links smaller and easier to remember.
|
2015-04-08 23:53:34 +02:00
|
|
|
|
2015-08-12 17:36:08 +02:00
|
|
|
You can find a running instance on [breve.xyz](https://breve.xyz)
|
|
|
|
|
2015-04-09 00:05:54 +02:00
|
|
|
It creates links in the form of "/emeaoinqua": easier to remember than
|
2015-04-08 23:53:34 +02:00
|
|
|
alphanumeric strings like "/1Cqw8lHw" used by several services.
|
|
|
|
|
2015-04-09 00:05:54 +02:00
|
|
|
It was inspired by [hastebin](http://hastebin.com).
|
|
|
|
|
2015-04-10 23:46:51 +02:00
|
|
|
## Installing
|
2015-04-09 00:05:54 +02:00
|
|
|
|
2015-04-09 17:26:05 +02:00
|
|
|
Install the app with cabal-install. Run
|
2015-04-08 23:53:34 +02:00
|
|
|
|
2015-04-09 17:26:05 +02:00
|
|
|
$ cabal install breve
|
2015-04-08 23:53:34 +02:00
|
|
|
|
2015-04-09 17:26:05 +02:00
|
|
|
and start it with
|
|
|
|
|
|
|
|
$ breve
|
|
|
|
|
2015-08-01 02:29:58 +02:00
|
|
|
The app will start serving on `https://localhost:3000`, listening on every active interface.
|
2015-04-09 17:27:04 +02:00
|
|
|
|
2015-04-10 23:46:51 +02:00
|
|
|
## Configure
|
|
|
|
|
|
|
|
You can change the options by editing the config file.
|
|
|
|
When you start the app an empty one will be created in:
|
|
|
|
`$XDG_CONFIG_HOME/breve` or `~/.config/breve` if unset.
|
|
|
|
|
|
|
|
The default values are:
|
|
|
|
|
|
|
|
```ini
|
2015-04-20 22:24:34 +02:00
|
|
|
hostname = "localhost"
|
|
|
|
port = 3000
|
|
|
|
urltable = "$XDG_CONFIG_HOME/breve"
|
2015-08-11 15:41:59 +02:00
|
|
|
tls {
|
|
|
|
cert = "/usr/share/tls/breve.crt"
|
|
|
|
key = "/usr/share/tls/breve.key"
|
|
|
|
chain = []
|
|
|
|
}
|
2015-04-10 23:46:51 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
`urltable` is the location of breve url hashtable
|
2015-08-12 17:36:08 +02:00
|
|
|
|
2015-08-11 15:41:59 +02:00
|
|
|
`chain` is a list of chain certificate files
|
2015-04-08 23:53:34 +02:00
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
Dual licensed under the MIT and GPL licenses:
|
|
|
|
http://www.opensource.org/licenses/mit-license.php
|
2015-04-09 00:05:54 +02:00
|
|
|
http://www.gnu.org/licenses/gpl.html
|