Electrical Age 1.0 Stats Server Source Code
Go to file
Jared Dunbar 5e2dd89bef Various Updates
* Updated Readme
* Added new restrictive DynamoDB Policy document
* Added run.sh from EC2 instance filesystem
2021-09-18 22:21:13 -04:00
templates Creates modinfo.json 2021-07-24 21:49:54 +00:00
.gitignore Various Updates 2021-09-18 21:54:25 -04:00
LICENSE Initial commit 2021-07-24 21:47:39 +00:00
README.md Various Updates 2021-09-18 22:21:13 -04:00
dynamodb-policy.json Various Updates 2021-09-18 22:21:13 -04:00
main.py Various Updates 2021-09-18 21:54:25 -04:00
nginx.conf Adds nginx configuration 2021-07-24 21:51:14 +00:00
run.sh Various Updates 2021-09-18 22:21:13 -04:00

README.md

eln1-stats

Electrical Age 1.0 Stats Server Source Code

Project Layout

Filesystem:

  • .aws/config - sets us-east-1 as region
  • .aws/credentials - uses AWS credentials (arn:aws:iam::464053648600:user/eln1_stats)
  • main.py - Source Code
  • run.sh - Script to run in Screen
  • templates/modinfo.json - Modinfo Json (template file)
  • /etc/nginx/nginx.conf - nginx configuration (simple proxy to unpriv port)

Also contained in this repository is the dynamodb policy document for put access to the DB

Starting the script

Log in as the arch user (vadu.pem key) and then run sudo su - stat to become the stats user.

screen -S stats
./run.sh

Exit screen and profit.

Python Requirements

boto3 and flask are required Python libraries.