Compare commits

2 Commits
Author SHA1 Message Date
Michelle 177d2e7e70 update README
Build and publish bnuy api / build (push) Successful in 13m9s
2026-05-13 11:38:06 +02:00
Michelle b3139d9c5b Edit workflow to work with GitHub Container Registry
Build and publish bnuy api / build (push) Successful in 13m16s
2026-05-13 10:58:33 +02:00
2 changed files with 31 additions and 2 deletions
+6 -1
View File
@@ -19,7 +19,12 @@ jobs:
# this step was made by AI, i hope it works # this step was made by AI, i hope it works
- name: Extract registry host - name: Extract registry host
id: registry id: registry
run: echo "host=$(echo ${{ github.server_url }} | sed 's|https\?://||')" >> "$GITHUB_OUTPUT" run: |
HOST=$(echo ${{ github.server_url }} | sed 's|https\?://||')
if [ "$HOST" = "github.com" ]; then
HOST="ghcr.io"
fi
echo "host=$HOST" >> "$GITHUB_OUTPUT"
- name: Docker meta - name: Docker meta
id: meta id: meta
+25 -1
View File
@@ -1,4 +1,28 @@
# bnuy-api # bnuy-api
A API which collects pictures of bunnies and provides a API to get random bunny pictures. A API which collects pictures of bunnies and provides a API to get random bunny pictures.
doesn't work yet, still in progress
it's just a basic API right now, I want to add more sources for gifs (tenor?) and maybe more sources for pictures
# Usage
The API is available [here](https://bnuy-api.scrunkly.cat/random)
# Selfhosting
Just copy the compose.yml from the repo and copy the .env.example to .env and fill it.
```
# bnuy-api
POST_LIMIT=20
LOG_LEVEL=INFO
FORWARDED_ALLOW_IPS=172.16.0.0/12
# Database MariaDB
DB_HOST=mariadb
DB_PORT=3306
DB_ROOT_PASSWORD=rootpassword
DB_USER=bnuy
DB_PASSWORD=example
DB_NAME=bnuy
```