add port/wsgi/service info to README

This commit is contained in:
Yannik Schmidt
2021-08-31 23:08:45 +02:00
parent f0285baace
commit 29c6c7de71

View File

@@ -7,6 +7,7 @@
templates/ # jinja html templates used by the web-server (the actual web-pages)
setup.sh # remote setup script
aws/ # aws templates/files
flask-ftp.service # the systemd service used to start the webserver (change port and interface here)
# Local Requirements
## setup.sh
@@ -49,3 +50,7 @@ The AWS-template setup uses git instead of rsync to pull the server files. The s
- create a key-pair called *"flask-ftp"* or change the value of *"KeyName"* in *aws/template.yml* to an existing key pair (see "AWS Network & Security -> Key Pairs" for details)
- create a new stack (CloudFormation -> Stacks -> Create Stack) and upload the template (*aws/template.yml*)
- go to Instances, select Security and click the security group, add inbound for the ports you want to use (e.g. FTP Ports, 80, 443 or 5000, allowing all for simplicity, is reasonably safe too in this case, since there's nothing running on the server except the public services)
# Chaning port or interface
The service is deployed via *"waitress"* and the startup command is defined in the *"ExecStart"*, including interface and port. You can swap out waitress for any other wsgi-server like *uwsgi* or *gunicorn*.