Compare commits
4
Commits
51445d4af1
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
954cbc1c7f | ||
|
|
359ee51586 | ||
|
|
1981398cf3 | ||
|
|
9ff2a4c714 |
No files matched your search
@@ -19,6 +19,7 @@ services:
|
|||||||
- "${SSH_PORT:-2223}:22"
|
- "${SSH_PORT:-2223}:22"
|
||||||
volumes:
|
volumes:
|
||||||
- ../../var/lib/homelab/gitea:/data
|
- ../../var/lib/homelab/gitea:/data
|
||||||
|
- ./robots.txt:/data/gitea/public/robots.txt:ro
|
||||||
networks:
|
networks:
|
||||||
- proxy-net
|
- proxy-net
|
||||||
labels:
|
labels:
|
||||||
@@ -28,6 +29,7 @@ services:
|
|||||||
- "traefik.http.routers.${CONTAINER_NAME:-gitea}.entrypoints=${HTTPS_ENTRYPOINT:-websecure}"
|
- "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=true"
|
||||||
- "traefik.http.routers.${CONTAINER_NAME:-gitea}.tls.certresolver=${CERT_RESOLVER:-myresolver}"
|
- "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"
|
- "traefik.http.routers.${CONTAINER_NAME:-gitea}.service=${CONTAINER_NAME:-gitea}-svc"
|
||||||
# HTTP to HTTPS Redirect Router
|
# HTTP to HTTPS Redirect Router
|
||||||
- "traefik.http.routers.${CONTAINER_NAME:-gitea}-red.rule=Host(`${SERVICE_DOMAIN}`)"
|
- "traefik.http.routers.${CONTAINER_NAME:-gitea}-red.rule=Host(`${SERVICE_DOMAIN}`)"
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -1,9 +1,5 @@
|
|||||||
# GitHub Actions Runner environment variables (injected at runtime; never commit real credentials)
|
# Shared GitHub App credentials (injected at runtime; never commit real credentials)
|
||||||
GITHUB_RUNNER_NAME=homelab-github-runner
|
|
||||||
GITHUB_RUNNER_SCOPE=org
|
|
||||||
GITHUB_RUNNER_ORG_NAME=replace-with-github-org
|
|
||||||
GITHUB_RUNNER_APP_ID=replace-with-github-app-id
|
GITHUB_RUNNER_APP_ID=replace-with-github-app-id
|
||||||
GITHUB_RUNNER_APP_LOGIN=replace-with-github-app-slug
|
|
||||||
# Single-line base64-encoded GitHub App PEM private key: base64 -w0 < private-key.pem
|
# Single-line base64-encoded GitHub App PEM private key: base64 -w0 < private-key.pem
|
||||||
GITHUB_RUNNER_APP_PRIVATE_KEY_B64=replace-with-base64-encoded-pem
|
GITHUB_RUNNER_APP_PRIVATE_KEY_B64=replace-with-base64-encoded-pem
|
||||||
GITHUB_RUNNER_LABELS=self-hosted,linux,x64,nix
|
GITHUB_RUNNER_LABELS=self-hosted,linux,x64,nix
|
||||||
@@ -1,24 +1,28 @@
|
|||||||
|
x-runner-common: &runner-common
|
||||||
|
image: ${RUNNER_IMAGE:-github-runner:local}
|
||||||
|
restart: unless-stopped
|
||||||
|
environment: &runner-env
|
||||||
|
EPHEMERAL: ${EPHEMERAL:-true}
|
||||||
|
RUN_AS_ROOT: "false"
|
||||||
|
DISABLE_AUTO_UPDATE: ${DISABLE_AUTO_UPDATE:-true}
|
||||||
|
RUNNER_WORKDIR: /data/work
|
||||||
|
APP_ID: ${GITHUB_RUNNER_APP_ID:-}
|
||||||
|
APP_PRIVATE_KEY_B64: ${GITHUB_RUNNER_APP_PRIVATE_KEY_B64:-}
|
||||||
|
LABELS: ${GITHUB_RUNNER_LABELS:-self-hosted,linux,x64,nix}
|
||||||
|
|
||||||
services:
|
services:
|
||||||
github_runner:
|
github_runner:
|
||||||
|
<<: *runner-common
|
||||||
build: .
|
build: .
|
||||||
image: ${RUNNER_IMAGE:-github-runner:local}
|
|
||||||
container_name: ${CONTAINER_NAME:-github_runner}
|
container_name: ${CONTAINER_NAME:-github_runner}
|
||||||
restart: unless-stopped
|
|
||||||
environment:
|
environment:
|
||||||
- EPHEMERAL=${EPHEMERAL:-true}
|
<<: *runner-env
|
||||||
- RUN_AS_ROOT=false
|
RUNNER_NAME: ${GITHUB_RUNNER_NAME:-homelab-runner-canopy}
|
||||||
- DISABLE_AUTO_UPDATE=${DISABLE_AUTO_UPDATE:-true}
|
RUNNER_SCOPE: org
|
||||||
- RUNNER_WORKDIR=/data/work
|
APP_LOGIN: canopy-homelab
|
||||||
- RUNNER_NAME=${GITHUB_RUNNER_NAME:-homelab-github-runner}
|
ORG_NAME: canopy-homelab
|
||||||
- RUNNER_SCOPE=${GITHUB_RUNNER_SCOPE:-org}
|
|
||||||
- ORG_NAME=${GITHUB_RUNNER_ORG_NAME:-}
|
|
||||||
- REPO_URL=${GITHUB_RUNNER_REPO_URL:-}
|
|
||||||
- APP_ID=${GITHUB_RUNNER_APP_ID:-}
|
|
||||||
- APP_LOGIN=${GITHUB_RUNNER_APP_LOGIN:-}
|
|
||||||
- APP_PRIVATE_KEY_B64=${GITHUB_RUNNER_APP_PRIVATE_KEY_B64:-}
|
|
||||||
- LABELS=${GITHUB_RUNNER_LABELS:-self-hosted,linux,x64,nix}
|
|
||||||
volumes:
|
volumes:
|
||||||
- ../../var/lib/homelab/github_runner:/data
|
- ../../var/lib/homelab/github_runner/canopy-homelab:/data
|
||||||
- nix-store:/nix
|
- nix-store:/nix
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Reference in new issue
Block a user