-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.moon
69 lines (59 loc) · 1.86 KB
/
config.moon
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
config = require 'lapis.config'
secrets = require 'secrets'
config {'development', 'development-perftest'}, ->
mysql ->
host '127.0.0.1'
user 'csweek'
password 'csweek'
database 'csweek'
smtp_server 'smtp.zoho.eu'
smtp_port 587
smtp_username secrets.mail_user
smtp_password secrets.mail_password
smtp_from 'Nedelja informatike <[email protected]>'
smtp_from_newsletter 'Nedelja informatike <[email protected]>'
port 8080
num_workers 1
code_cache 'on'
pid_file 'nginx.pid'
log_file 'logs/error.log'
log_level 'debug'
listen_address '127.0.0.1'
secret 'this is not so secret!'
content_prefix '../content/'
filesize_limit 6 * 15 * 1024 * 1024 + 1024
single_file_limit 15 * 1024 * 1024
disable_email_confirmation true
email_cooldown 20
uploads_dir 'uploads'
applications_enabled false
config {'production', 'production-perftest' }, ->
mysql ->
host '127.0.0.1'
user secrets.mysql_user
password secrets.mysql_password
database secrets.mysql_db
smtp_server 'smtp.zoho.eu'
smtp_port 587
smtp_username secrets.mail_user
smtp_password secrets.mail_password
smtp_from 'Nedelja informatike <[email protected]>'
smtp_from_newsletter 'Nedelja informatike <[email protected]>'
port 8989
num_workers 1
code_cache 'on'
pid_file '/var/run/nginx/nginx.pid'
log_file '/var/log/nginx/error.log'
log_level 'debug'
listen_address '127.0.0.1'
secret secrets.app_secret
content_prefix 'content/'
filesize_limit 6 * 15 * 1024 * 1024 + 1024
single_file_limit 15 * 1024 * 1024
disable_email_confirmation true
email_cooldown 30 * 60
uploads_dir 'uploads'
applications_enabled false
config {'development-perftest', 'production-perftest'}, ->
code_cache 'on'
measure_performance -> true