Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ The service can also be run locally, using the provided Docker compose file:
docker compose up -d
```

A [Docker image](https://github.com/ctfpilot/error-fallback/pkgs/container/error-fallback) is automatically built and published to GitHub Container Registry for each release.
You can pull the latest image with:

```sh
docker pull ghcr.io/ctfpilot/error-fallback:latest
```

*For the versions available, please see the [releases page](https://github.com/ctfpilot/error-fallback/releases).*

### Development

In order to generate the pages, run the [`generator.py`](./src/generator.py) script in `src`:
Expand Down
6 changes: 3 additions & 3 deletions k8s/k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
labels:
app.kubernetes.io/part-of: ctfpilot
app.kubernetes.io/name: error-fallback
app.kubernetes.io/version: 1.0.0
app.kubernetes.io/version: 1.0.0-r.2
app.kubernetes.io/component: challenges
ctfpilot.com/component: error-fallback

Expand All @@ -25,7 +25,7 @@ spec:
automountServiceAccountToken: false
containers:
- name: error-fallback
image: ctfpilot/error-fallback:1.0.0
image: ctfpilot/error-fallback:1.0.0-r.2
imagePullPolicy: Always
ports:
- name: http
Expand Down Expand Up @@ -57,7 +57,7 @@ metadata:
labels:
app.kubernetes.io/part-of: ctfpilot
app.kubernetes.io/name: error-fallback
app.kubernetes.io/version: 1.0.0
app.kubernetes.io/version: 1.0.0-r.2
app.kubernetes.io/component: challenges
ctfpilot.com/component: error-fallback
spec:
Expand Down
4 changes: 4 additions & 0 deletions src/content/error_401.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<h1>Unauthorized</h1>
<p>
Authentication is required to access this resource. Please log in with valid credentials.
</p>
5 changes: 5 additions & 0 deletions src/content/error_403.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<h1>Forbidden</h1>
<p>
You do not have permission to access this resource. If you believe this is an error, please contact the
administrator.
</p>
Loading