This repository has been archived by the owner on Jun 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 317
/
application_config.rb
executable file
·173 lines (157 loc) · 4.35 KB
/
application_config.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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
configatron.configure_from_hash(
:app_host => "example.com", #override this in your application.yml
:community_name => "Community",
:community_tagline => "CommunityEngine Rocks!",
:community_description => "The Best Place for People Who Love Communities",
:support_email => "[email protected]",
:meta_description => 'A description of your community for use in META tags.',
:meta_keywords => 'keywords for use in META tags',
# Comment this out if you want to infer the locale
# off of the http headers
:community_locale => "en",
:allow_anonymous_commenting => false,
:allow_anonymous_forum_posting => false,
:require_captcha_on_signup => false,
#:recaptcha_pub_key => YOUR_PUB_KEY,
#:recaptcha_priv_key => YOUR_PRIV_KEY,
# uncomment these keys if you turn captcha on for commenting, forums or signup
#:akismet_key => YOUR_KEY,
# uncomment this if you want to use akismet for comment filtering. Go to http://en.wordpress.com/api-keys/
#uncomment below to use omniauth providers for login and signup
# :auth_providers => {
# :twitter => {:key => 'key', :secret => 'secret'},
# :facebook => {:key => 'key', :secret => 'secret'}
# },
# for SEO reasons sometimes you should control the robots on how they have to handle your content
# listing of stuff which points to single posts or entries should normally not been indexed,
# but the robot should follow the internal link to show the post
:robots_meta_list_content => 'noindex,follow',
# the post itself should be indexed;
# when links are included and they point to external sites, the robot should not follow
:robots_meta_show_content => 'index,nofollow',
# min and max age for users to use the site
:min_age => 16,
:max_age => 90,
:authlogic => {
:password_length => 6..20,
:login_length => 5..100,
:email_length => 3..100,
:email_case_sensitive => true
},
:regexes => {
:login => /\A[\sA-Za-z0-9_-]+\z/,
:email => /\A([^@\s]+)@((?:[-a-z0-9A-Z]+\.)+[a-zA-Z]{2,})\z/
},
:photo => {
:missing_thumb => 'icon_missing_thumb.gif',
:missing_medium => "icon_missing_medium.gif",
:paperclip_options => {
:default_url => "",
:path => "#{Rails.root}/public/system/:attachment/:id/:style/:filename",
:url => "/system/:attachment/:id/:style/:filename",
:styles => {
:thumb => {
:geometry => "100x100#",
:processors => [:cropper]
},
:medium => {
:geometry => "290x320#",
:processors => [:cropper]
},
:large => "465>"
}
},
:validation_options => {
:max_size => 3,
:content_type => ['image/jpg', 'image/jpeg', 'image/pjpeg', 'image/gif', 'image/png', 'image/x-png']
}
},
:feature => {
:use_thumbs => true,
:paperclip_options => {
:styles => {
:original => '465>',
:thumb => "45x45#",
:large => "635x150#"
}
},
:validation_options => {
:max_size => 3,
:content_type => ['image/jpg', 'image/jpeg', 'image/pjpeg', 'image/gif', 'image/png', 'image/x-png']
}
},
:clipping => {
:paperclip_options => {
:styles => {
:thumb => "100x100#",
:medium => "290x320#",
:large => "465>"
}
},
:validation_options => {
:max_size => 3,
:content_type => ['image/jpg', 'image/jpeg', 'image/pjpeg', 'image/gif', 'image/png', 'image/x-png']
}
},
:reserved_logins => [
'account',
'activities',
'admin',
'advertise',
'ads',
'application',
'assets',
'authorizations',
'base',
'categories',
'choices',
'clippings',
'clipping_images',
'comments',
'countries',
'events',
'favorites',
'featured',
'forums',
'friendships',
'friendship_statuses',
'home',
'homepage_features',
'images',
'invitations',
'javascripts',
'login',
'logout',
'manage_photos',
'messages',
'metro_areas',
'moderatorships',
'monitorships',
'new_clipping',
'pages',
'photos',
'polls',
'popular',
'popular_rss',
'posts',
'recent',
'roles',
'rsvps',
'sb_posts',
'search',
'sessions',
'signup',
'sitemap',
'site_index',
'sb_posts',
'sitemap',
'states',
'statistics',
'stylesheets',
'tags',
'theme',
'topics',
'users',
'votes'
]
)