From 8cb9bc7e4d516a27b4fe27ba0d0a9c40497e003d Mon Sep 17 00:00:00 2001 From: pdp8 Date: Mon, 14 Aug 2023 17:42:57 +0200 Subject: undo/delete activities for outbox posts, cleanup --- application.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'application.rb') 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 -- cgit v1.2.3