Skip to content

Commit c88b96e

Browse files
committed
Add an example config just for sqlite
1 parent 333e65f commit c88b96e

File tree

1 file changed

+142
-0
lines changed

1 file changed

+142
-0
lines changed

config/filez.ini.example.sqlite

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
2+
3+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4+
; General configuration
5+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6+
[app]
7+
use_url_rewriting = true
8+
9+
; Must be writtable by the web server
10+
upload_dir = /var/fz_uploads
11+
12+
; Must be writtable by the web server
13+
log_dir = /var/log
14+
15+
; Allow downloading file sent with filez 1.x
16+
filez1_compat = true
17+
18+
; Max and default lifetime of a file on the server
19+
max_file_lifetime = 20
20+
default_file_lifetime = 10
21+
22+
; Maximum number of days the lifetime of a file can be extended
23+
max_extend_count = 7
24+
25+
; Min/Max size of files hash codes
26+
min_hash_size = 4
27+
max_hash_size = 6
28+
29+
; Default langage when no translation exists for the user locale
30+
default_locale = fr
31+
32+
; Name of the class used to authenticate the user. Built-in handler are :
33+
; * Fz_Controller_Security_Cas Log the user against a CAS server
34+
; * Fz_Controller_Security_Internal Log the user with a built-in Controller.
35+
; This controller will check user/pass with
36+
; 'login' method in the user factory.
37+
auth_handler_class = Fz_Controller_Security_Internal
38+
39+
; Name of the class used to identify the user. Built-in factories are :
40+
; * Fz_User_Factory_Ldap
41+
; * Fz_User_Factory_Database
42+
user_factory_class = Fz_User_Factory_Database
43+
44+
; Max disk spaced per user. Support shorthand format : M (Mega), G (Giga)
45+
user_quota = 2G
46+
47+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
48+
; Cron Job
49+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
50+
[cron]
51+
; Number of days before before sending the notification mail for deletion
52+
days_before_expiration_mail = 2
53+
54+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
55+
; Look'n feel
56+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
57+
[looknfeel]
58+
; Logo image
59+
your_logo = "resources/images/uapv-logo.gif"
60+
61+
; Custom CSS
62+
; custom_css = "resources/css/custom.css"
63+
64+
; show filez credits at the bottom of the pages
65+
show_credit = true
66+
67+
; Url where the user will find Filez documentation
68+
help_url = help ; Relative or absolute
69+
70+
; Where does the user reports bug ?
71+
bug_report_href = mailto:some-one@somewhere.com ; or http://your-bug-tracker.com
72+
73+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
74+
; Database configuration
75+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
76+
[db]
77+
dsn = "mysql:host=localhost;dbname=filez"
78+
db_dialect = "Sqlite"
79+
80+
81+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
82+
; Mail configuration
83+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
84+
[email]
85+
from_email=filez@univ-avignon.fr
86+
from_name=Filez
87+
host=smtp.univ-avignon.fr
88+
; auth=login ; possible values = crammd5, login, plain
89+
; port=25
90+
; username=user
91+
; password=pwd
92+
93+
94+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
95+
; Authentication configuration
96+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
97+
[auth_options]
98+
; Parameters for the CAS authentication handler.
99+
;cas_server_host = cas.univ-avignon.fr
100+
101+
102+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
103+
; Identification configuration
104+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
105+
[user_factory_options]
106+
; Parameters passed to the Ldap user factory.
107+
; Available parameters : http://framework.zend.com/manual/en/zend.ldap.api.html
108+
;host = ldap.univ-avignon.fr
109+
;useSsl = false
110+
;baseDn = "ou=people,dc=univ-avignon,dc=fr"
111+
;bindRequiresDn = true
112+
113+
; Parameters for the Database user factory
114+
db_use_global_conf = false
115+
db_server_dsn = "sqlite:/path_to_FileZ/config/db/filez.db"
116+
db_table = user
117+
db_password_field = password
118+
db_username_field = username
119+
db_password_algorithm = sha1; use the sha1 function of PHP
120+
; Possible algorithm are :
121+
; - MD5 (unsecure)
122+
; - SHA1 (unsecure)
123+
; - PHP Function name ex: "methodName"
124+
; - PHP Static method ex: "ClassName::Method"
125+
; - Plain SQL ex: "password=SHA1(CONCAT(salt, :password))"
126+
127+
[user_attributes_translation]
128+
; In order to make the application schema agnostic with differents user storage
129+
; facilities, each user attributes is translated from its original name to the
130+
; application name. The syntax is as follow : application_name = original_name.
131+
; This attributes are required by filez :
132+
; * firstname
133+
; * lastname
134+
; * email
135+
; * id
136+
; Exemple for a sqlite, the translation seems pointless but something
137+
; in the code insists on having this otherwise it tries to do some
138+
; field conversion
139+
email = email
140+
firstname = firstname
141+
lastname = lastname
142+
id = id

0 commit comments

Comments
 (0)