From a0109f0726d5c24048a600b63cee9de19b38334f Mon Sep 17 00:00:00 2001 From: Tony Marsella Date: Thu, 29 Jun 2023 16:56:32 -0700 Subject: [PATCH] Including Caddyfile and README --- Caddyfile | 3 +++ README.md | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 Caddyfile create mode 100644 README.md diff --git a/Caddyfile b/Caddyfile new file mode 100644 index 0000000..7095224 --- /dev/null +++ b/Caddyfile @@ -0,0 +1,3 @@ +heartily.work { + reverse_proxy localhost:8000 +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..afa2b58 --- /dev/null +++ b/README.md @@ -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