file2link/config.yaml.dist

58 lines
1.9 KiB
Text
Raw Normal View History

2019-11-18 22:36:13 +00:00
shortTitle: "File 2 Link"
title: "A file against a temporary link"
backgroundImage: https://picsum.photos/1024/768?random=1
baseUrl: https://yoururl.tdl/
uploadDir: files # Dir in Read/Write accès
expireCron: web # 'web' or 'cli'
expireCronFreq: 86400 # juste for cron web, in second (exemple 86400 = 1j)
expireDay:
- 1
- 7
- 30
- 90
- 180
- 365
expireDayDefault : 7
imageResize: # Propose resize images
- 0 # 0 = no resize
- 300
- 800
- 1024
- 2048
- 4096
imageResizeDefault : 1024
maxUploadPerFile: 30M # Exemple 100K, 30M, 12G
maxUploadTotal: 90M # Exemple 100K, 30M, 12G
maxUploadNb: 100
mimeTypesConduct: allow # allow = Allow this, deny the rest / deny = Deny this, allow the rest
mimeTypes: # pattern for pgrep_match https://www.php.net/manual/function.preg-match.php
- ^text\/
- ^image\/
- ^audio\/
- ^video\/
- ^font\/
- ^application\/x-bzip
- ^application\/x-csh$
- ^application\/msword$
- ^application\/vnd.openxmlformats-officedocument.
- ^application\/epub+zip$
- ^application\/vnd.oasis.opendocument.
- ^application\/ogg
- ^application\/pdf$
- ^application\/x-rar-compressed$
- ^application\/vnd.ms-powerpoint$
- ^application\/x-tar$
- ^application\/vnd.visio$
- ^application\/vnd.ms-excel$
- ^application\/zip$
- ^application\/x-7z-compressed$
similarServicesView: true
similarServicesLink:
- <a href="https://send.firefox.com">Firefox Send</a>
- <a href="https://toffeeshare.com/">ToffeeShare</a>
- <a href="https://envelop.app/">Envelop</a>
- <a href="https://framadrop.org/">Framadrop</a>
htmlPages: # This page is search in dir "htmlPages/$name.html" clear if you wan't disable
cgu: CGU # Print page "htmlPages/cgu.html"
checkUpdate: 86400 # in seconds or "false" for disable