Author SHA1 Message Date
kiskaadee 9ff2a4c714 fix(gitea): add robots.txt and attach public-ratelimit Traefik middleware
- gitea/robots.txt: disallow crawler traps on /*/*/pulls, issues, commits, archive, graph, forks, stars, watchers, activity, and /explore

- gitea/docker-compose.yml: mount ./robots.txt read-only into /data/gitea/public/robots.txt and attach public-ratelimit@docker middleware
2026-11-23 16:25:02 -05:00
7 changed files with 29 additions and 16 deletions

No files matched your search

+3 -3
View File
@@ -3,7 +3,7 @@
DASHBOARD_REPO_URL=https://git.example.com/org/armonia-dashboard.git
DASHBOARD_REF=main
# Pre-built container image reference for armonia-api
ARMONIA_API_IMAGE=homelab-armonia-armonia-api:latest
ARMONIA_API_IMAGE=armonia-api:latest
# --- Runtime & Database ---
ENVIRONMENT=production
@@ -22,8 +22,8 @@ AUTH_MIDDLEWARE=authelia-auth@docker
HTTPS_REDIRECT_MIDDLEWARE=https-redirect@docker
# --- User/Group IDs ---
PUID=1001
PGID=988
PUID=1000
PGID=1000
# --- Application Settings ---
THERAPIST_NAME=
+3 -3
View File
@@ -1,11 +1,11 @@
services:
armonia-api:
image: ${ARMONIA_API_IMAGE:-homelab-armonia-armonia-api:latest}
image: ${ARMONIA_API_IMAGE:-armonia-api:latest}
container_name: ${ARMONIA_API_CONTAINER:-armonia-api}
user: "${PUID:-1001}:${PGID:-988}"
user: "${PUID:-1000}:${PGID:-1000}"
restart: unless-stopped
volumes:
- ../../var/lib/homelab/armonia/data:/data
- ./data:/data
environment:
- ENVIRONMENT=${ENVIRONMENT:-production}
- APP_ENV=${APP_ENV:-production}
+2
View File
@@ -19,6 +19,7 @@ services:
- "${SSH_PORT:-2223}:22"
volumes:
- ../../var/lib/homelab/gitea:/data
- ./robots.txt:/data/gitea/public/robots.txt:ro
networks:
- proxy-net
labels:
@@ -28,6 +29,7 @@ services:
- "traefik.http.routers.${CONTAINER_NAME:-gitea}.entrypoints=${HTTPS_ENTRYPOINT:-websecure}"
- "traefik.http.routers.${CONTAINER_NAME:-gitea}.tls=true"
- "traefik.http.routers.${CONTAINER_NAME:-gitea}.tls.certresolver=${CERT_RESOLVER:-myresolver}"
- "traefik.http.routers.${CONTAINER_NAME:-gitea}.middlewares=${RATE_LIMIT_MIDDLEWARE:-public-ratelimit@docker}"
- "traefik.http.routers.${CONTAINER_NAME:-gitea}.service=${CONTAINER_NAME:-gitea}-svc"
# HTTP to HTTPS Redirect Router
- "traefik.http.routers.${CONTAINER_NAME:-gitea}-red.rule=Host(`${SERVICE_DOMAIN}`)"
+11
View File
@@ -0,0 +1,11 @@
User-agent: *
Disallow: /*/*/pulls
Disallow: /*/*/issues
Disallow: /*/*/commits
Disallow: /*/*/archive
Disallow: /*/*/graph
Disallow: /*/*/forks
Disallow: /*/*/stars
Disallow: /*/*/watchers
Disallow: /*/*/activity
Disallow: /explore
+3 -3
View File
@@ -6,8 +6,8 @@ SERVICE_DOMAIN=jellyfin.example.com
TZ=UTC
# --- User/Group IDs ---
PUID=1001
PGID=988
PUID=1000
PGID=1000
# --- Path Configuration ---
MEDIA_PATH=/path/to/your/media
@@ -16,7 +16,7 @@ MEDIA_PATH=/path/to/your/media
PROXY_NETWORK=proxy-net
HTTP_ENTRYPOINT=web
HTTPS_ENTRYPOINT=websecure
CERT_RESOLVER=myresolver
CERT_RESOLVER=letsencrypt
# --- Security & Performance ---
RATE_LIMIT_AVG=100
+3 -3
View File
@@ -19,6 +19,6 @@ Refer to the root [README.md](../README.md) for details on how environment varia
## 📦 Volumes
- `../../var/lib/homelab/jellyfin/config`: Application data and configuration.
- `../../var/lib/homelab/jellyfin/cache`: Metadata and transcode cache.
- `../../var/lib/homelab/jellyfin/media`: Media library (mounted read-only).
- `./config`: Application data and configuration.
- `./cache`: Metadata and transcode cache.
- `${MEDIA_PATH}`: Media library (mounted read-only).
+4 -4
View File
@@ -2,13 +2,13 @@ services:
jellyfin:
image: jellyfin/jellyfin:${IMAGE_TAG:-latest}
container_name: ${CONTAINER_NAME:-jellyfin}
user: "${PUID:-1001}:${PGID:-988}"
user: "${PUID:-1000}:${PGID:-1000}"
environment:
- TZ=${TZ:-UTC}
volumes:
- ../../var/lib/homelab/jellyfin/config:/config
- ../../var/lib/homelab/jellyfin/cache:/cache
- ../../var/lib/homelab/jellyfin/media:/media:ro
- ./config:/config
- ./cache:/cache
- ./media:/media:ro
restart: unless-stopped
networks:
- proxy-net