diff options
author | tenox <as@tenoware.com> | 2016-01-12 00:17:31 -0800 |
---|---|---|
committer | tenox <as@tenoware.com> | 2016-01-12 00:17:31 -0800 |
commit | 1940891c5ad2618508e35176d78783f7c04b9cab (patch) | |
tree | 903c60a8850e4c2bdadf3f3500d3fd4333be3c0d | |
parent | 245eaad379742cc0ba9992c858523664b02102fb (diff) | |
download | wfm-1940891c5ad2618508e35176d78783f7c04b9cab.tar.gz |
sample cfg and readme file update
-rw-r--r-- | README | 47 | ||||
-rw-r--r-- | wfm.cfg | 1 |
2 files changed, 46 insertions, 2 deletions
@@ -13,7 +13,7 @@ lightning fast execution time it's ideal for small and embedded systems. History ======= -WFM has been conceived around 1994 as a perl cgi script for CERN httpd +The application begun its life in 1994 as a perl cgi script for CERN httpd server to allow uploading data files by field support engineers. Later rewritten in C language, when CGIC library and Apache httpd were released around 1996. Up to 2015 WFM has been a closed source commercial application, @@ -32,12 +32,55 @@ directory. Include a config file of the same name as the binary file plus wfm wfm.cfg -Edit the cfg file according to your needs. +Edit the .cfg file according to your needs. Point your browser to http://x.x.x.x/cgi-bin/wfm and you are done. Configuration ============= +This application was designed with multiple instances in mind. An instance +is made by copying or linking WFM binary with a different name. In advanced +configuration different instances can suexec to different users. + +In a more basic form each instance reads it's configuration file of +instance name + .cfg extenstion from the current working directory. +For instance if you decide to use "ftpadmin" as name of the executable +(or link) it will read file named "ftpadmin.cfg" for the configuration. +Below is a simple, self explanatory configuration file example: + +# tagline or application name +tagline=Web File Manager + +# home directory +directory=/home/tenox/wfm10 + +# recursively summarize directory sizes - only enable if you have +# fast disk (SSD) or a small directory tree structure +#recursive-du=true + +# When clicking on txt file - edit instead of download by default +#txt-default-edit=true + +# Edit any file as it was txt +edit-any-file=false + +# optional browser url prefix - aka "external link" - if defined, file +# names will be glued to it giving option to be opened directly with the +# external link button without going through cgi routines +browser-url=http://x.x.x.x/files/ + +# access lists - ace type is either access-ip or access-user +# mixable, eg access-ip=ro:* with number of access-user=rw +# level is ro|rw, one host or username per line * denotes all hosts +# user is username:password combination +access-ip=ro:* +access-ip=rw:127.0.0.1 +access-user=ro:guest:secret +access-user=rw:admin:password + +If you use mixed ro/rw access for instance ip=ro:* and user=rw:admin +then in order to authenticate click on the lock sign on right side of +the top status bar. Copyrights ========== @@ -24,5 +24,6 @@ browser-url=http://x.x.x.x/files/ # level is ro|rw, one host or username per line * denotes all hosts # user is username:password combination access-ip=ro:* +access-ip=rw:127.0.0.1 access-user=ro:guest:secret access-user=rw:admin:password |