This repository contains all the necessary components to serve files from download.versatiles.org. It includes configuration files, webhooks, and a simple HTML template for displaying file listings. Contributors are welcome to improve the file listing by modifying html/template.html
.
Below is an overview of the repository's folder structure and contents:
config
: Contains configuration files for Nginx and the webhook.config/nginx
: Includes Nginx configuration with special rules forindex.html
,robots.txt
, andfavicon.ico
.config/webhook
: Houses the webhook configuration. It triggerspull.sh
upon activation.webhook.yaml
uses a placeholder "%SECRET%" that is replaced with the actual secret byscripts/setup_server.sh
.
html
: Holds the script for generatingindex.html
fromtemplate.html
.html/docs
: The directory that will be served by Nginx.
script
: Contains helper scripts, including the server setup script.
Before setting up the server, ensure you have the necessary tools installed:
brew install hcloud # MacOS
hcloud context create versatile # Use hcloud for administrating Hetzner Cloud
To create the server, execute the setup script:
./create_server.sh
Updates are managed automatically using webhooks.
When no longer needed, the server can be removed with:
./delete_server.sh