-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'next-minor' into develop
- Loading branch information
Showing
5 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<policymap> | ||
<policy domain="resource" name="time" value="30" /> | ||
<policy domain="resource" name="disk" value="256MiB"/> | ||
<policy domain="resource" name="map" value="256MiB"/> | ||
<policy domain="resource" name="memory" value="256MiB"/> | ||
|
||
<policy domain="resource" name="height" value="56K"/> | ||
<policy domain="resource" name="width" value="56K"/> | ||
|
||
<policy domain="filter" rights="none" pattern="*" /> | ||
<policy domain="path" rights="none" pattern="@*" /> | ||
|
||
<policy domain="coder" rights="none" pattern="*" /> | ||
<policy domain="delegate" rights="none" pattern="*" /> | ||
<policy domain="module" rights="none" pattern="*" /> | ||
|
||
<!-- Image formats currently supported by diaspora*. --> | ||
<policy domain="coder" rights="read | write" pattern="{GIF,JPEG,JPG,PNG,WEBP}" /> | ||
<policy domain="module" rights="read | write" pattern="{GIF,JPEG,JPG,PNG,WEBP}" /> | ||
|
||
<!-- Required for our captchas --> | ||
<policy domain="coder" rights="read | write" pattern="LABEL" /> | ||
<policy domain="module" rights="read | write" pattern="LABEL" /> | ||
</policymap> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# frozen_string_literal: true | ||
|
||
# This is based on Mastodon doing the same, see | ||
# https://github.com/mastodon/mastodon/blob/610cf6c3713e414995ea1a57110db400ccb88dd2/config/initializers/paperclip.rb#L157-L162 | ||
# At the time of writing, Mastodon is also licensed under the AGPL, see https://github.com/mastodon/mastodon/blob/610cf6c3713e414995ea1a57110db400ccb88dd2/LICENSE | ||
# so the following snippet is Copyright (C) 2016-2022 Eugen Rochko & other Mastodon contributors. | ||
ENV["MAGICK_CONFIGURE_PATH"] = begin | ||
imagemagick_config_paths = ENV.fetch("MAGICK_CONFIGURE_PATH", "").split(File::PATH_SEPARATOR) | ||
imagemagick_config_paths << Rails.root.join("config/imagemagick").expand_path.to_s | ||
imagemagick_config_paths.join(File::PATH_SEPARATOR) | ||
end | ||
# end of Mastodon snippet |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters