fileshelter.conf 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # Fileshelter Sample configuration file
  2. # Working directory (must have write privileges)
  3. working-dir = "/var/lib/fileshelter";
  4. # Log files, empty means stderr
  5. log-file = "";
  6. access-log-file = "";
  7. # Logger configuration, see log-config in https://webtoolkit.eu/wt/doc/reference/html/overview.html#config_general
  8. log-config = "* -debug -info:WebRequest";
  9. # Default validity duration for a share
  10. default-validity-days = 30;
  11. # Set if a user can define the validity duration for its share.
  12. user-defined-validy-days = false;
  13. # Max validity duration for a share, in days. Must be greater than 0
  14. max-validity-days = 30;
  15. # Default number of downloads for a share. 0 means unlimited
  16. default-validity-hits = 0;
  17. # Set if a user can define the maximum number of downloads for its share.
  18. user-defined-validy-hits = false;
  19. # Max number of downloads for a share that the user can set. 0 means unlimited
  20. max-validity-hits = 0;
  21. # Maximum size of the files to be uploaded, in megabytes
  22. max-file-size = 51200;
  23. # Required password to upload files. The user must provide one of the specified passwords to updload files
  24. # Leave it empty if no password is required
  25. # Ex:
  26. # upload-passwords =
  27. # (
  28. # "password1",
  29. # "password2"
  30. # );
  31. upload-passwords =
  32. (
  33. "{{ pass "file.wugi.info/upload" }}"
  34. );
  35. # Listen port/addr of the web server
  36. listen-port = 5091;
  37. listen-addr = "127.0.0.1";
  38. behind-reverse-proxy = true;
  39. # If enabled, these files have to exist and have correct permissions set
  40. tls-enable = false;
  41. tls-cert = "/var/fileshelter/cert.pem";
  42. tls-key = "/var/fileshelter/privkey.pem";
  43. tls-dh = "/var/fileshelter/dh2048.pem";
  44. # Application settings
  45. app-name = "file.wugi.info";
  46. # You may use your own ToSs by setting this
  47. # tos-custom = "/path/to/some/tos.html"
  48. # default ToS placeholders
  49. tos-org = "**[ORG]**";
  50. tos-url = "**[DEPLOY URL]**/tos";
  51. tos-support-email = "**go.wigust@gmail.com**";
  52. # Location for deployment
  53. deploy-path = "/"
  54. # Path to the resources used by the web interface
  55. docroot = "/usr/share/fileshelter/docroot/;/resources,/css,/images,/favicon.ico";
  56. approot = "/usr/share/fileshelter/approot";
  57. wt-resources = "/usr/share/Wt/resources";
  58. # Bcrypt count parameter used to hash passwords
  59. bcrypt-count = 12;