Harden web server role & fix ruby syntax issues