forked from redknitin/Helpdesk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp_config.defaults.rb
112 lines (104 loc) · 3.3 KB
/
app_config.defaults.rb
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#
# NOTES
#
# Use rackup and pass command-line parameters for host, port, server instead of set :bind and set :port - see runme.bat for an example
#
# This file is a part of the code repository, so you can define environment-specific config in app_config.env.rb
# If you create app_config.env.rb , this configuration file will not be loaded - use a copy of this file as a
# template to build your environment-specific configuration file to ensure all settings have been specified
#
class AppConfig
#
# Database settings
#
DB_URL = (ENV['MONGODB_URI'] != nil && ENV['MONGODB_URI'] != '') ? ENV['MONGODB_URI'] : 'mongodb://127.0.0.1:27017/helpdesk' #mongodb://user:[email protected]:27017/helpdesk
#
# Master data for the application
#
MASTER_LOC_STRUCT = [
{
:code => 'KATCO',
:name => 'Kat Corp',
:type => 'Organization',
:children => [
{
:code => 'DXBBR',
:name => 'Dubai Branch',
:type => 'Site',
:children => [
{
:code => 'B01-ADM',
:name => 'Administration Building',
:type => 'Building',
:children => [
{
:code => 'B01-ADM_F01',
:name => '1st Floor',
:type => 'Floor',
:children => [
{
:code => 'RM101',
:name => 'Tech Support Root',
:type => 'Room',
:children => [] #We don't need assets now; reserve this field for future
}
]
}
]
}
]
},
{
:code => 'SHJBR',
:name => 'Sharjah Branch',
:type => 'Site'
},
]
},
{
:code => 'REDCO',
:name => 'Red Corp',
:type => 'Organization',
:children => [
{
:code => 'DXBBR',
:name => 'Dubai Branch',
:type => 'Site'
},
{
:code => 'AUHBR',
:name => 'Abu Dhabi Branch',
:type => 'Site'
},
]
},
]
#Replace MASTER_BLDG_FLOOR with MASTER_LOC_STRUCT
MASTER_BLDG_FLOOR = [
{:building => 'Building 01', :floors => ['Roof Top', '2nd Floor (2)', '1st Floor (1)', 'Ground Floor (0)', 'Lower Ground (B1/-1)', 'Basement 1 (B2/-2)', 'Basement 2 (B3/-3)']},
{:building => 'Building 02', :floors => ['2nd Floor (2)', '1st Floor (1)', 'Ground Floor (0)', 'Lower Ground (B1/-1)', 'Basement 1 (B2/-2)']}
]
MASTER_ORG_DEPT = [
{:org => 'Apache Foundation', :dept => ['Software Development', 'Quality Control']},
{:org => 'Canonical', :dept => ['System Administration', 'Marketing']}
]
#
# Email settings
#
# MAIL_SMTP_HOST = 'localhost'
# MAIL_SMTP_PORT = 25
# MAIL_SMTP_USER = ''
# MAIL_SMTP_PASS = ''
# MAIL_SMTP_AUTH = :plain
# MAIL_SMTP_STARTTLS = true
# MAIL_SMTP_HOST = 'smtp.mailtrap.io'
# MAIL_SMTP_PORT = 25
# MAIL_SMTP_USER = ''
# MAIL_SMTP_PASS = ''
# MAIL_SMTP_AUTH = :cram_md5
# MAIL_SENDER_NAME = 'Helpdesk'
# MAIL_SENDER_EMAIL = '[email protected]'
UPLOAD_DIR = 'public/uploads'
UPLOAD_FILE_EXTS = ['.doc', '.docx', '.xls', '.xlsx', '.pdf', '.eml', '.jpg', '.png', '.jpeg', '.tif']
UPLOAD_MAX_SIZE = 2000000 #In bytes
end