Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shyguycreate/ec2-webpage

Flask application and Nginx server to deploy in an EC2 instance.
https://github.com/shyguycreate/ec2-webpage

aws ec2 flask nginx python waitress web

Last synced: about 1 month ago
JSON representation

Flask application and Nginx server to deploy in an EC2 instance.

Awesome Lists containing this project

README

        

# Flask-Nginx in EC2 instances

Flask application powered by Waitress WSGI server to display a basic html website in an EC2 instance using NGINX to port forward HTTP calls to the html contents making it accessible to the internet from the EC2 public IP address.

The repo comes with configuration scripts for EC2 instance images for Amazon Linux, Ubuntu, and Windows. To use them, copy the script content inside the **User Data** section when creating the instance.

| AMI | Script |
| ------------ | --------------------------------------------------- |
| Amazon Linux | [amazon.conf](/user-data/flask-nginx/amazon.conf) |
| Ubuntu | [ubuntu.conf](/user-data/flask-nginx/ubuntu.conf) |
| Windows | [windows.conf](/user-data/flask-nginx/windows.conf) |

---

# Nginx-Only in EC2 instances

Display a basic html website in an EC2 instance using NGINX to port forward HTTP calls to the html contents making it accessible to the internet from the EC2 public IP address.

The repo comes with configuration scripts for EC2 instance images for Amazon Linux, Ubuntu, and Windows. To use them, copy the script content inside the **User Data** section when creating the instance.

| AMI | Script |
| ------------ | -------------------------------------------------- |
| Amazon Linux | [amazon.conf](/user-data/nginx-only/amazon.conf) |
| Ubuntu | [ubuntu.conf](/user-data/nginx-only/ubuntu.conf) |
| Windows | [windows.conf](/user-data/nginx-only/windows.conf) |