forked from sigscale/usekeeper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsys.config.in
50 lines (50 loc) · 1.94 KB
/
sys.config.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
[{usekeeper, []},
{mnesia,
[{dir, "db"}]},
{sasl,
[{sasl_error_logger, {file, "log/sasl/sasl.log"}},
{errlog_type, error},
{error_logger_mf_dir, "log/sasl"},
{error_logger_mf_maxbytes, 10485760},
{error_logger_mf_maxfiles, 10}]},
{inets,
[{services,
[{httpd,
[{server_name, "sigscale-usekeeper"},
{directory_index, ["index.html"]},
{directory, {"/",
[{auth_type, mnesia},
{auth_name, "usekeeper.org"},
{require_group, ["staff"]}]}},
{disk_log_format, internal},
{transfer_disk_log, "log/http/transfer"},
{security_disk_log, "log/http/security"},
{error_disk_log, "log/http/error"},
{transfer_disk_log_size, {10485760, 10}},
{error_disk_log_size, {10485760, 10}},
{security_disk_log_size, {10485760, 10}},
{modules,
[mod_alias,
mod_auth,
mod_responsecontrol,
mod_usekeeper_rest_accepted_content,
mod_usekeeper_rest_get,
mod_usekeeper_rest_post,
mod_usekeeper_rest_delete,
mod_usekeeper_rest_patch,
mod_get,
mod_disk_log]},
{mime_types,
[{"html", "text/html"},
{"css", "text/css"},
{"js", "application/javascript"},
{"json", "application/json"},
{"csv", "text/csv"}]},
{port, 8080},
{socket_type, ip_comm},
% {socket_type, {essl,
% [{certfile, "ssl/cert.pem"},
% {keyfile, "ssl/key.pem"}]}},
{server_root, "./"},
{alias, {"/doc", "@ERLANG_INSTALL_LIB_DIR@/@PACKAGE@-@VERSION@/doc"}},
{document_root, "@ERLANG_INSTALL_LIB_DIR@/@PACKAGE@-@VERSION@/priv/www"}]}]}]}].