mirror of
https://github.com/FAUSheppy/jeffrey_miller_flask_ftp
synced 2025-12-06 07:51:34 +01:00
update readme
This commit is contained in:
35
README.md
35
README.md
@@ -1,17 +1,40 @@
|
||||
# OS Requirements
|
||||
# Local Requirements
|
||||
## setup.sh
|
||||
|
||||
- ssh
|
||||
- rsync
|
||||
|
||||
## AWS
|
||||
|
||||
- awscli
|
||||
|
||||
# Remote Requirements
|
||||
## Packages (APT)
|
||||
|
||||
- vsftpd
|
||||
- python3
|
||||
- pip
|
||||
|
||||
# Python Requirements
|
||||
## Python Requirements
|
||||
|
||||
- flask
|
||||
- flask-sqlalchemy
|
||||
- waitress
|
||||
|
||||
# Initial Setup
|
||||
## Setup-Script
|
||||
|
||||
mkdir /var/ftp/
|
||||
./setup.sh TARGET_IP_OR_DNS
|
||||
|
||||
- add revelant lines to sudoers, see setup.sh
|
||||
- set /etc/vsftp.conf: write_enable=YES
|
||||
The start script (*setup.sh*) performs the following task in this order:
|
||||
|
||||
- run apt update and install relevant packages (CMD\_APT)
|
||||
- install the python packages via the python package manager pip (CMD\_PIP)
|
||||
- add a user for flask to run as (CMD\_FLASK\_USER)
|
||||
- add sudoers lines to allow flask user to add and delete users (CMD\_SUDOERS\_ADD/DEL)
|
||||
- transfer the web-server files (rsync)
|
||||
- change FTP configuration to allow writes (CMD\_SET\_FTP\_WRITE\_YES)
|
||||
- restart the FTP to apply the new configuration server (CMD\_RESTART\_FTP)
|
||||
- lock out any ssh but root just to be safe (CMD\_LOCK\_SSH)
|
||||
|
||||
# AWS
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user