sync notes(auto)
Some checks are pending
Build and Test / build-and-test (macos-latest) (push) Waiting to run
Build and Test / build-and-test (ubuntu-latest) (push) Waiting to run
Build and Test / build-and-test (windows-latest) (push) Waiting to run
Build and Test / publish-tag (push) Waiting to run
/ test (push) Waiting to run
Deploy Quartz site to GitHub Pages / build (push) Waiting to run
Deploy Quartz site to GitHub Pages / deploy (push) Blocked by required conditions

This commit is contained in:
Kaz Saita(raspi5) 2024-08-24 14:15:05 +09:00
parent a1fb801efd
commit b67f847011

View file

@ -1,14 +1,18 @@
# 20240215215031 Raspi 4 5にGitea Forgejoをインストール # 20240215215031 Raspi 4 Forgejoをインストール
#raspi #gitea #cloudflare #raspi #gitea #cloudflare
ForgejoとGiteaで、やることは同じ。適宜読みかえて実行すればよい
#### Forgejoとは
Giteaのfork
[Forgejo Beyond coding. We forge.](https://forgejo.org/)
#### Giteaとは #### Giteaとは
[Documentation | Gitea Documentation](https://docs.gitea.com/) [Documentation | Gitea Documentation](https://docs.gitea.com/)
Git+いろいろでgithubのような便利な機能があるやつ。 Git+いろいろでgithubのような便利な機能があるやつ。
> Gitea is a painless self-hosted all-in-one software development service, it includes Git hosting, code review, team collaboration, package registry and CI/CD. It is similar to GitHub, Bitbucket and GitLab. Gitea was forked from [Gogs](http://gogs.io/) originally and almost all the code has been changed. See the [Gitea Announcement](https://blog.gitea.com/welcome-to-gitea/) blog post to read about the justification for a fork. > Gitea is a painless self-hosted all-in-one software development service, it includes Git hosting, code review, team collaboration, package registry and CI/CD. It is similar to GitHub, Bitbucket and GitLab. Gitea was forked from [Gogs](http://gogs.io/) originally and almost all the code has been changed. See the [Gitea Announcement](https://blog.gitea.com/welcome-to-gitea/) blog post to read about the justification for a fork.
#### Forgejoとは
Giteaのfork
[Forgejo Beyond coding. We forge.](https://forgejo.org/)
#### アップグレード #### アップグレード
バイナリを入れかえればOK。必要ならバックアップする。 詳細はこちら: [Upgrade guide](https://forgejo.org/docs/latest/admin/upgrade/) バイナリを入れかえればOK。必要ならバックアップする。 詳細はこちら: [Upgrade guide](https://forgejo.org/docs/latest/admin/upgrade/)
@ -246,6 +250,22 @@ DISABLE_REGISTRATION = true
を設定しておいた。これで管理者でないと新規ユーザーが作れなくなった(はず)。 を設定しておいた。これで管理者でないと新規ユーザーが作れなくなった(はず)。
※ forgejo stable 8.0 以降、デフォルトで勝手に作られないようになったみたい。 [#3934 - Disable self-registration by default on the install page - forgejo/forgejo - Codeberg.org](https://codeberg.org/forgejo/forgejo/pulls/3934) ※ forgejo stable 8.0 以降、デフォルトで勝手に作られないようになったみたい。 [#3934 - Disable self-registration by default on the install page - forgejo/forgejo - Codeberg.org](https://codeberg.org/forgejo/forgejo/pulls/3934)
### Forgejo Runnerを追加
Github actionsみたいなやつ。
設定方法はここに書いてある
[Forgejo Actions administrator guide | Forgejo Beyond coding. We forge.](https://forgejo.org/docs/v1.20/admin/actions/)
`app.ini`
```ini
[actions]
ENABLED = true
```
を追加してForgejoを再起動。
Runner自体は別バイナリになっているので、それをダウンロード。
### Ref. ### Ref.
- [Gitea Documentation](https://docs.gitea.com/administration/reverse-proxies) - [Gitea Documentation](https://docs.gitea.com/administration/reverse-proxies)
- [【nginx】サブドメインの設定方法 - IT総合Wiki CWiki](https://jpn.itlibra.com/article?id=21226) - [【nginx】サブドメインの設定方法 - IT総合Wiki CWiki](https://jpn.itlibra.com/article?id=21226)