From 4086dfaf9320a0c8a791dd884cc4530d956d368b Mon Sep 17 00:00:00 2001 From: Yannik Schmidt Date: Tue, 31 Aug 2021 22:03:26 +0200 Subject: [PATCH] add project structure --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f3e5aa1..cfe65a9 100644 --- a/README.md +++ b/README.md @@ -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)