diff options
Diffstat (limited to 'application.rb')
-rw-r--r-- | application.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/application.rb b/application.rb index 8a62fdd..a03d98c 100644 --- a/application.rb +++ b/application.rb @@ -3,6 +3,8 @@ require 'uri' require 'base64' require 'digest/sha2' +require 'rack/protection' +# require 'rack/contrib' require 'sinatra' SOCIAL_DIR = '/srv/social/' @@ -27,7 +29,14 @@ FOLLOWERS_URL = 'https://social.pdp8.info/followers' CONTENT_TYPE = 'application/activity+json' # CONTENT_TYPE = 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"' +use Rack::Protection +# use Rack::MailExceptions do |mail| +# mail.to 'info@pdp8.info' +# mail.smtp false +# end + enable :sessions +set :environment, :production set :session_secret, File.read('.secret').chomp set :default_content_type, CONTENT_TYPE set :port, 9292 |