From 3c644bc8ee189253a4d5d763653d960ef76baff4 Mon Sep 17 00:00:00 2001 From: Andrei Jiroh Halili Date: Sun, 30 Nov 2025 21:48:14 +0800 Subject: [PATCH] chore: update README and seperate config to .env.production file Signed-off-by: Andrei Jiroh Halili --- .env.production | 9 +++++++++ docker-compose.yml | 8 ++------ readme.md | 10 ++++++++++ 3 files changed, 21 insertions(+), 6 deletions(-) create mode 100644 .env.production diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..a122c20 --- /dev/null +++ b/.env.production @@ -0,0 +1,9 @@ +# Knot production configuration +# DO NOT LEAK SECRETS HERE! +KNOT_SERVER_HOSTNAME="knot.hackclub.community" +KNOT_SERVER_OWNER="did:plc:i5m7ags2eqs5zras4cg2xkll" +KNOT_SERVER_DB_PATH=/app/db/knotserver.db +KNOT_REPO_SCAN_PATH=/home/git/repositories +KNOT_SERVER_INTERNAL_LISTEN_ADDR=localhost:5444 +KNOT_GIT_USER_NAME=Tangled +KNOT_GIT_USER_EMAIL=tangled@knot.hackclub.community diff --git a/docker-compose.yml b/docker-compose.yml index 17f801e..c763192 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,12 +7,8 @@ services: args: UID: 2897 GID: 2897 - environment: - KNOT_SERVER_HOSTNAME: "knot.hackclub.community" - KNOT_SERVER_OWNER: "did:plc:i5m7ags2eqs5zras4cg2xkll" - KNOT_SERVER_DB_PATH: /app/knotserver.db - KNOT_REPO_SCAN_PATH: /home/git/repositories - KNOT_SERVER_INTERNAL_LISTEN_ADDR: localhost:5444 + env_file: + - .env.production volumes: - ./keys:/etc/ssh/keys - ./repositories:/home/git/repositories diff --git a/readme.md b/readme.md index ef8c987..8214d52 100644 --- a/readme.md +++ b/readme.md @@ -1,5 +1,8 @@ # RecapTime.dev Knot Server on Nest +[![pipeline status](https://gitlab.com/recaptime-dev/infra/knot-server-docker/badges/main/pipeline.svg)](https://gitlab.com/recaptime-dev/infra/knot-server-docker/pipelines) +[![Hack Club](https://badges.api.lorebooks.wiki/badges/hackclub/hackclub)](https://hackclub.com) + This is a knot server that Recap Time Squad uses to host our Git repositories on [Tangled](https://tangled.org), hosted on [Nest](https://hackclub.app) for the Hack Club community. @@ -16,6 +19,13 @@ git remote add origin ssh://git@knot.hackclub.community:33939/handle.host.tld/re git remote add origin ssh://git@hackclub.app:33939/handle.host.tld/repo ``` +### Infrastructure Operations + +* Image CI builds happen via GitLab CI: + * [View our GitLab CI config](./.gitlab-ci.yaml) + * [View tags on GitLab Container Registry](https://gitlab.com/recaptime-dev/infra/knot-server-docker/container_registry/9481789) +* Run using built images after `ssh recaptime-dev@hackclub.app`: ` compose up --no-build --force-recreate` + ## Requesting access > You'll be asked for your AT Proto handle/DID PLC to provision access. Don't have one? -- 2.51.2