Including Caddyfile and README

This commit is contained in:
Caretaker0699 2023-06-29 16:56:32 -07:00
parent 636a2453e1
commit a0109f0726
2 changed files with 68 additions and 0 deletions

3
Caddyfile Normal file
View File

@ -0,0 +1,3 @@
heartily.work {
reverse_proxy localhost:8000
}

65
README.md Normal file
View File

@ -0,0 +1,65 @@
# OVERVIEW
HEARTILY is a Christian aggregated job board that tries to only list jobs from companies that adhere to Biblical principles and the following Statement of Faith: https://shilohcode.com/
Listings are updated hourly.
These is the current query used to filter the results:
(it+OR+technology+OR+developer+OR+software)+AND+(bible+OR+christian+OR+jesus+OR+god)+-LDS+-%22Latter-Day+Saints%22
This is a Shiloh community supported project, if you see listings that are not appropriate please use the report button so we can improve the query filtering.
Our hope is that this app helps accelerate your calling in Christ Jesus, see Colossians 3:23-24 NASB.
# Flask App Deployment with Gunicorn and Caddy
This repository provides a sample Flask app deployment setup using Gunicorn as the application server and Caddy as a reverse proxy.
## Prerequisites
- Python 3.x
- pip package manager
- Gunicorn
- Caddy
## Installation
1. Clone the repository:
2. Install the required dependencies:
3. Install Gunicorn.
4. Install Caddy by following the official Caddy installation guide for your operating system: [Caddy Installation Guide](https://caddyserver.com/docs/install)
## Configuration
1. Create a `Caddyfile` configuration file in the same directory as your `app.py` file. Here's an example `Caddyfile` configuration:
yourdomain.com {
reverse_proxy localhost:8000
}
Replace `yourdomain.com` with your actual domain name.
2. Customize the `gunicorn_config.py` file according to your app's requirements.
## Deployment
1. Start your Flask app with Gunicorn using the `gunicorn_config.py` file. Run the following command in the terminal:
This will start the Gunicorn server and bind it to `localhost:8000` by default.
2. Start the Caddy server by running the following command in the terminal:
Caddy will read the `Caddyfile` configuration and start serving your Flask app through the reverse proxy.
3. Access your Flask app by visiting `yourdomain.com` in your web browser. Replace `yourdomain.com` with your actual domain or hostname.
## License
TBA