Welcome to the repository for Harper's Bounce House, a simple domain bouncer that redirects visitors to harperrules.com! 🚀
This repository contains the following files:
Procfile
: Specifies the command to run the application using Gunicorn.README.md
: You're reading it right now! 📖bounce.py
: The main Python script that handles the domain bouncing logic. 🐍fly.toml
: Configuration file for deploying the application on Fly.io. ☁️requirements.txt
: Lists the Python dependencies required to run the application. 📜When a user visits a domain that points to this application, the following steps occur:
Host
header of the incoming request. 🔍tldextract
. 🧐http://harperrules.com/domain/?domain=<extracted_domain>
. 🔀http://harperrules.com/
. 🚫The application is deployed using Fly.io. The fly.toml
file contains the necessary configuration for the deployment.
The application exposes Prometheus metrics at the /metrics
endpoint. The domain_counter
metric tracks the number of visits to each domain.
If you'd like to contribute to this project, please feel free to open an issue or submit a pull request. Let's bounce together! 🙌
Built with ❤️ by @harperreed