summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Douillet <vincent@vdouillet.fr>2025-02-14 12:04:23 +0100
committerVincent Douillet <vincent@vdouillet.fr>2025-02-14 12:05:49 +0100
commitf9a16b55db60f2f7c6065c5a94ee7e4aaac3f16b (patch)
treea769b7f9de6d1f1d2b0b9834a3f3421d2f2a0213
parent095b5675df915002b00a2b3f7ba0e95fde7638b5 (diff)
move log file to existing folder
-rw-r--r--README.md5
-rw-r--r--config.h2
2 files changed, 3 insertions, 4 deletions
diff --git a/README.md b/README.md
index 26597bf..e7747dd 100644
--- a/README.md
+++ b/README.md
@@ -21,9 +21,8 @@ Vault comes with a Makefile:
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
- # chown www /var/www/var/log/vault.log
+ # touch /var/www/logs/vault.log
+ # chown www /var/www/logs/vault.log
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 :
diff --git a/config.h b/config.h
index edb494b..4920d42 100644
--- a/config.h
+++ b/config.h
@@ -36,7 +36,7 @@
* otherwise it will quit with an error.
*/
#ifndef LOG_FILE
-#define LOG_FILE "/var/log/vault.log"
+#define LOG_FILE "/logs/vault.log"
#endif
/* The directory that contains the HTML template files */