It's a simple webserver for Unciv that uses the Python built in http.server module.
Make sure you have Python3 installed. The server was tested with Python 3.7\3.8\3.9 and 3.10; Of course, we recommend Python 3.9 and 3.10
Use git to download the Unciv_server
git clone https://github.com/Mape6/Unciv_server.git
cd Unciv_server
usage: Unciv_server.py [-h] [-p PORT] [-g]
[-l {CRITICAL,ERROR,WARNING,INFO,DEBUG}]
This is a simple HTTP webserver for Unciv
optional arguments:
-h, --help show this help message and exit
-p PORT, --port PORT Specifies the port on which the server should listen
(default: 80)
-g, --game-logfiles Writes separate logfiles for each game
-l {CRITICAL,ERROR,WARNING,INFO,DEBUG}, --log-level {CRITICAL,ERROR,WARNING,INFO,DEBUG}
Change logging level (default: WARNING)
This webserver does not support TLS for secured HTTPS connections. I suggest to use a reverse proxy in front of this webserver to take care of the certificate and termination of the TLS sessions.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
This project is MPL-2.0 licensed.