Update README.md
This commit is contained in:
79
README.md
79
README.md
@@ -1,33 +1,48 @@
|
|||||||
# Gitea
|
# Gitea
|
||||||
|
|
||||||
- [Gitea](#gitea)
|
- [Gitea](#gitea)
|
||||||
- [Links](#links)
|
- [Links](#links)
|
||||||
- [Backup And Restore](#backup-and-restore)
|
- [Backup And Restore](#backup-and-restore)
|
||||||
- [Gitea dump from docker host](#gitea-dump-from-docker-host)
|
- [Gitea dump from docker host](#gitea-dump-from-docker-host)
|
||||||
- [Other References](#other-references)
|
- [Other References](#other-references)
|
||||||
|
|
||||||
## Links
|
## Links
|
||||||
|
|
||||||
- [Homepage](https://gitea.io/)
|
- [Homepage](https://gitea.io/)
|
||||||
- [Documentation](https://docs.gitea.io)
|
- [Documentation](https://docs.gitea.io)
|
||||||
- [API](https://try.gitea.io/api/swagger)
|
- [API](https://try.gitea.io/api/swagger)
|
||||||
- [GitHub](https://github.com/go-gitea)
|
- [GitHub](https://github.com/go-gitea)
|
||||||
|
|
||||||
## Backup And Restore
|
## Backup And Restore
|
||||||
|
|
||||||
_Source - https://docs.gitea.io/en-us/backup-and-restore/_
|
_Source - https://docs.gitea.io/en-us/backup-and-restore/_
|
||||||
|
|
||||||
### Gitea dump from docker host
|
### Gitea dump from docker host
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# exec -> execute
|
# exec -> execute
|
||||||
# -u -> container name
|
# -u -> container name
|
||||||
# -w -> working directory on container
|
# -w -> working directory on container
|
||||||
# bash -c "x" -> execute bash with command x
|
# bash -c "x" -> execute bash with command x
|
||||||
|
|
||||||
/usr/bin/docker exec -u git -w /tmp/backups gitea bash -c "/app/gitea/gitea dump"
|
/usr/bin/docker exec -u git -w /tmp/backups gitea bash -c "/app/gitea/gitea dump"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Other References
|
## nginx
|
||||||
|
|
||||||
|
```bash
|
||||||
|
location / {
|
||||||
|
proxy_pass http://git_limbosolutions_com-gitea:80;
|
||||||
|
proxy_redirect off;
|
||||||
|
proxy_set_header Host $http_host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
proxy_set_header X-Forwarded-Protocol $scheme;
|
||||||
|
proxy_set_header X-Url-Scheme $scheme;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## Other References
|
||||||
|
|
||||||
- limbosolutions gitea hosting https://git.limbosolutions.com (chech the git repository https://git.limbosolutions.com/limbosolutions.com/git.limbosolutions.com )
|
- limbosolutions gitea hosting https://git.limbosolutions.com (chech the git repository https://git.limbosolutions.com/limbosolutions.com/git.limbosolutions.com )
|
||||||
Reference in New Issue
Block a user