If you are savvy enough to run your own web server, this is just a bog-standard WSGI app, and you're free to host it on any web server, provided it supports HTTPS. You will have to generate your own SSL certificate, be it self-signed or via a Certificate Authority (CA), such as Let's Encrypt. This is an Amazon requirement.
You will need to create the file
kodi.config from the kodi.config.example template. The template file contains comments to describe the options.
Install the modules in