diff options
| author | Hakaba Hitoyo <hakabahitoyo@example.com> | 2018-11-15 14:04:09 +0900 |
|---|---|---|
| committer | Hakaba Hitoyo <hakabahitoyo@example.com> | 2018-11-15 14:04:09 +0900 |
| commit | 5c8b8f6cb7212bd202924b535cd2a263416e78d4 (patch) | |
| tree | 07ad2b2dd44189ae14a1ff44ff5a98013143866b /config/config.exs | |
| parent | 3484f687958f57ea5ce749135f78517ff12849d7 (diff) | |
| parent | cc45797f4e1765f5123c058166f6032c6a6556a0 (diff) | |
| download | pleroma-5c8b8f6cb7212bd202924b535cd2a263416e78d4.tar.gz pleroma-5c8b8f6cb7212bd202924b535cd2a263416e78d4.zip | |
Merge remote-tracking branch 'official/develop' into develop
Diffstat (limited to 'config/config.exs')
| -rw-r--r-- | config/config.exs | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/config/config.exs b/config/config.exs index 2d2cdda45..9cc558564 100644 --- a/config/config.exs +++ b/config/config.exs @@ -20,7 +20,8 @@ config :pleroma, Pleroma.Uploaders.Local, config :pleroma, Pleroma.Uploaders.S3, bucket: nil, - public_endpoint: "https://s3.amazonaws.com" + public_endpoint: "https://s3.amazonaws.com", + force_media_proxy: false config :pleroma, :emoji, shortcode_globs: ["/emoji/custom/**/*.png"] @@ -84,6 +85,9 @@ config :pleroma, :instance, description: "A Pleroma instance, an alternative fediverse server", limit: 5000, upload_limit: 16_000_000, + avatar_upload_limit: 2_000_000, + background_upload_limit: 4_000_000, + banner_upload_limit: 4_000_000, registrations_open: true, federating: true, allow_relay: true, @@ -172,6 +176,27 @@ config :pleroma, :suggestions, limit: 23, web: "https://vinayaka.distsn.org/?{{host}}+{{user}}" +config :pleroma, :http_security, + enabled: true, + sts: false, + sts_max_age: 31_536_000, + ct_max_age: 2_592_000, + referrer_policy: "same-origin" + +config :cors_plug, + max_age: 86_400, + methods: ["POST", "PUT", "DELETE", "GET", "PATCH", "OPTIONS"], + expose: [ + "Link", + "X-RateLimit-Reset", + "X-RateLimit-Limit", + "X-RateLimit-Remaining", + "X-Request-Id", + "Idempotency-Key" + ], + credentials: true, + headers: ["Authorization", "Content-Type", "Idempotency-Key"] + # Import environment specific config. This must remain at the bottom # of this file so it overrides the configuration defined above. import_config "#{Mix.env()}.exs" |
