Login
You're viewing the assemblag.es public feed.
  • May 18, 2023, 4:09 PM

    For getting a CAPTCHA on your server, I executed these steps for a non-docker server with default setup #MastoAdmin #Spam

    1. Get a free account at hcaptcha.com and note down the site key & secret

    2. Edit .env.production and add them to the following 2 new configuration keys:

    HCAPTCHA_SECRET_KEY
    HCAPTCHA_SITE_KEY

    3. Stop mastodon-sidekiq & mastodon-web services, create a backup

    4. git checkout master && git fetch && git checkout 45ba9ada3455e5fbce955371bf2aff369e47db54

    💬 2🔄 1⭐ 0

Replies

  • May 18, 2023, 4:10 PM

    5. Run the following commands:

    RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install 3.2.2
    bundle install
    yarn install
    RAILS_ENV=production bundle exec rails assets:precompile
    RAILS_ENV=production bundle exec rails db:migrate

    6. Resume the 2 services and test signup. The CAPTCHA will appear when you verify the new account's e-mail address.

    Thanks to the Matrix admin chat 🥰

    #MastoAdmin #Spam

    💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0