You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Robin Thoni b877f065d0 fixed readme for gitea 6 vuotta sitten
gitea init 6 vuotta sitten
postgresql init 6 vuotta sitten
.gitignore init 6 vuotta sitten
README.md fixed readme for gitea 6 vuotta sitten
docker-compose.yml init 6 vuotta sitten
env init 6 vuotta sitten

README.md

Configure real git user

Create git user:

. ./env
groupadd -g "${PUID}" git
useradd -g git -u "${PGID}" git -d "$(pwd)"/data/gitea/data/git
usermod -a -G docker git

/app/gitea/gitea: (chmod +x)

#!/bin/sh
docker exec -i -u git -e SSH_ORIGINAL_COMMAND="${SSH_ORIGINAL_COMMAND}" gitea-gitea $0 "$@"

/etc/ssh/sshd_config:

Match user git
  PasswordAuthentication no