Files
ansible-fet/doc/gitea.md
2018-11-04 14:06:43 +01:00

38 lines
877 B
Markdown

# Gitea
## Setup using installer, create user root
```shell
vim /etc/gitea.conf
INSTALL_LOCK to false
```
## Gitea LDAP Authentication settings
- Authentication Type: `LDAP (via BindDN)`
- Authentication Name: `LDAP`
- Security Protocol: `Unencrypted`
- Host: `gagarin`
- Port: `389`
- User Search Base: `dc=fet,dc=htu,dc=tuwien,dc=ac,dc=at`
- User Filter: `(&(objectClass=posixAccount)(uid=%s))`
- Admin Filter: doesn't work, otherwise `(memberOf=cn=admin,ou=groups,dc=fet,dc=htu,dc=tuwien,dc=ac,dc=at)`
- First name attribute: `givenName`
- Surname attribute: `sn`
- Email attribute: `mail`
No Bind-DN and password needed!
## Create backup dump to file
```shell
cd /var/lib/gitea/
sudo -u _gitea gitea dump -c /etc/gitea.conf
```
## Reset root password
```shell
cd /var/lib/gitea/
sudo -u _gitea gitea admin change-password --config /etc/gitea.conf -u root -p pw
```