4 ms·
If you're running a Rails server on Ubuntu, protecting your server is as simple as deploying your app with Moonshine, with the ssh, iptables, and denyhosts plug
by jarin 16y ago
If you're running a Rails server on Ubuntu, protecting your server is as simple as deploying your app with Moonshine, with the ssh, iptables, and denyhosts plugins.
It requires maybe 7-10 lines of configuration to have a fairly well-insulated system:
# config/moonshine.yml
:ssh:
:port: 9024
:allow_users:
- rails
# app/manifests/application_manifest.rb
configure({
:denyhosts => { :admin_email => 'admin@example.com' }
})
recipe :ssh
recipe :iptables
recipe :denyhosts