-
Notifications
You must be signed in to change notification settings - Fork 0
/
site_setup.rb
40 lines (37 loc) · 1.16 KB
/
site_setup.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
enable :sessions
set :session_secret, "RAGEGAMINGVIDEOSpinkflufflyunicornsdancingonrainbowsgravyandtoastcaptainsparklestobuscuspewdiepie98impossiblethepianoguyslindseystirlingHISHE"
set :show_exceptions, development?
set :sessions, :expire_after => 172800 #2 days
use Rack::Deflater
use Rack::Recaptcha,
:public_key => "6LdFEOYSAAAAAA_6NyMPwmh1hyr4ASVtuCxLJGly",
:private_key => "6LdFEOYSAAAAAMnPVGsLJA-a7h5hQvO-DjT-YCZc"
helpers Rack::Recaptcha::Helpers
if not development?
puts "ASSUMING ON PRODUCTION SERVER"
Pony.options = {
:via => :smtp,
:via_options => {
:address => 'smtp.sendgrid.net',
:port => '587',
:domain => 'storybouncer.com',
:user_name => ENV['SENDGRID_USERNAME'],
:password => ENV['SENDGRID_PASSWORD'],
:authentication => :plain,
:enable_starttls_auto => true
},
:from => "[email protected]"
}
else
puts "assuming dev server"
Pony.options = {
:via => :smtp,
:via_options => {
:address => 'localhost',
:port => '1025',
},
:from => "[email protected]"
}
end
$site_name = "www.storybouncer.com"
$development = development?