Claire
6c0d73a675
Change default values for emoji limits in .env.production.sample and comment them out
2 years ago
Jeremy Kescher
25e076505e
ip_cleanup_scheduler: Make IP and session retention configurable ( #18757 )
2 years ago
Josh Soref
b5329e0035
Spelling ( #17705 )
* spelling: account
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: affiliated
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: appearance
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: autosuggest
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: cacheable
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: component
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: conversations
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: domain.example
Clarify what's distinct and use RFC friendly domain space.
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: environment
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: exceeds
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: functional
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: inefficiency
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: not
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: notifications
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: occurring
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: position
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: progress
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: promotable
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: reblogging
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: repetitive
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: resolve
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: saturated
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: similar
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: strategies
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: success
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: targeting
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: thumbnails
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: unauthorized
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: unsensitizes
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: validations
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: various
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
2 years ago
Claire
1b493c9fee
Add optional hCaptcha support
Fixes #1649
This requires setting `HCAPTCHA_SECRET_KEY` and `HCAPTCHA_SITE_KEY`, then
enabling the admin setting at
`/admin/settings/edit#form_admin_settings_captcha_enabled`
Subsequently, a hCaptcha widget will be displayed on `/about` and
`/auth/sign_up` unless:
- the user is already signed-up already
- the user has used an invite link
- the user has already solved the captcha (and registration failed for another
reason)
The Content-Security-Policy headers are altered automatically to allow the
third-party hCaptcha scripts on `/about` and `/auth/sign_up` following the same
rules as above.
2 years ago
Takeshi Umeda
06631fdc53
Fix ElasticSearch to Elasticsearch ( #17050 )
3 years ago
Claire
5ba46952af
Fix mastodon:setup to take dotenv/docker-compose differences into account ( #16896 )
In order to work around https://github.com/mastodon/mastodon/issues/16895 ,
add a warning to .env.production.sample, and change the mastodon:setup rake
task to:
- output a warning if a variable will be interpreted differently by dotenv
and docker-compose
- ensure the printed config is compatible with docker-compose
3 years ago
Jeong Arm
c8ce728705
Support authentication for ElasticSearch ( #16890 )
* Support authentication for ElasticSearch
* Fix chewy auth settings
3 years ago
Claire
a346912030
Add environment variables to control custom emoji size limits
Fixes #1524
3 years ago
leo60228
ca6c62068e
Support customizing poll option limits
3 years ago
夕日
58204175cc
Fix the wrong full documentation link ( #14293 )
4 years ago
Eugen Rochko
2f2ab48b75
Add back a cleaner and leaner .env.production.sample ( #14206 )
4 years ago
Thibaut Girka
3d7ce178dd
Use allow/deny-list instead of white/black-list in .env.production.sample
.env.production.sample has been nuked upstream, but we decided to keep it,
so change it to reflect latest changes in environment variable names.
(The link still refers to “whitelist_mode” because the documentation hasn't
been updated yet)
4 years ago
Eugen Rochko
8c04e37b03
Remove the terms blacklist and whitelist from UX ( #14149 )
Localization strings:
- "Whitelist mode" -> "Limited federation mode"
- "Blacklist e-mail domain" -> "Block e-mail domain"
- "Whitelist domain" -> "Allow domain for federation"
...And so on
Environment variables (backwards-compatible):
- `WHITELIST_MODE` -> `LIMITED_FEDERATION_MODE`
- `EMAIL_DOMAIN_BLACKLIST` -> `EMAIL_DOMAIN_DENYLIST`
- `EMAIL_DOMAIN_WHITELIST` -> `EMAIL_DOMAIN_ALLOWLIST`
tootctl:
- `tootctl domains purge --whitelist-mode` -> `tootctl domains purge --limited-federation-mode`
Removed badly maintained and no longer relevant .env.production.sample file
4 years ago
Denis Teyssier
73f3842284
Updated docker-compose snippet to a working one ( #13196 )
added 'bundle exec' before rake
4 years ago
Thibaut Girka
ccaefd139d
Add environment variable to specify extra data hosts
Fixes #1276
4 years ago
ThibG
27f9aa3477
Document AUTHORIZED_FETCH mode and WHITELIST_MODE ( #12856 )
* Document AUTHORIZED_FETCH mode and WHITELIST_MODE
* Replace extended description with a link to the online docs
4 years ago
Aries
44f88a334b
Fix sample SAML_ACS_URL, SAML_ISSUER ( #12669 )
4 years ago
Mathieu Brunot
bd8dc9bd0c
✨ Add an LDAP Mail attribute config ( #12053 )
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
5 years ago
Mathieu Brunot
d70268f099
✨ Convert LDAP username ( #12461 )
* ✨ Convert LDAP username #12021
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
* 🐛 Fix conversion var use
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
* 🐛 Fix LDAP uid conversion test
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
* 👌 Remove comments with ref to PR
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
* 👌 Remove unnecessary paranthesis
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
* 🔧 Move space in conversion string
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
5 years ago
Mathieu Brunot
b85fb6b5e7
Remove quotes in `LDAP_SEARCH_FILTER` example ( #12019 )
5 years ago
Yamagishi Kazutoshi
172eaeba3f
Add config of multipart threshold for S3 ( #11924 )
5 years ago
Hugo Gameiro
5466b39c78
Add SMTP reply_to option ( #11718 )
* Add SMTP_REPLY_TO in .env.production.sample
* Set reply_to in SMTP options
5 years ago
Lady Lumb
19c3a941e8
Added max search results var to sample env
Added and documented MAX_SEARCH_RESULTS to the .env.production.sample file
5 years ago
Thibaut Girka
81bf43cfdd
Change .env.production.sample to specify that MAX_VIDEO_SIZE also applies to audio files
5 years ago
Lady Lumb
1d5434d34c
Add audio length var to env sample
Added MAX_AUDIO_LENGTH var and documented in .env.production.sample
5 years ago
Lady Lumb
35c4ff07f4
Added various vars to env sample
Added several vars that are already implemented to the .env.production.sample file.
-Max bio character limit
-Number of profile fields allowed
-Max display name character limit
5 years ago
Lady Lumb
da7bcf29d4
Fixed the very wrong byte to megabyte conversion
5 years ago
Lady Lumb
a7b4e7efdd
Correctly documented max image and video vars
Added MAX_IMAGE_SIZE and MAX_VIDEO_SIZE and documented their usage.
5 years ago
Stanislas
a3c7dd92f3
Add ES_PREFIX in .env.production.sample ( #10087 )
5 years ago
Zac
5616200ed4
added documentation into .env.production.sample
moved max pin count into constant
5 years ago
M Somerville
2bba6e582d
Rename S3_CLOUDFRONT_HOST to S3_ALIAS_HOST. ( #8423 )
Still check for S3_CLOUDFRONT_HOST for existing installs.
6 years ago
Immae
b0f4fe456b
Add ldap search filter ( #8151 )
6 years ago
MIYAGI Hikaru
ddd0bb69e1
Merge `HIDDEN_SERVICE_VIA_TRANSPARENT_PROXY` into `ALLOW_ACCESS_TO_HIDDEN_SERVICE` ( #7901 )
If Mastodon accesses to the hidden service via transparent proxy, it's needed to avoid checking whether it's a private address, since `.onion` is resolved to a private address.
I was previously using the `HIDDEN_SERVICE_VIA_TRANSPARENT_PROXY` to provide that function. However, I realized that using `HIDDEN_SERVICE_VIA_TRANSPARENT_PROXY` is redundant, since this specification is always used with `ALLOW_ACCESS_TO_HIDDEN_SERVICE`. Therefore, I decided to integrate the setting of `HIDDEN_SERVICE_VIA_TRANSPARENT_PROXY` into` ALLOW_ACCESS_TO_HIDDEN_SERVICE`.
6 years ago
Akihiko Odaki
d95642f6d9
Cache attachments on external host with service worker ( #7493 )
6 years ago
Hugo Gameiro
ea4e243303
Improve OpenStack v3 compatibility ( #7392 )
* Update paperclip.rb
* Update .env.production.sample
* Update paperclip.rb
6 years ago
MIYAGI Hikaru
f58dcbc981
HTTP proxy support for outgoing request, manage access to hidden service ( #7134 )
* Add support for HTTP client proxy
* Add access control for darknet
Supress error when access to darknet via transparent proxy
* Fix the codes pointed out
* Lint
* Fix an omission + lint
* any? -> include?
* Change detection method to regexp to avoid test fail
6 years ago
Akihiko Odaki
4f9136d2d5
Document CORS requirement for asset host ( #6941 )
6 years ago
Alexander
33ee347c99
rename pam email environment variable to something more understandable and default to LOCAL_DOMAIN (better fallback) ( #6833 )
6 years ago
Eugen Rochko
675b8fea53
Adjust suggested ES host in .env sample for docker-compose config ( #6710 )
6 years ago
Effy Elden
dd9d00d293
Add additional first_name and last_name SAML attribute statement options, and modify Omniauthable concern to use full_name or first_name + last_name if not available ( #6669 )
6 years ago
Alexander
42fe05dea1
fix logic for pam_controlled_service ( #6599 )
6 years ago
Eugen Rochko
b4f8e87358
Add LDAP options to .env.production.sample ( #6592 )
6 years ago
Eugen Rochko
5cc716688a
Ensure the app does not even start if OTP_SECRET is not set ( #6557 )
* Ensure the app does not even start if OTP_SECRET is not set
* Remove PAPERCLIP_SECRET (it's not used by anything, actually)
Imports are for internal consumption and the url option isn't even
used correctly, so we can remove the hash stuff from them
6 years ago
Eugen Rochko
f0a1b1a152
Fix #6536 ( #6558 )
6 years ago
Ghislain Loaec
e668180044
New variable OAUTH_REDIRECT_AT_SIGN_IN + Ref #6538 (not only SAML strategies) ( #6540 )
6 years ago
Alexander
8fa924e372
Update pam documentation ( #6518 )
* document pam email extraction
* remove superfluous newline
6 years ago
Ghislain Loaec
3084fe4959
New env variable: SAML_SECURITY_ASSUME_EMAIL_IS_VERIFIED + fixes #6533 ( #6538 )
6 years ago
Eugen Rochko
3ebc0ad4d3
Full-text search for authorized statuses ( #6423 )
* Add full-text search for authorized statuses
- Search API will return statuses that match the query
- Only for logged in users
- Only if you are author of the status,
- Or you were mentioned in it
- Or you favourited or reblogged it
- Configuration over `ES_ENABLED`, `ES_HOST`, `ES_PORT`, `ES_PREFIX`
- Run `rails chewy:deploy` to create & populate index
Fix #5880
Fix #4293
Fix #1152
* Add commented out docker-compose configuration for ES container
* Optimize index import, filter search results
* Add basic normalization to the index
* Add better stemming and normalization to the index
* Skip webfinger request if search query includes both @ and a space
* Fix code style
* Visually separate search result sections
* Fix code style issues
6 years ago
Eugen Rochko
38e0133e1b
Make PAM gem optional, allow configuration over environment ( #6415 )
6 years ago
Eugen Rochko
26f21fd5a0
CAS + SAML authentication feature ( #6425 )
* Cas authentication feature
* Config
* Remove class_eval + Omniauth initializer
* Codeclimate review
* Codeclimate review 2
* Codeclimate review 3
* Remove uid/email reconciliation
* SAML authentication
* Clean up code
* Improve login form
* Fix code style issues
* Add locales
6 years ago