diff options
| author | Vincent Douillet <vincent@vdouillet.fr> | 2024-02-20 21:17:01 +0100 | 
|---|---|---|
| committer | Vincent Douillet <vincent@vdouillet.fr> | 2024-02-20 22:13:53 +0100 | 
| commit | 0effd40bad7ae753102e7040159afd76be4e8732 (patch) | |
| tree | 20c80821ba637a395d8874414e00f4d120a837ea /README.md | |
| parent | 42f538cc66546997a166dbe67e489c9afabbb908 (diff) | |
browse: http page
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 18 | 
1 files changed, 17 insertions, 1 deletions
| @@ -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 +	    } +    } | 
