您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
Robin Thoni 74505f0008 removed useless env values 5 年前
gitea init 5 年前
postgresql init 5 年前
.gitignore init 5 年前
README.md fixed readme user id 5 年前
docker-compose.yml init 5 年前
env removed useless env values 5 年前

README.md

Configure real git user

Create git user:

groupadd -g 1000 git
useradd -g git -u 1000 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