2017-08-21 17:49:31 +03:00
|
|
|
[![Build Status](https://travis-ci.org/maghoff/sausagewiki.svg?branch=master)](https://travis-ci.org/maghoff/sausagewiki)
|
2017-09-22 17:16:40 +03:00
|
|
|
|
|
|
|
Sausagewiki is a simple, self-contained wiki engine.
|
|
|
|
|
2017-09-25 17:34:21 +03:00
|
|
|
Copyright (C) 2017 Magnus Hovland Hoff <maghoff@gmail.com>
|
2017-09-22 17:16:40 +03:00
|
|
|
|
|
|
|
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.
|
|
|
|
|
2017-10-29 14:16:31 +03:00
|
|
|
Features
|
|
|
|
========
|
|
|
|
Some features of Sausagewiki, in no particular order:
|
|
|
|
|
2017-11-24 14:20:02 +03:00
|
|
|
* Simple to [install and run](#install-and-run), no runtime dependencies
|
|
|
|
* Reasonable to [back up](https://github.com/maghoff/sausagewiki/wiki/Backup),
|
|
|
|
there is only one data file
|
2017-10-31 16:02:50 +03:00
|
|
|
* Can be reverse proxied behind any path without configuration
|
2017-10-29 14:16:31 +03:00
|
|
|
* Snappy, light resource usage
|
|
|
|
* Markdown syntax
|
2017-11-21 18:36:14 +03:00
|
|
|
* Plus [table-support](https://help.github.com/articles/organizing-information-with-tables/)
|
2017-10-29 14:16:31 +03:00
|
|
|
* Without embedded HTML
|
|
|
|
* Full text search
|
2017-11-03 02:16:18 +03:00
|
|
|
* Responsive design: fits different screens as well as print
|
2017-10-30 00:51:19 +03:00
|
|
|
* Progressive enhancement: works with or without JavaScript
|
2017-11-29 16:31:01 +03:00
|
|
|
* Works with [external authentication](https://github.com/maghoff/sausagewiki/wiki/Enabling-authentication)
|
2017-10-29 14:16:31 +03:00
|
|
|
|
2017-09-22 17:16:40 +03:00
|
|
|
Install and run
|
|
|
|
===============
|
|
|
|
Sausagewiki aims to be simple to get up and running. It is distributed as a
|
2017-11-30 14:35:28 +03:00
|
|
|
single independent executable for Linux:
|
2017-09-25 16:41:14 +03:00
|
|
|
|
2017-11-30 14:16:42 +03:00
|
|
|
1. Download the latest build of `sausagewiki.tar.xz` from <https://github.com/maghoff/sausagewiki/releases/latest>
|
|
|
|
2. Decompress: `tar Jxf sausagewiki.tar.xz`, it decompresses to the single
|
2017-11-30 14:35:28 +03:00
|
|
|
Linux executable `sausagewiki`
|
2017-11-30 14:16:42 +03:00
|
|
|
3. Run: `./sausagewiki wiki.db`
|
2017-09-25 16:41:14 +03:00
|
|
|
|
2017-11-21 16:14:57 +03:00
|
|
|
For a more permanent installation, you could [install Sausagewiki as a systemd
|
|
|
|
service](https://github.com/maghoff/sausagewiki/wiki/System-wide-installation-with-systemd).
|
|
|
|
|
2017-11-29 17:45:03 +03:00
|
|
|
Alternative installation methods include the following:
|
|
|
|
|
2017-11-29 17:47:23 +03:00
|
|
|
**Build from source** with `cargo build --release`, producing the binary as
|
|
|
|
`target/release/sausagewiki`. This requires you to have a working installation
|
|
|
|
of [rust](https://www.rust-lang.org/en-US/).
|
2017-11-29 17:45:03 +03:00
|
|
|
|
2017-12-02 15:23:30 +03:00
|
|
|
**Install with [Homebrew](https://brew.sh/)** on OS X/macOS:
|
|
|
|
`brew install --HEAD https://raw.githubusercontent.com/maghoff/sausagewiki/master/deploy/sausagewiki.rb`
|
|
|
|
(Some users are hitting [rust issue #39870](https://github.com/rust-lang/rust/issues/39870)
|
|
|
|
with this brew formula, even though it is supposed to have been fixed)
|
2017-09-25 16:41:14 +03:00
|
|
|
|
|
|
|
Command line arguments
|
|
|
|
----------------------
|
|
|
|
USAGE:
|
2017-10-18 17:45:04 +03:00
|
|
|
sausagewiki [FLAGS] [OPTIONS] <DATABASE>
|
2017-09-25 16:41:14 +03:00
|
|
|
|
|
|
|
FLAGS:
|
2017-10-18 17:45:04 +03:00
|
|
|
-h, --help Prints help information
|
2017-10-30 13:04:01 +03:00
|
|
|
--trust-identity Trust the value in the X-Identity header to be an authenticated username.
|
2017-10-18 17:45:04 +03:00
|
|
|
This only makes sense when Sausagewiki runs behind a reverse proxy which
|
|
|
|
sets this header.
|
|
|
|
-V, --version Prints version information
|
2017-09-25 16:41:14 +03:00
|
|
|
|
|
|
|
OPTIONS:
|
2017-11-22 16:48:06 +03:00
|
|
|
-a, --address <address> Sets the IP address to bind to [default: 127.0.0.1]
|
|
|
|
-p, --port <port> Sets the listening port [default: 8080]
|
2017-09-25 16:41:14 +03:00
|
|
|
|
|
|
|
ARGS:
|
|
|
|
<DATABASE> Sets the database file to use
|
|
|
|
|
2017-09-25 17:47:13 +03:00
|
|
|
Sausagewiki will create an SQLite database file with the filename given in the
|
2017-10-30 16:59:39 +03:00
|
|
|
`DATABASE` parameter and open an HTTP server bound to the configured address,
|
|
|
|
`<address>:<port>`.
|