{"id":20332086,"url":"https://github.com/aspyatkin/gogs-cookbook","last_synced_at":"2026-03-06T07:31:11.214Z","repository":{"id":73686812,"uuid":"59270845","full_name":"aspyatkin/gogs-cookbook","owner":"aspyatkin","description":"Chef cookbook to install Gogs Git service","archived":false,"fork":false,"pushed_at":"2021-08-25T07:44:17.000Z","size":66,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-04T12:43:26.018Z","etag":null,"topics":["chef","gogs"],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/aspyatkin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2016-05-20T06:34:17.000Z","updated_at":"2021-08-25T07:44:18.000Z","dependencies_parsed_at":"2023-02-24T01:16:02.403Z","dependency_job_id":null,"html_url":"https://github.com/aspyatkin/gogs-cookbook","commit_stats":null,"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"purl":"pkg:github/aspyatkin/gogs-cookbook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aspyatkin%2Fgogs-cookbook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aspyatkin%2Fgogs-cookbook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aspyatkin%2Fgogs-cookbook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aspyatkin%2Fgogs-cookbook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aspyatkin","download_url":"https://codeload.github.com/aspyatkin/gogs-cookbook/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aspyatkin%2Fgogs-cookbook/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30165617,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T04:43:31.446Z","status":"ssl_error","status_checked_at":"2026-03-06T04:40:30.133Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["chef","gogs"],"created_at":"2024-11-14T20:24:57.794Z","updated_at":"2026-03-06T07:31:11.186Z","avatar_url":"https://github.com/aspyatkin.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gogs-cookbook\nChef cookbook to install [Gogs](https://gogs.io) Git service.\n\n## Usage\n\n`gogs_app` resource should be used to install [Gogs](https://gogs.io) Git service.\n\n```ruby\ngogs_app 'default' do\n  postgres_host '127.0.0.1'\n  postgres_port 5432\n  postgres_database 'gogs'\n  postgres_user 'gogs'\n  postgres_password 'TOPSECRET'\n  redis_host '127.0.0.1'\n  redis_port 6379\n  secure true\n  conf(\n    'server' =\u003e {\n      'fqdn' =\u003e 'git.example'\n    },\n    'email' =\u003e {\n      'enabled' =\u003e true,\n      'host' =\u003e 'mx.example',\n      'port' =\u003e 587,\n      'user' =\u003e 'admin@git.example',\n      'password' =\u003e 'TOPSECRET',\n      'from' =\u003e 'Gogs \u003cadmin@git.example\u003e'\n    }\n  )\n  action :install\nend\n```\n\nIt is expected that PostgreSQL and Redis are already set up on the node before utilizing this resource. One may use the corresponding Supermarket cookbooks (e.g. [postgresql](https://supermarket.chef.io/cookbooks/postgresql) and [redisio](https://supermarket.chef.io/cookbooks/redisio)) so as to install and configure them.\n\n## Tips\n\nScripts are created in a directory specified by `service_script_dir` property (`/usr/local/bin` by default). Scripts are meant to be run by a user that can `su` as a Gogs service user (`git` by default). Paths to scripts are exposed in `node.run_state['gogs']['create_admin_script']` and `node.run_state['gogs']['backup_script']`.\n\n### Creating an admin user\n\nRun a simple interactive program to create a Gogs admin user.\n\n```sh\n$ gogs-create-admin\nUsername: git-admin\nPassword:\nRepeat password:\nEmail: git-admin@example.com\n\nNew user 'git-admin' has been successfully created!\n```\n\n### Backing up\n\nCreates a zip archive containing Gogs backup data in a current directory.\n\n```sh\n$ gogs-backup\n```\n\n## License\nMIT © [Alexander Pyatkin](https://github.com/aspyatkin)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faspyatkin%2Fgogs-cookbook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faspyatkin%2Fgogs-cookbook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faspyatkin%2Fgogs-cookbook/lists"}