2. Imperium Incursions Runtime Installation - samuelgrant/Imperium-Incursions-Waitlist GitHub Wiki

Webserver and Runtime Information

Apache Webserver

  1. Enable The following Apache modules:
  • sudo a2enmod proxy
  • sudo a2enmod proxy_http
  • sudo a2enmod proxy_html
  • sudo a2enmod rewrite
  • sudo a2enmod headers
  1. Restart Apache systemctl restart apache2
  2. Create a Virtual Host in /etc/apache2/sites-avaliable
<VirtualHost *:*>
   RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
</VirtualHost>

<VirtualHost *:80>
   ProxyPreserveHost On
   ProxyPass / http://127.0.0.1:5000/
   ProxyPassReverse / http://127.0.0.1:5000/
   ServerName yourdomain.com
   ServerAlias www.yourdomain.com
</VirtualHost>

Free HTTPs Using Certbot

You must have a domain name pointing towards your server's IP address for this to work.

  1. sudo add-apt-repository ppa:certbot/certbot
  2. sudo apt install python-certbot-apache
  3. `sudo certbot -apache
  4. Select option 2 (Force HTTPs)

Alternatively, to step four - HTTPs could be forced at the DNS level

Seeding the Database (Mandatory Step)

  • One time run in dev mode

System Service

  • Setting up the system service
  • Run/Enable the service