Skip to content

Conversation

@The0mikkel
Copy link
Member

@The0mikkel The0mikkel commented Nov 16, 2025

This update adds:

  • Implemented a webserver to handle error responses with custom HTML pages for various HTTP errors (404, 500, 502, 503, 504).
  • Added Dockerfile and docker-compose configuration for local development.
  • Created Kubernetes deployment and service configuration for production deployment.
  • Introduced a generator script to automate the creation of error pages.
  • Updated README with instructions on running the service and generating pages.

…ment configuration

- Implemented a webserver to handle error responses with custom HTML pages for various HTTP errors (404, 500, 502, 503, 504).
- Added Dockerfile and docker-compose configuration for local development.
- Created Kubernetes deployment and service configuration for production deployment.
- Introduced a generator script to automate the creation of error pages.
- Updated README with instructions on running the service and generating pages.
Copilot AI review requested due to automatic review settings November 16, 2025 17:59
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements a custom error fallback webserver for the CTF Pilot ecosystem, providing branded error pages for common HTTP errors (404, 500, 502, 503, 504) with automatic retry functionality.

Key Changes:

  • Created a static webserver with custom HTML error pages and automatic service availability polling
  • Added deployment infrastructure including Kubernetes manifests, Dockerfile, and docker-compose configuration
  • Implemented a Python-based generator script to build error pages from templates and content files

Reviewed Changes

Copilot reviewed 17 out of 19 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
template/k8s.yml Kubernetes deployment and service configuration for the error fallback webserver with HA setup (3 replicas)
src/layouts/error.html HTML template layout for error pages with loading spinner and auto-reload functionality
src/js/main.js JavaScript polling logic to check service availability and automatically reload when service recovers
src/css/main.css CSS styling with dark/light theme support and responsive design
src/generator.py Python script to generate static error pages by combining layouts, content, CSS, and JavaScript
src/content/error_*.html Individual error page content for various HTTP status codes (404, 500, 502, 503, 504, index)
Dockerfile Multi-stage Docker build using Python for generation and static-web-server for serving
docker-compose.yml Local development setup for the error fallback service
README.md Documentation on running the service and generating error pages
.releaserc.json Semantic release configuration with K8s manifest generation
.github/workflows/release.yml CI/CD workflow for automated releases and Docker image publishing
.github/workflows/cla-assistant.yml Updated repository reference for CLA assistant
.gitignore Excludes generated public/ directory from version control

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

semantic-release-bot and others added 3 commits November 16, 2025 18:02
## 1.0.0-r.1 (2025-11-16)

### Features

* add error fallback webserver with custom error pages and deployment configuration ([db8d82b](db8d82b))
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 18 out of 19 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@The0mikkel The0mikkel requested a review from Copilot November 16, 2025 18:20
@The0mikkel The0mikkel changed the title Add error fallback webserver with custom error pages and deploy… Add error fallback webserver with custom error pages and deployment configuration Nov 16, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 19 out of 20 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@The0mikkel The0mikkel merged commit 0e1e066 into main Nov 16, 2025
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants