breve/README.md

60 lines
1.8 KiB
Markdown
Raw Permalink Normal View History

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
2016-11-13 18:44:55 +01:00
You can find a running instance on [brve.bit](https://brve.bit)
2015-08-12 17:36:08 +02:00
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
Install the app with cabal-install. Run
2015-04-08 23:53:34 +02:00
$ cabal install breve
2015-04-08 23:53:34 +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:
2017-02-21 16:25:42 +01:00
`$XDG_CONFIG_HOME/breve`, `~/.config/breve` if unset,
or you can pass a path as the first argument of breve.
2015-04-10 23:46:51 +02:00
The default values are:
```ini
2015-04-20 22:24:34 +02:00
hostname = "localhost"
port = 3000
2017-02-21 16:25:42 +01:00
baseurl = "https://localhost:3000/"
2015-04-20 22:24:34 +02:00
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
2019-05-15 03:00:52 +02:00
Copyright (C) 2019 Michele Guerini Rocco
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.