mirror of
https://github.com/mastodon/mastodon.git
synced 2024-06-01 19:31:08 +00:00
Merge dcc67e86a6
into 2da2a1dae9
This commit is contained in:
commit
9738e904f8
|
@ -43,6 +43,7 @@ Rails.application.configure do
|
|||
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
||||
config.force_ssl = true
|
||||
config.ssl_options = {
|
||||
hsts: { preload: ENV['HSTS_PRELOAD'] == 'true' },
|
||||
redirect: {
|
||||
exclude: ->(request) { request.path.start_with?('/health') || request.headers['Host'].end_with?('.onion') || request.headers['Host'].end_with?('.i2p') },
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue