{"id":23037167,"url":"https://github.com/idlephysicist/mytea","last_synced_at":"2026-04-30T06:39:47.412Z","repository":{"id":101089945,"uuid":"292895435","full_name":"IdlePhysicist/mytea","owner":"IdlePhysicist","description":"Configuration files for my Gitea installation.","archived":false,"fork":false,"pushed_at":"2020-09-04T22:54:49.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-10T11:14:11.393Z","etag":null,"topics":["docker","gitea"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IdlePhysicist.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-04T16:26:21.000Z","updated_at":"2020-09-05T14:48:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"2d597ca0-6bc6-49fc-ac7c-63889a03a6d9","html_url":"https://github.com/IdlePhysicist/mytea","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/IdlePhysicist/mytea","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IdlePhysicist%2Fmytea","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IdlePhysicist%2Fmytea/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IdlePhysicist%2Fmytea/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IdlePhysicist%2Fmytea/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IdlePhysicist","download_url":"https://codeload.github.com/IdlePhysicist/mytea/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IdlePhysicist%2Fmytea/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32457110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","gitea"],"created_at":"2024-12-15T17:29:31.080Z","updated_at":"2026-04-30T06:39:47.397Z","avatar_url":"https://github.com/IdlePhysicist.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MyTea\n\nThis repo is heavily based on High Tea ([repo here](https://git.habd.as/comfusion/high-tea.git)), compiled by Josh Habdas ([homepage](https://habd.as/))\n\nThis installation user Postgres, and Traefik to compliment Gitea.\n\n## Setting it up\nBy far the trickiest part is allowing SSH passthrough to the container, if you can live without SSH Git access then this will be a breeze. But it was something I could not give up, for this “guide” I will assume you want SSH Git access.\n\nYou’ll need docker-ce and docker-compose installed on the server.\n\nBefore you run `docker-compose up -d` you’ll need to have a `git` user on your host machine (the Lightsail instance), you can create it as follows.\n\n```\nadduser \\\n   --system \\\n   --shell /bin/bash \\\n   --gecos 'Git Version Control' \\\n   --group \\\n   --disabled-password \\\n   --home /home/git \\\n   git\n```\n\nThen you need to create the following directory structure.\n\n```\nmkdir -p /var/lib/gitea/{custom,data,log}\nchown -R git:git /var/lib/gitea/\nchmod -R 750 /var/lib/gitea/\nmkdir /etc/gitea\nchown root:git /etc/gitea\nchmod 770 /etc/gitea\n```\n\nClone the [mytea repo](https://github.com/IdlePhysicist/mytea), create your own `env.sh` from the example provided. Then create a docker network for the backend database, and one for the \"frontend\" network.\n\n```\ndocker network create --internal back\ndocker network create front\n```\n\nNow we can source the env.sh file, and fire up the docker-compose file. Assuming that your DNS records have populated you can navigate to your FQDN and complete the web based installation of Gitea.\n\n### The following strictly pertains to the SSH access\n\nFollowing this create the executable file `/app/gitea/gitea` and give it the following contents\n\n```\n#!/bin/sh\nssh -p 2222 -o StrictHostKeyChecking=no git@127.0.0.1 \"SSH_ORIGINAL_COMMAND=\\\"$SSH_ORIGINAL_COMMAND\\\" $0 $@\"\n```\n\nNow create an SSH key for the `git` user\n\n```\nsudo -u git ssh-keygen -t rsa -b 4096 -C \"Gitea Host Key\"\n```\n\nLink the authorised keys file from the container to the same for the `git` user on the host\n\n```\nln -s /var/lib/gitea/git/.ssh/authorized_keys /home/git/.ssh/authorized_keys\n```\n\nNow we need to put the \"Gitea Host Key\" into the authorised keys file for the git user, this allows the SSH access to the container.\n\n```\nsudo -u git bash -c 'echo \"no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty $(cat /home/git/.ssh/id_rsa.pub)\" \u003e\u003e /var/lib/gitea/git/.ssh/authorized_keys'\n```\n\nNow do a `docker-compose restart` for good measure, and after you upload an SSH key to your user in Gitea, test with `ssh -T git@code.speleo.dev`.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidlephysicist%2Fmytea","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fidlephysicist%2Fmytea","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidlephysicist%2Fmytea/lists"}