# Gitea — First-Time Setup ## Prerequisites - DNS: `gitea.` must resolve to the server ## Steps 1. **Create the app:** ```bash abra app new gitea --server --domain gitea. --no-input ``` 2. **Generate secrets:** ```bash abra app secret generate gitea. --all -m --no-input ``` Save output to `recipe-info/testsecrets/gitea.`. 3. **Deploy:** ```bash abra app deploy gitea. --chaos --force --no-input ``` 4. **Create the first admin user:** ```bash abra app run gitea. app gitea -c /etc/gitea/app.ini admin user create \ --username admin --admin --random-password --email admin@example.com ``` 5. **Verify:** curl `https://gitea.` returns HTTP 200. ## SSH Access (optional) To expose Gitea's SSH service, configure Traefik to enable the `gitea-ssh` entrypoint and set `GITEA_SSH_PORT=2222` in the app env file.