2. Imperium Incursions Runtime Installation - samuelgrant/Imperium-Incursions-Waitlist GitHub Wiki
Webserver and Runtime Information
Apache Webserver
- Enable The following Apache modules:
sudo a2enmod proxy
sudo a2enmod proxy_http
sudo a2enmod proxy_html
sudo a2enmod rewrite
sudo a2enmod headers
- Restart Apache
systemctl restart apache2
- 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.
sudo add-apt-repository ppa:certbot/certbot
sudo apt install python-certbot-apache
- `sudo certbot -apache
- 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