add project structure

This commit is contained in:
Yannik Schmidt
2021-08-31 22:03:26 +02:00
parent 044a7f97fe
commit 4086dfaf93

View File

@@ -1,3 +1,13 @@
# Project Structure
server.py # the main flask server
app.py # the flask app wrapper that can be started via wsgi
scripts/ # user add/deletion scripts used for usermanagement
static/ # static files of the flask webserver (js/css etc.)
templates/ # jinja html templates used by the webserver (the actual webpages)
setup.sh # remote setup script
aws/ # aws templates/files
# Local Requirements
## setup.sh
@@ -40,4 +50,4 @@ The start script (*setup.sh*) performs the following task in this order:
- create a keypair 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*)
- goto Instances, select Security and click the security group, add inbound for the ports you want to use (e.g. 80, 443 or 5000)
- goto 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)