summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md18
1 files changed, 17 insertions, 1 deletions
diff --git a/README.md b/README.md
index 231cc51..512453c 100644
--- a/README.md
+++ b/README.md
@@ -19,7 +19,7 @@ Vault comes with a Makefile:
$ make
# make install
-The vault binary will be installed as `/var/www/cgi-bin/vault`. You need to configure your web server accordingly. If the log file does not exist, you need to create it. Here is how to do it for a default installation:
+The vault binary will be installed as `/var/www/cgi-bin/vault`. Static resources will be installed in `/var/www/vault-static` and should be served from `/static`. You need to configure your web server accordingly, see below for a sample file. If the log file does not exist, you need to create it. Here is how to do it for a default installation:
# mkdir -p /var/www/var/log
# touch /var/www/var/log/vault.log
@@ -28,3 +28,19 @@ The vault binary will be installed as `/var/www/cgi-bin/vault`. You need to conf
By default on OpenBSD, the `slowcgi(8)` daemon allows a timeout of 2 minutes for CGI programs. This might not be enough if you want to allow users to download large files. This timeout can be increased by changing the `slowcgi(8)` parameters in `/etc/rc.conf.local`, for example to allow up to 10 minutes :
slowcgi_flags="-t 600"
+
+## Sample httpd.conf
+
+ server "server" {
+ listen on * port 80
+ connection timeout 540
+ location "/cgi-bin/vault/*" {
+ fastcgi
+ root "/"
+ }
+ location "/static/*" {
+ root "/vault-static"
+ request strip 1
+ gzip-static
+ }
+ }