Your server host and port information are set up during installation. If they ever change, you’ll need to update the configuration.
For more info on server configuration options, see Installing the Game.
To configure the server:
These advanced server options will not be needed by every game.
If you want to have your web portal use HTTPS instead of HTTP, you will need to first install a security certificate. CertBot is a really easy way to do this.
If you’re using the Ares default setup of Ubuntu/nginx, go to CertBot’s website and select ‘nginx’ and your server’s version of Ubuntu (usually either 16.04 or 18.04; you will see the version printed in your server shell when you log in.)
CertBot will give you the commands you need. Run those commands in the game’s server shell to set up the certificate. Allow it to update your nginx configuration for you.
Once you have that installed, you’ll need to set a couple advanced server options.
sudo certbot certificates to get your certificate info. It will look something like this:
Certificate Name: YOURSITE Domains: YOURSITE Expiry Date: whenever Certificate Path: /etc/letsencrypt/live/YOURSITE/fullchain.pem Private Key Path: /etc/letsencrypt/live/YOURSITE/privkey.pem
You will need to use the same YOURSITE value in a moment.
From the aresmush directory, run
server.ymlin the game configuration:
Reboot the server. See Rebooting the Server.
bin/devstartcommand to run the game in dev mode will not work if HTTPS is enabled. Instead you must run the start command manually:
bundle exec rake startares
When hosting a game on a host with separate public/private IP addresses (commonly found with AWS) you’ll need to tell the server to start up on the private IP. Do this by setting the
bind_address config option to the private IP.