forked from coop-cloud/gitea
Compare commits
8
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
975fc775c1 | ||
|
|
199196461e | ||
|
|
8c5ba669aa | ||
|
|
a907b39ea5 | ||
|
|
0ce3933fce | ||
|
|
d9455c210f | ||
|
|
deb00dcd64 | ||
|
|
6a63f8a0bc |
@@ -3,16 +3,14 @@
|
||||
[](https://drone.coopcloud.tech/coop-cloud/gitea)
|
||||
|
||||
<!-- metadata -->
|
||||
|
||||
- **Category**: Development
|
||||
- **Status**: ❷💛
|
||||
- **Image**: [`gitea/gitea`](https://hub.docker.com/gitea/gitea), ❶💚, upstream
|
||||
- **Healthcheck**: Yes
|
||||
- **Backups**: No
|
||||
- **Email**: ?
|
||||
- **Tests**: ❷💛
|
||||
- **SSO**: ❶💚 (OAuth)
|
||||
|
||||
* **Category**: Development
|
||||
* **Status**: 3, stable
|
||||
* **Image**: [`gitea/gitea`](https://hub.docker.com/gitea/gitea), 4, upstream
|
||||
* **Healthcheck**: Yes
|
||||
* **Backups**: Yes
|
||||
* **Email**: ?
|
||||
* **Tests**: 2
|
||||
* **SSO**: 3 (OAuth)
|
||||
<!-- endmetadata -->
|
||||
|
||||
## Basic usage
|
||||
@@ -24,3 +22,40 @@
|
||||
4. `abra app YOURAPPDOMAIN config` - be sure to change `$DOMAIN` to something that resolves to
|
||||
your Docker swarm box
|
||||
5. `abra app YOURAPPDOMAIN deploy`
|
||||
|
||||
## Create first user
|
||||
|
||||
Run
|
||||
|
||||
```bash
|
||||
abra app run YOURAPPNAME app gitea -c /etc/gitea/app.ini admin user create --username USERNAME --admin --random-password --email EMAIL
|
||||
```
|
||||
|
||||
See the [Gitea command-line documentation](https://docs.gitea.io/en-us/command-line/) for more options. Make sure not to forget the `-c /etc/gitea/app.ini`.
|
||||
|
||||
## Enable SSH
|
||||
|
||||
You most certainly want to be able to access your repository over SSH. To do so, make sure you uncomment the right lines in the configuration for `traefik`.
|
||||
```
|
||||
abra app config YOURTRAEFIKAPP
|
||||
```
|
||||
There uncomment or add these lines:
|
||||
```
|
||||
GITEA_SSH_ENABLED=1
|
||||
COMPOSE_FILE="compose.yml:compose.gitea.yml"
|
||||
```
|
||||
Then redeploy traefik:
|
||||
```
|
||||
abra app undeploy YOURTRAEFIKAPP
|
||||
abra app deploy YOURTRAEFIKAPP
|
||||
```
|
||||
You might need to wait a bit. To check if it worked, you can run
|
||||
```
|
||||
telnet my.gitea.example.com 2222
|
||||
```
|
||||
Once you have added a public SSH key, you can check that you can connect to your gitea server with
|
||||
```
|
||||
ssh -T -p 2222 git@my.gitea.example.com
|
||||
```
|
||||
|
||||
Note that gitea should be configured to listen to port 2222, i.e. `GITEA_SSH_PORT=2222` in the gitea config.
|
||||
|
||||
Reference in New Issue
Block a user