How to edit "hidden" site_settings?

Hello, I’d like to run some tests and I’ve found that search function is getting throttled despite configuring everything mentioned here. Snooping around some code, I’ve found some rate-limits for searching in the site_settings.yml. However, these are marked as “hidden” and are not visible in the admin UI. How can I edit those parameters? Can I set them (or make them visible) through the app.yml?

image

1 Like

Yes, you can put them in app.yml. Every DISCOURSE_SETTING_NAME environment value is converted to a setting_name site setting in web_template.yml (here)

4 Likes

OK, so e.g. for rate_limit_search_user, I set in app.yml.

env:
  ...
  DISCOURSE_RATE_LIMIT_SEARCH_USER: 999999

Thanks!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.