123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- # Fileshelter Sample configuration file
- # Working directory (must have write privileges)
- working-dir = "/var/lib/fileshelter";
- # Log files, empty means stderr
- log-file = "";
- access-log-file = "";
- # Logger configuration, see log-config in https://webtoolkit.eu/wt/doc/reference/html/overview.html#config_general
- log-config = "* -debug -info:WebRequest";
- # Default validity duration for a share
- default-validity-days = 30;
- # Set if a user can define the validity duration for its share.
- user-defined-validy-days = false;
- # Max validity duration for a share, in days. Must be greater than 0
- max-validity-days = 30;
- # Default number of downloads for a share. 0 means unlimited
- default-validity-hits = 0;
- # Set if a user can define the maximum number of downloads for its share.
- user-defined-validy-hits = false;
- # Max number of downloads for a share that the user can set. 0 means unlimited
- max-validity-hits = 0;
- # Maximum size of the files to be uploaded, in megabytes
- max-file-size = 51200;
- # Required password to upload files. The user must provide one of the specified passwords to updload files
- # Leave it empty if no password is required
- # Ex:
- # upload-passwords =
- # (
- # "password1",
- # "password2"
- # );
- upload-passwords =
- (
- "{{ pass "file.wugi.info/upload" }}"
- );
- # Listen port/addr of the web server
- listen-port = 5091;
- listen-addr = "127.0.0.1";
- behind-reverse-proxy = true;
- # If enabled, these files have to exist and have correct permissions set
- tls-enable = false;
- tls-cert = "/var/fileshelter/cert.pem";
- tls-key = "/var/fileshelter/privkey.pem";
- tls-dh = "/var/fileshelter/dh2048.pem";
- # Application settings
- app-name = "file.wugi.info";
- # You may use your own ToSs by setting this
- # tos-custom = "/path/to/some/tos.html"
- # default ToS placeholders
- tos-org = "**[ORG]**";
- tos-url = "**[DEPLOY URL]**/tos";
- tos-support-email = "**go.wigust@gmail.com**";
- # Location for deployment
- deploy-path = "/"
- # Path to the resources used by the web interface
- docroot = "/usr/share/fileshelter/docroot/;/resources,/css,/images,/favicon.ico";
- approot = "/usr/share/fileshelter/approot";
- wt-resources = "/usr/share/Wt/resources";
- # Bcrypt count parameter used to hash passwords
- bcrypt-count = 12;
|