https://github.com/RFCreate/ec2-webpage
Flask application and Nginx server to deploy in EC2 instance.
https://github.com/RFCreate/ec2-webpage
aws ec2 flask html nginx python waitress
Last synced: about 1 year ago
JSON representation
Flask application and Nginx server to deploy in EC2 instance.
- Host: GitHub
- URL: https://github.com/RFCreate/ec2-webpage
- Owner: RFCreate
- Created: 2024-11-09T22:36:32.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-30T16:54:52.000Z (over 1 year ago)
- Last Synced: 2025-03-05T19:58:39.712Z (over 1 year ago)
- Topics: aws, ec2, flask, html, nginx, python, waitress
- Language: Shell
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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) |