1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gitea_ynh.git synced 2024-09-03 20:36:22 +02:00

Update DISCLAIMER.md

This commit is contained in:
Éric Gaspar 2022-07-17 16:21:01 +02:00
parent 3ad42b6b6d
commit 603ecae309
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -1,10 +1,10 @@
## Notes on SSH usage
If you want to use Gitea with SSH and be able to pull/push with you SSH key, your SSH daemon must be properly configured to use private/public keys. Here is a sample configuration of `/etc/ssh/sshd_config` that works with Gogs:
If you want to use Gitea with ssh and be able to pull/push with you ssh key, your ssh daemon must be properly configured to use private/public keys. Here is a sample configuration of `/etc/ssh/sshd_config` that works with Gitea:
```bash
PubkeyAuthentication yes
AuthorizedKeysFile %h/.ssh/authorized_keys
AuthorizedKeysFile /home/%u/.ssh/authorized_keys
ChallengeResponseAuthentication no
PasswordAuthentication no
UsePAM no
@ -19,6 +19,16 @@ Host domain.tld
port 2222 # change this with the port you use
```
You will also need to add the gitea user in the ssh permission with this command:
```bash
sudo adduser gitea ssh.app
```
## Private Mode
Actually it's possible to access to the Git repositories by the `git` command over HTTP also in private mode installation. It's important to know that in this mode the repository could be ALSO getted if you don't set the repository as private in the repos settings.
## Remove Gitea
Due of the backup core only feature the data directory in `/home/yunohost.app/gitea` is not removed unless using thr purge option: `sudo yunohost app remove gitea --purge`