Configuration files for self-hosted Tangled knot
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Clean up the description

+2 -17
+2 -17
README.md
··· 8 8 9 9 These instructions assume a user `www-data` on the host for Docker to use. 10 10 11 - 1. In `knot-docker` directory, create Docker image with 12 - `docker build -t knot:latest --build-arg TAG=master --build-arg UID=$(id -u www-data) --build-arg GID=$(id -u www-data) .` 11 + 1. In `knot-docker` directory, edit the TAG variable in the Dockerfile and create Docker image with 12 + `docker build -t knot:latest --build-arg UID=$(id -u www-data) --build-arg GID=$(id -u www-data) .` 13 13 2. In this directory, create bind mount directories with `mkdir keys repositories server` 14 14 3. Ensure `repositories` and `server` are owned by `www-data` 15 15 with `chown www-data:www-data repositories server` ··· 17 17 4. Create Docker container with `docker-compose up -d` 18 18 5. Knot is now ready for reverse proxy from `KNOT_SERVER_HOSTNAME:443` to local port 5555 19 19 (knot verification will not work over HTTP port 80!) 20 - 21 - <!-- 22 - Once the container is up, the Git repositories directory 23 - needs to be specified explicitly as `/home/git/repositories` in `AuthorizedKeysCommand` 24 - (see [knot-hosting](https://tangled.sh/@tangled.sh/core/blob/master/docs/knot-hosting.md#repositories)). 25 - Create the file `/etc/ssh/sshd_config.d/authorized_keys_command.conf` with the following: 26 - 27 - ``` 28 - Match User git 29 - AuthorizedKeysCommand /usr/bin/knot keys -o authorized-keys -git-dir /home/git/repositories 30 - AuthorizedKeysCommandUser nobody 31 - ``` 32 - 33 - (This should probably be done in the Dockerfile when building the image.) 34 - --> 35 20 36 21 ## Repository troubleshooting 37 22