Compare commits

...
Author SHA1 Message Date
fauno 84702e4819 feat: access logs 2026-09-25 11:07:53 -03:00
fauno c6d152bff7 chore: publish 5.6.3+15.0.9-rootless release 2026-09-23 12:59:32 -03:00
fauno f5b581a487 Merge pull request 'chore(deps): update codeberg.org/forgejo/forgejo docker tag to v15.0.9' (#51) from renovate/codeberg.org-forgejo-forgejo-15.x into main
Reviewed-on: #51
Reviewed-by: fauno <fauno@sutty.coop.ar>
2026-09-23 15:58:34 +00:00
renovate-bot 010c852dc2 chore(deps): update codeberg.org/forgejo/forgejo docker tag to v15.0.9 2026-09-17 16:07:17 +00:00
fauno 92cd920c08 chore: publish 5.6.2+15.0.8-rootless release 2026-09-11 05:23:19 -03:00
fauno 9497e42181 Merge pull request 'chore(deps): update codeberg.org/forgejo/forgejo docker tag to v15.0.8' (#49) from renovate/codeberg.org-forgejo-forgejo-15.x into main
Reviewed-on: #49
Reviewed-by: fauno <fauno@sutty.coop.ar>
2026-09-11 08:22:26 +00:00
renovate-bot f6f204c974 chore(deps): update codeberg.org/forgejo/forgejo docker tag to v15.0.8 2026-09-10 13:07:28 +00:00
fauno a74d85f4b1 Merge pull request 'chore: p4u1 stepping down as maintainer' (#47) from renove-p4u1-maintainer into main
Reviewed-on: #47
Reviewed-by: fauno <fauno@sutty.coop.ar>
2026-08-25 16:36:31 +00:00
p4u1 2283a6046b Update README.md 2026-08-25 15:28:52 +00:00
fauno 41f5172a42 chore: publish 5.6.1+15.0.7-rootless release 2026-08-20 13:00:31 -03:00
fauno d6e6a8d404 Merge pull request 'chore(deps): update codeberg.org/forgejo/forgejo docker tag to v15.0.7' (#46) from renovate/codeberg.org-forgejo-forgejo-15.x into main
Reviewed-on: #46
Reviewed-by: fauno <fauno@sutty.coop.ar>
2026-08-20 15:58:18 +00:00
renovate-bot 3761b0ab5c chore(deps): update codeberg.org/forgejo/forgejo docker tag to v15.0.7 2026-08-20 09:07:48 +00:00
fauno f3fa092011 chore: publish 5.6.0+15.0.6-rootless release 2026-07-30 19:25:59 -03:00
fauno fe308a35bb Merge pull request 'chore(deps): update codeberg.org/forgejo/forgejo docker tag to v15.0.6' (#43) from renovate/codeberg.org-forgejo-forgejo-15.x into main
Reviewed-on: #43
Reviewed-by: fauno <fauno@sutty.coop.ar>
2026-07-30 22:25:30 +00:00
renovate-bot 1b16538e65 chore(deps): update codeberg.org/forgejo/forgejo docker tag to v15.0.6 2026-07-30 21:06:43 +00:00
fauno e49e3034f1 Merge pull request 'feat: sign commits' (#29) from signing into main
Reviewed-on: #29
Reviewed-by: p4u1 <133+p4u1@noreply.git.coopcloud.tech>
2026-07-23 11:13:42 +00:00
fauno 690538efc8 chore: publish 5.5.0+15.0.5-rootless release 2026-07-21 11:16:15 -03:00
fauno 472f53006c Merge branch 'main' of https://git.coopcloud.tech/coop-cloud/forgejo into signing 2026-07-21 11:12:51 -03:00
fauno 505e6ab30a Merge pull request 'feat: prometheus metrics' (#35) from metrics into main
Reviewed-on: #35
Reviewed-by: p4u1 <133+p4u1@noreply.git.coopcloud.tech>
2026-07-21 14:11:46 +00:00
fauno b9f6a463ee Merge pull request 'chore(deps): update codeberg.org/forgejo/forgejo docker tag to v15.0.5' (#39) from renovate/codeberg.org-forgejo-forgejo-15.x into main
Reviewed-on: #39
Reviewed-by: fauno <fauno@sutty.coop.ar>
2026-07-21 14:09:50 +00:00
renovate-bot e047ec2bc3 chore(deps): update codeberg.org/forgejo/forgejo docker tag to v15.0.5 2026-07-21 12:12:24 +00:00
fauno 11fc77d930 feat: expose metrics coop-cloud/monitoring-ng#20 2026-06-16 22:57:59 -03:00
fauno 108c3cb1aa fixup! feat: prometheus metrics 2026-06-12 13:23:00 -03:00
fauno 37a0fd3608 feat: expose metrics token 2026-06-12 13:03:41 -03:00
fauno 5e17977c4c feat: prometheus metrics 2026-06-12 13:00:32 -03:00
fauno 44c276220d fix: symlink signing keys 2026-06-08 12:56:39 -03:00
fauno a46b4c3fdb chore: publish 5.4.0+15.0.2-rootless release 2026-06-05 10:54:39 -03:00
fauno f1237cbed8 Merge branch 'main' of https://git.coopcloud.tech/coop-cloud/forgejo into signing 2026-06-05 10:51:55 -03:00
fauno 96b82f2cb1 Merge pull request 'feat: configurable session provider' (#31) from session into main
Reviewed-on: #31
Reviewed-by: p4u1 <p4u1@noreply.git.coopcloud.tech>
2026-06-05 13:50:59 +00:00
fauno f9c47541ce Merge branch 'main' into session 2026-06-05 10:50:40 -03:00
fauno 850a08f42f Merge pull request 'feat: caching settings' (#32) from caching into main
Reviewed-on: #32
Reviewed-by: p4u1 <p4u1@noreply.git.coopcloud.tech>
2026-06-05 13:49:35 +00:00
fauno 73dc9c6fa0 Merge pull request 'fix: stop the running container first coop-cloud/gitea#53' (#33) from shutdown into main
Reviewed-on: #33
Reviewed-by: p4u1 <p4u1@noreply.git.coopcloud.tech>
2026-06-05 13:49:09 +00:00
fauno aa0de92e5b fix: change default session provider to db
this should help with folks having to log in again after restarts
2026-05-20 10:16:33 -03:00
fauno 65e8718063 fix: stop the running container first coop-cloud/gitea#53 2026-05-19 10:43:38 -03:00
fauno 000de73bb3 fix: allow key rotation 2026-05-16 13:10:16 -03:00
fauno 852903c166 feat: caching settings 2026-05-15 17:00:29 -03:00
fauno b734c56e24 feat: configurable session provider 2026-05-15 16:39:04 -03:00
fauno b0f52307a5 feat: sign commits 2026-05-14 10:09:39 -03:00
fauno de6d1a57ac chore: publish 5.3.1+15.0.2-rootless release 2026-05-14 10:05:33 -03:00
fauno 95d8277ab0 fix: upgrade to 15.0.2 2026-05-14 10:02:53 -03:00
fauno b92d0480e2 chore: publish 5.3.0+15.0.0-rootless release 2026-05-14 10:02:32 -03:00
fauno 1a0a5705e5 Merge pull request 'feat: s3 storage support' (#28) from s3 into main
Reviewed-on: #28
Reviewed-by: p4u1 <p4u1@noreply.git.coopcloud.tech>
2026-05-14 13:02:08 +00:00
fauno f4b2ed1cd9 chore: publish 5.2.0+15.0.0-rootless release 2026-05-14 10:01:34 -03:00
fauno 6cbbb8bc94 Merge pull request 'chore(deps): update codeberg.org/forgejo/forgejo docker tag to v15' (#27) from renovate/codeberg.org-forgejo-forgejo-15.x into main
Reviewed-on: #27
Reviewed-by: fauno <fauno@sutty.coop.ar>
Reviewed-by: p4u1 <p4u1@noreply.git.coopcloud.tech>
2026-05-14 13:00:25 +00:00
fauno 80a43c2a00 fix: compose file version 2026-05-06 14:45:20 -03:00
fauno cda9018607 fix: store secret access key as secret 2026-05-06 14:43:00 -03:00
fauno 761e7cafde feat: s3 storage support 2026-05-05 13:41:09 -03:00
fauno 68542fd9d0 fix: app.ini changed location!
https://codeberg.org/forgejo/forgejo/pulls/11098
2026-04-28 10:45:13 -03:00
fauno 996cdcd812 fix: individual reviewers 2026-04-26 19:33:33 -03:00
renovate-bot bcc1b43c42 chore(deps): update codeberg.org/forgejo/forgejo docker tag to v15 2026-04-24 22:00:02 +00:00
fauno 0d7d090dbc chore: publish 5.1.2+14.0.4-rootless release 2026-04-13 12:26:53 -03:00
fauno c48aca9e0a fix: upgrade to 14.0.4 2026-04-13 12:25:43 -03:00
fauno 05dcbeed88 chore: publish 5.1.1+14.0.3-rootless release 2026-03-10 11:48:55 -03:00
fauno 9bd561123c fix: upgrade to 14.0.3 2026-03-10 11:47:31 -03:00
fauno fd9abbc314 chore: publish 5.1.0+14.0.1-rootless release 2026-01-20 19:59:07 -03:00
fauno 1891af606c Merge pull request 'feat: global limit for repository creation' (#17) from max-creation-limit into main
Reviewed-on: #17
Reviewed-by: p4u1 <p4u1@noreply.git.coopcloud.tech>
2026-01-20 22:55:54 +00:00
fauno 967dfde393 Merge pull request 'chore(deps): update codeberg.org/forgejo/forgejo docker tag to v14' (#23) from renovate/codeberg.org-forgejo-forgejo-14.x into main
Reviewed-on: #23
Reviewed-by: fauno <fauno@sutty.coop.ar>
2026-01-20 22:55:42 +00:00
fauno ae0c540f44 Merge pull request 'feat: toggle internal registration' (#18) from internal-registration into main
Reviewed-on: #18
Reviewed-by: p4u1 <p4u1@noreply.git.coopcloud.tech>
2026-01-20 22:55:15 +00:00
renovate-bot a28e4812f8 chore(deps): update codeberg.org/forgejo/forgejo docker tag to v14 2026-01-18 17:50:43 +00:00
fauno 668b665afb feat: toggle internal registration 2026-01-16 15:52:19 -03:00
fauno 6e8462d494 feat: global limit for repository creation 2026-01-16 15:37:17 -03:00
fauno af279eeab8 Merge pull request 'feat: renovate assigns reviewers automatically' (#16) from reviewers into main
Reviewed-on: #16
Reviewed-by: p4u1 <p4u1@noreply.git.coopcloud.tech>
2026-01-16 18:23:32 +00:00
fauno ab0a3df75f feat: renovate assigns reviewers automatically 2026-01-16 09:59:52 -03:00
fauno df61cea056 Merge pull request 'feat: maintainers' (#14) from maintainers into main
Reviewed-on: #14
Reviewed-by: p4u1 <p4u1@noreply.git.coopcloud.tech>
2026-01-16 06:16:02 +00:00
fauno bad55853c6 fix: two weeks 2026-01-15 11:59:23 -03:00
fauno 5d8e984ec9 feat: maintainers 2026-01-12 10:15:57 -03:00
fauno 675d6b9347 chore: publish 5.0.3+13.0.4-rootless release 2026-01-10 16:47:55 -03:00
fauno 9696bef17a Merge pull request 'feat: anubis' (#10) from anubis into main
Reviewed-on: #10
Reviewed-by: p4u1 <p4u1@noreply.git.coopcloud.tech>
2026-01-10 17:57:36 +00:00
fauno 670c6d070e Merge branch 'main' into anubis 2026-01-10 00:44:34 -03:00
fauno 51f9ec7564 chore: publish 5.0.2+13.0.4-rootless release 2026-01-10 00:39:54 -03:00
fauno 5a63921823 Merge branch 'main' of https://git.coopcloud.tech/coop-cloud/forgejo 2026-01-10 00:39:21 -03:00
fauno 618dc563b2 Merge branch 'main' into anubis 2026-01-10 00:27:48 -03:00
fauno 865f228137 fix: upgrade to 13.0.4 2026-01-10 00:27:19 -03:00
fauno 8d3a8942d6 doc: readme 2026-01-10 00:25:15 -03:00
p4u1 08551b2972 chore: update .env.sample 2025-12-30 11:32:17 +01:00
fauno 29f71e90c5 feat: anubis 2025-12-24 18:41:16 -03:00
p4u1 64289a49ea chore: publish 5.0.1+13.0.3-rootless release 2025-11-28 12:02:51 +01:00
p4u1 072e0a9bcd Merge pull request 'chore: Configure Renovate' (#1) from renovate/configure into main
Reviewed-on: #1
2025-11-20 18:41:08 +00:00
renovate-bot 7baf5edeee Add renovate.json 2025-11-20 17:45:36 +00:00
p4u1 43c493dd70 chore: publish 5.0.0+13.0.2-rootless release 2025-10-30 17:03:44 +01:00
p4u1 3adf9d3915 upgrade forgejo to 13 2025-10-30 17:01:23 +01:00
p4u1 c0afa0fa48 add ENABLE_INTERNAL_SIGNIN 2025-10-30 17:01:02 +01:00
p4u1 19cf5e34ee chore: publish 4.0.2+12.0.2-rootless release 2025-10-27 21:40:07 +01:00
p4u1 dbf2be1463 add missing secret 2025-10-27 21:39:53 +01:00
p4u1 288f1df668 chore: publish 4.0.1+12.0.2-rootless release 2025-10-27 21:35:28 +01:00
p4u1 32b1979f48 bump app ini version 2025-10-27 21:35:13 +01:00
p4u1 cde0087d69 chore: publish 4.0.0+12.0.2-rootless release 2025-10-27 20:09:00 +01:00
p4u1 ef74971b0e make forgejo the default 2025-10-27 19:53:06 +01:00
p4u1 d86d742ed1 Adds missing access controll headers 2025-10-27 18:29:54 +01:00
fauno 989294173e chore: publish 3.5.2+1.24.2-rootless release 2025-09-01 07:44:54 -03:00
fauno 4e789bf977 fix: forgejo 12.0.2 2025-09-01 07:38:52 -03:00
fauno 485fa32512 chore: publish 3.5.1+1.24.2-rootless release 2025-07-26 01:35:54 -03:00
fauno 54fd30f38a fix: forgejo 12.0.1 2025-07-26 01:33:48 -03:00
fauno 6d586f6ad3 chore: publish 3.5.0+1.24.2-rootless release 2025-07-19 11:42:35 -03:00
fauno 8c9793ace9 feat: upgrade to forgejo 12 2025-07-19 11:41:41 -03:00
3wordchant 4cfc2ac2e0 chore: publish 3.4.0+1.24.2-rootless release 2025-06-25 18:34:34 +01:00
fauno ca4733a0b0 fix: upgrade forgejo to 11.0.2 2025-06-19 10:26:08 -03:00
fauno 5a65ef04c5 Merge pull request 'feat: forgejo 11' (#45) from forgejo into master
Reviewed-on: coop-cloud/gitea#45
2025-06-19 13:21:57 +00:00
3wordchant 270ed7bb93 chore: publish 3.3.1+1.23.8-rootless release 2025-05-16 20:54:29 +02:00
3wordchant b2c9d95e60 Merge pull request 'fix: security release' (#44) from upgrade into master
Reviewed-on: coop-cloud/gitea#44
2025-05-16 18:53:40 +00:00
3wordchant 88b226f713 Merge branch 'master' into upgrade 2025-05-16 18:53:32 +00:00
fauno 94af9cea9e feat: forgejo 11 2025-05-15 14:36:29 -03:00
fauno 85dcf3a0b1 Merge pull request 'forgejo upgrade' (#41) from forgejo into master
Reviewed-on: coop-cloud/gitea#41
Reviewed-by: decentral1se <decentral1se@noreply.git.coopcloud.tech>
2025-05-15 17:27:24 +00:00
fauno 3840e87f2f fix: security release
https://blog.gitea.com/release-of-1.23.8/
2025-05-15 14:24:52 -03:00
fauno 777aad5da4 Merge branch 'master' into forgejo 2025-05-15 14:22:53 -03:00
fauno 5350ce207f Merge pull request 'feat: lfs server' (#42) from lfs into master
Reviewed-on: coop-cloud/gitea#42
2025-05-15 17:22:06 +00:00
cas 2bfec14654 Update .drone.yml 2025-04-10 10:50:49 -07:00
fauno b44e18f063 feat: configuration by forge 2025-02-20 09:17:58 -03:00
fauno 77624221b4 feat: lfs server 2025-02-18 15:44:59 -03:00
fauno ce632c8e5f Merge branch 'master' of https://git.coopcloud.tech/coop-cloud/gitea 2025-02-13 12:29:31 -03:00
fauno cac5c8d694 feat: upgrade to forgejo 10.0.1 2025-02-13 12:29:09 -03:00
knoflook cf2298162d chore: publish 3.3.0+1.23.1-rootless release 2025-02-12 14:35:34 +01:00
knoflook 0bbac9ed9c feat: refresh token validity 2025-02-12 14:34:11 +01:00
fauno 8ffd4d33be chore: publish 3.2.0+1.23.1-rootless release 2025-01-21 10:23:43 -03:00
fauno 7364f0b87c feat: update forgejo to version 10.0.0 2025-01-21 10:23:08 -03:00
javielico 1619c333c3 chore: publish 3.1.1+1.23.1-rootless release 2025-01-18 15:14:06 +00:00
javielico 6d681457f8 chore: publish 3.1.0+1.23.0-rootless release 2025-01-18 15:13:22 +00:00
3wordchant b2087cf373 chore: publish 3.0.3+1.22.6-rootless release 2025-01-15 12:09:07 -05:00
3wordchant 1418946974 Whoops, typo 😳 2025-01-14 17:37:38 -05:00
3wordchant 407e587646 chore: publish 3.0.2+1.22.6-rootless release 2025-01-08 12:56:24 -05:00
fauno b4fdbfdbbb Merge pull request 'feat: toggle push to create' (#40) from push-to-create into master
Reviewed-on: coop-cloud/gitea#40
Reviewed-by: decentral1se <decentral1se@noreply.git.coopcloud.tech>
2025-01-08 12:53:04 +00:00
fauno 544935a5e6 Merge pull request 'feat: sqlite3 support' (#37) from sqlite3 into master
Reviewed-on: coop-cloud/gitea#37
2025-01-07 20:14:28 +00:00
fauno e45aee2257 Merge pull request 'feat: upgrade forgejo' (#38) from forgejo into master
Reviewed-on: coop-cloud/gitea#38
Reviewed-by: decentral1se <decentral1se@noreply.git.coopcloud.tech>
2025-01-07 20:14:12 +00:00
fauno e313c82857 Merge pull request 'feat: support other smtp protocols' (#39) from smtp into master
Reviewed-on: coop-cloud/gitea#39
Reviewed-by: decentral1se <decentral1se@noreply.git.coopcloud.tech>
2025-01-07 20:12:17 +00:00
fauno fb45547f0d fix: provide default 2025-01-07 14:26:12 -03:00
fauno ace3ff1b4a feat: toggle push to create 2025-01-07 13:43:02 -03:00
fauno b84edcbe75 feat: support other smtp protocols 2025-01-07 13:35:01 -03:00
fauno 25fd554ab7 feat: upgrade forgejo 2025-01-07 13:31:59 -03:00
fauno b4273a95e3 feat: sqlite3 support 2025-01-07 13:30:03 -03:00
3wordchant daf4a26f72 chore: publish 3.0.1+1.22.3-rootless release 2024-10-30 13:36:29 -04:00
3wordchant 7fec94eaec chore: publish 3.0.0+1.22.2-rootless release 2024-10-30 13:25:04 -04:00
moritz 0bfb666dd0 chore: publish 2.11.0+1.22.2-rootless release 2024-10-29 13:55:44 +01:00
moritz 2554109fab update forgejo to version 9.0.1 2024-10-29 13:55:32 +01:00
moritz bd57d6121b update backupbot label 2024-10-24 17:01:04 +02:00
3wordchant cae11a78e6 chore: publish 2.10.1+1.22.2-rootless release 2024-10-02 14:01:17 -04:00
javielico 8e8809fd07 chore: publish 2.10.0+1.22.1-rootless release 2024-08-23 19:21:01 +01:00
moritz 24e4b09b07 chore: publish 2.9.1+1.22.0-rootless release 2024-08-15 12:25:05 +02:00
moritz 43d43fb2b7 fix APP_INI_VERSION 2024-08-15 12:24:30 +02:00
3wordchant c5dada903e chore: publish 2.9.0+1.22.0-rootless release 2024-07-03 14:26:42 -04:00
moritz 9687f7f738 chore: publish 2.8.0+1.21.11-rootless release 2024-05-13 16:20:13 +02:00
moritz 92073fbba5 fix backup label 2024-04-30 15:18:21 +02:00
moritz f26296ba5c add backup label 2024-04-29 15:24:13 +02:00
javielico baacc575c2 chore: publish 2.7.0+1.21.11-rootless release 2024-04-24 21:03:14 +01:00
javielico 53ffe86350 Merge pull request 'Adding more variable configs' (#36) from javielico/gitea:master into master
Reviewed-on: coop-cloud/gitea#36
Reviewed-by: decentral1se <decentral1se@noreply.git.coopcloud.tech>
2024-04-24 10:01:46 +00:00
javielico dbde635976 Removing access log to false as fallback has been removed on Gitea 1.21 2024-04-23 21:45:55 +01:00
javielico 2b15ff9c28 Added components to app.ini 2024-04-23 16:13:28 +01:00
javielico 94de0096fc Adding DISABLE_AUTH 2024-04-18 19:01:32 +01:00
javielico e0d73083e2 Adding variable configs 2024-04-14 20:48:18 +01:00
decentral1se ced3ea7978 chore: publish 2.6.2+1.21.10-rootless release 2024-04-01 17:05:17 +02:00
decentral1se 43abfe0483 chore: publish 2.6.1+1.21.10-rootless release 2024-04-01 16:38:05 +02:00
decentral1se 4683a81eeb Merge pull request 'feat: enable indexer for search' (#33) from indexer into master
Reviewed-on: coop-cloud/gitea#33
2024-04-01 11:58:54 +00:00
decentral1se ea7e26698a feat: enable indexer for search [ci skip]
See coop-cloud/organising#589
2024-03-31 01:31:39 +01:00
3wordchant 3815417c2c chore: publish 2.6.0+1.21.5-rootless release 2024-03-30 16:07:28 -03:00
3wordchant 4421f81a35 Add healthcheck, update metadata 2024-03-30 16:05:32 -03:00
3wordchant a0e8ba4839 chore: publish 2.5.2+1.21.5-rootless release 2024-02-08 14:36:08 -03:00
3wordchant ca9d0b4a6c chore: publish 2.5.1+1.21.4-rootless release 2024-01-17 17:56:28 -03:00
cas 9d44d9e61c add [repository.upload] support to the configuration
Note: Requires updates to config file so add this to the release notes.
2023-12-07 18:01:05 -08:00
cas 464c890afb Add LANDING_PAGE support for configuration 2023-12-07 17:47:53 -08:00
knoflook c8ea2ddf0c chore: publish 2.5.0+1.21.1-rootless release 2023-11-27 13:10:23 +01:00
3wordchant b0ce473627 chore: publish 2.4.0+1.21.0-rootless release 2023-11-20 12:43:42 +00:00
3wordchant 73970dd79c chore: publish 2.3.3+1.20.5-rootless release 2023-10-30 12:43:03 +00:00
3wordchant 9153c4db2a chore: publish 2.3.2+1.20.3-rootless release 2023-08-28 14:08:11 +02:00
3wordchant b95eae3b57 chore: publish 2.3.1+1.20.1-rootless release 2023-07-25 12:53:45 +01:00
3wordchant d18379a364 Bump APP_INI_VERSION 2023-07-25 12:52:59 +01:00
3wordchant 46bb242fe7 chore: publish 2.3.0+1.20.1-rootless release 2023-07-25 12:50:30 +01:00
philippr f9249f1284 chore: publish 2.2.0+1.19.3-rootless release 2023-06-06 17:31:14 +02:00
philippr 9fe02cb19f reduce logging verbosity 2023-06-06 16:19:52 +02:00
javielico 1e612d84a2 Merge pull request 'Updated images for MariaDB/Gitea and Postgres to latest stable or LTS' (#31) from javielico/gitea:master into master
Reviewed-on: coop-cloud/gitea#31
2023-05-18 10:36:25 +00:00
javielico 77dd223f94 Added commit message warning about Pgsql upgrade 2023-05-09 20:31:17 +01:00
javielico d5577a0f75 Mariadb to stable lts 10.11.2 2023-05-08 21:03:09 +01:00
javielico 8f5587099d Postgres up to 15.2 2023-05-08 21:01:16 +01:00
javielico d56a1474fe Gitea up to latest stable 1.19.3 2023-05-08 20:58:58 +01:00
javielico dc3f54d5ea Merge pull request 'master' (#1) from coop-cloud/gitea:master into master
Reviewed-on: javielico/gitea#1
2023-05-08 19:47:16 +00:00
cas 8b466acf66 chore: publish 2.1.0+1.18.5-rootless release 2023-03-15 13:18:39 -07:00
3wordchant 9cf26a0154 Switch to thecoopcloud/stack-ssh-deploy 2023-01-20 23:31:14 -08:00
3wordchant a04fe41c1b Specify mariadb for tests 2023-01-20 22:38:13 -08:00
3wordchant 63118ecbd8 Fix CI by adding networks: [mass update] 2023-01-20 22:32:13 -08:00
3wordchant cd0fff667a Automatically generate catalogue on release [mass update]
Re: coop-cloud/recipes-catalogue-json#4
2023-01-20 22:32:13 -08:00
philippr 9413c79e8f chore: publish 2.0.1+1.18.2-rootless release 2023-01-20 11:00:24 +01:00
philippr 7d7761dec6 feat: add forgejo overwrite 2023-01-20 10:55:04 +01:00
philippr 936fb940cb Revert "fix: drop db_password from main compose def"
This reverts commit 89400089ec.

db_password secret is still needed in app service to set the db
secret in app.ini.tmpl
2023-01-20 10:50:35 +01:00
3wordchant e2cd36873c Update abra syntax in examples (finally) [mass update] 2023-01-19 16:27:03 -08:00
decentral1se 89400089ec fix: drop db_password from main compose def
Now available in mariadb/postgresql compose files.
2023-01-17 10:45:19 +01:00
philippr 1ea412525f chore: publish 2.0.0+1.18.0-rootless release 2023-01-09 17:02:07 +01:00
philippr 910dac0c1b add: postgresdb alternative 2023-01-09 16:54:54 +01:00
3wordchant f7ee9b63c4 Add optional CORS headers 2023-01-08 19:12:53 -08:00
3wordchant a1dde38834 Switch to <recipe>.example.com 2022-11-24 10:53:27 -08:00
decentral1se f35689989c Merge pull request 'Adding Oauth2 options and up on versions' (#29) from javielico/gitea:master into master
Reviewed-on: coop-cloud/gitea#29
2022-11-13 21:54:01 +00:00
javielico 1d4dc8e8bb Bump version up on compose.yml 2022-11-13 00:45:23 +00:00
javielico f85eaed26e Adding GITEA_OAUTH2_CLIENT_ENABLED to compose.yml and .env.sample 2022-11-11 16:47:52 +00:00
javielico fbb36d5598 Up versions of gitea and mariadb 2022-11-11 16:15:34 +00:00
javielico 13c8af2356 Version bump 2022-11-11 16:11:33 +00:00
javielico a4cddb7b09 Adding vars to compose.yml 2022-11-11 16:10:38 +00:00
javielico daf24d521f Adding variables to .env.sample 2022-11-11 16:09:27 +00:00
javielico b92ad0d45c Add oauth2_client options 2022-11-11 16:04:33 +00:00
decentral1se af97db8082 chore: publish 1.3.0+1.17.2-rootless release 2022-09-07 14:45:39 +02:00
decentral1se cd39f5fc82 chore: publish 1.2.1+1.16.8-rootless release 2022-06-01 09:46:21 +02:00
appletalk aa84c25a83 Bump app.ini version in abra.sh 2022-05-01 02:39:58 +00:00
appletalk cd3ded3c4e Add disable_gravatar and federated_avatar 2022-04-28 17:50:51 -07:00
decentral1se 0cad878de5 use domain env var 2022-03-27 21:08:50 +02:00
decentral1se 3a47a4164e chore: publish 1.2.0+1.16.3-rootless release 2022-03-09 12:01:02 +01:00
decentral1se 8ead189fde chore: publish 1.1.3+1.15.10-rootless release 2022-01-18 10:26:40 +01:00
decentral1se c8ea311d7d fix: point to new drone instance [ci skip] 2021-12-31 16:31:34 +01:00
aileoia b2f29bc99e docs(README): how to enable SSH 2021-12-31 13:51:29 +01:00
aileoia 741b8701e5 docs(README): correct command creating new user 2021-12-31 13:51:29 +01:00
3wordchant bb1f0f082e Merge pull request 'docs(README): instruction to create first user' (#24) from aileoia/gitea:master into master
Reviewed-on: coop-cloud/gitea#24
2021-12-29 19:31:41 +00:00
aileoia cec9c2c061 docs(README): instruction to create first user 2021-12-29 18:13:43 +01:00
3wordchant fee8fd5342 Goodbye, emojis! 😢
[ci skip]
2021-11-23 12:19:04 +02:00
3wordchant 83a9e9da6b chore: fix README bullet formatting
[ci skip]
2021-11-22 13:42:03 +02:00
3wordchant ee34764179 Update metadata
[ci skip]
2021-11-21 21:51:51 +02:00
3wordchant d0488d3a61 Add preliminary backups 2021-11-21 21:51:11 +02:00
d1admin 7009473b38 chore: release patch version 2021-11-02 21:45:37 +01:00
d1admin 0547336698 chore: bump patch version 2021-10-08 09:43:16 +02:00
26 changed files with 595 additions and 68 deletions
+16 -6
View File
@@ -3,17 +3,21 @@ kind: pipeline
name: deploy to swarm-test.autonomic.zone
steps:
- name: deployment
image: decentral1se/stack-ssh-deploy:latest
image: thecoopcloud/stack-ssh-deploy:latest
settings:
host: swarm-test.autonomic.zone
stack: gitea
networks:
- proxy
generate_secrets: true
purge: true
deploy_key:
from_secret: drone_ssh_swarm_test
compose: "compose.yml:compose.mariadb.yml"
environment:
APP_INI_VERSION: v1
DOCKER_SETUP_SH_VERSION: v1
PG_BACKUP_VERSION: v1
DOMAIN: gitea.swarm-test.autonomic.zone
GITEA_ALLOW_ONLY_EXTERNAL_REGISTRATION: true
GITEA_APP_NAME: Git with solidaritea
@@ -37,11 +41,17 @@ trigger:
- master
---
kind: pipeline
name: recipe release
name: generate recipe catalogue
steps:
- name: release a new version
image: thecoopcloud/drone-abra:latest
image: plugins/downstream
settings:
command: recipe gitea release
deploy_key:
from_secret: abra_bot_deploy_key
server: https://build.coopcloud.tech
token:
from_secret: drone_abra-bot_token
fork: true
repositories:
- toolshed/auto-recipes-catalogue-json
trigger:
event: tag
+90 -5
View File
@@ -1,16 +1,52 @@
TYPE=gitea
TYPE=forgejo
DOMAIN=gitea.example.com
DOMAIN=forgejo.example.com
LETS_ENCRYPT_ENV=production
COMPOSE_FILE="compose.yml"
ENABLE_BACKUPS=true
COMPOSE_FILE="$COMPOSE_FILE:compose.mariadb.yml"
# COMPOSE_FILE="$COMPOSE_FILE:compose.sqlite3.yml"
# COMPOSE_FILE="$COMPOSE_FILE:compose.postgres.yml"
GITEA_DOMAIN=git.example.com
SECRET_LFS_JWT_SECRET_VERSION=v1 # length=43
# Anubis
# COMPOSE_FILE="$COMPOSE_FILE:compose.anubis.yml"
GITEA_DOMAIN="${DOMAIN}"
GITEA_ALLOW_ONLY_EXTERNAL_REGISTRATION=true
GITEA_ALLOW_ONLY_INTERNAL_REGISTRATION=false
GITEA_APP_NAME="Git with solidaritea"
GITEA_AUTO_WATCH_NEW_REPOS=false
GITEA_DISABLE_REGISTRATION=false
GITEA_ENABLE_NOTIFY_MAIL=true
GITEA_ENABLE_OPENID_SIGNIN=true
GITEA_ENABLE_OPENID_SIGNUP=true
GITEA_DISABLE_GRAVATAR=false
GITEA_ENABLE_FEDERATED_AVATAR=true
GITEA_LANDING_PAGE=organizations
GITEA_SHOW_USER_EMAIL=false
GITEA_DISABLE_REGULAR_ORG_CREATION=true
GITEA_DEFAULT_KEEP_EMAIL_PRIVATE=true
GITEA_DEFAULT_ALLOW_CREATE_ORGANIZATION=false
GITEA_ENABLE_USER_HEATMAP=false
GITEA_DEFAULT_USER_VISIBILITY=limited
GITEA_ALLOWED_USER_VISIBILITY_MODES=limited,private
GITEA_DEFAULT_ORG_VISIBILITY=limited
GITEA_REQUIRE_SIGNIN_VIEW=true
GITEA_ENABLE_PUSH_CREATE_USER=false
GITEA_ENABLE_PUSH_CREATE_ORG=false
GITEA_LFS_START_SERVER=false
GITEA_MAX_CREATION_LIMIT=-1
GITEA_SESSION_PROVIDER=db
GITEA_CACHE_ADAPTER=memory
GITEA_CACHE_HOST=
GITEA_CACHE_ITEM_TTL=16h
GITEA_REPO_UPLOAD_ENABLED=true
GITEA_REPO_UPLOAD_ALLOWED_TYPES=*/*
GITEA_REPO_UPLOAD_MAX_SIZE=50
GITEA_REPO_UPLOAD_MAX_FILES=5
GITEA_MAILER_FROM=noreply@example.com
GITEA_MAILER_USER=noreply@example.com
@@ -24,8 +60,57 @@ SECRET_DB_ROOT_PASSWORD_VERSION=v1
SECRET_JWT_SECRET_VERSION=v1 # length=43
SECRET_SECRET_KEY_VERSION=v1 # length=64
# Change to "minio" an configure to enable S3 storage
# https://forgejo.org/docs/latest/admin/setup/storage/
GITEA_STORAGE_TYPE=local
# MINIO_ENDPOINT=
# MINIO_ACCESS_KEY_ID=
# SECRET_MINIO_SECRET_ACCESS_KEY_VERSION=v1
# MINIO_BUCKET=
# MINIO_BUCKET_LOOKUP=auto
# MINIO_LOCATION=garage
# MINIO_CHECKSUM_ALGORITHM=default
# COMPOSE_FILE="$COMPOSE_FILE:compose.s3.yml"
# Instance Commit Signing
# https://forgejo.org/docs/latest/admin/advanced/signing/
# COMPOSE_FILE="$COMPOSE_FILE:compose.signing.yml"
# GITEA_SIGNING_ENABLED=1
# SECRET_SIGNING_PUBLIC_KEY_VERSION=v1
# SECRET_SIGNING_PRIVATE_KEY_VERSION=v1
# SMTP Mailer
# COMPOSE_FILE="compose.yml:compose.smtp.yml"
# COMPOSE_FILE="$COMPOSE_FILE:compose.smtp.yml"
# GITEA_SMTP_MAILER_ENABLED=1
# GITEA_MAILER_HOST=mail.gandi.net:465
# GITEA_MAILER_ADDR=mail.gandi.net
# GITEA_MAILER_PORT=465
# SECRET_SMTP_PASSWORD_VERSION=v1
# GITEA_MAILER_PROTOCOL=smtps
# OATH2 Options
# GITEA_REGISTER_EMAIL_CONFIRM=replace-me
# GITEA_REGISTER_EMAIL_CONFIRM=replace-me
# GITEA_OAUTH2_USERNAME=replace-me
# GITEA_UPDATE_AVATAR=replace-me
# GITEA_ACCOUNT_LINKING=replace-me
# GITEA_OAUTH2_CLIENT_ENABLED=replace-me
# Lifetime of an OAuth2 refresh token in hours, prolly no need to edit. We
# were hitting issues with infrequently pushed to repos that were not picked
# up by drone after a month of inactivity, hence the option.
# GITEA__oauth2__REFRESH_TOKEN_EXPIRATION_TIME=730
# Indexer (for issue search)
# GITEA_REPO_INDEXER_ENABLED=false
# GITEA_ISSUE_INDEXER_TYPE=db
# GITEA_STARTUP_TIMEOUT=-1
# Prometheus metrics
# FORGEJO_METRICS_ENABLED=false
# FORGEJO_METRICS_ENABLED_ISSUE_BY_LABEL=false
# FORGEJO_METRICS_ENABLED_ISSUE_BY_REPOSITORY=false
# SECRET_FORGEJO_METRICS_TOKEN_VERSION=v1
# COMPOSE_FILE="$COMPOSE_FILE:compose.metrics.yml"
# Enable access logs. See Access logs on Traefik.
#ACCESS_LOGS=true
+32
View File
@@ -0,0 +1,32 @@
# Forgejo Recipe Maintenance
All contributions should be made via a pull request. This is to ensure a
certain quality and consistency, that others can rely on.
## Maintainer Responsibilities
A recipe maintainer has the following responsibilities:
- Respond to pull requests / issues within two weeks
- Make image security updates within a day
- Make image patch / minor updates within a week
- Make image major updates within a month
In order to fullfill these responsibilities a recipe maintainer:
- Has to watch the repository (to get notifications)
- Needs to make sure renovate is configured properly
## Pull Requests
A pull request can be merged if it is approved by at least one maintainer. For
pull requests opened by a maintainer they need to be approved by another
maintainer. Even though it is okay to merge a pull request with one approval, it
is always better if all maintainers looked at the pull request and approved it.
## Become a maintainer
Everyone can apply to be a recipe maintainer:
1. Watch the repository to always get updates
2. Simply add your self to the list in the [README.md](./README.md) and open a new pull request with the change.
3. Once the pull request gets merged you will be added to the [forgejo maintainers team](https://git.coopcloud.tech/org/coop-cloud/teams/forgejo-maintainers).
+70 -15
View File
@@ -1,26 +1,81 @@
# Gitea
# Forgejo
[![Build Status](https://drone.coopcloud.tech/api/badges/coop-cloud/gitea/status.svg)](https://drone.coopcloud.tech/coop-cloud/gitea)
[![Build Status](https://build.coopcloud.tech/api/badges/coop-cloud/forgejo/status.svg)](https://build.coopcloud.tech/coop-cloud/forgejo)
<!-- metadata -->
- **Category**: Development
- **Status**: ❷💛
- **Image**: [`gitea/gitea`](https://hub.docker.com/gitea/gitea), ❶💚, upstream
- **Healthcheck**: Yes
- **Backups**: No
- **Email**: ?
- **Tests**: ❷💛
- **SSO**: ❶💚 (OAuth)
* **Maintainer**: [@fauno](https://git.coopcloud.tech/fauno)
* **Category**: Development
* **Status**: 5
* **Image**: [`forgejo/forgejo`](https://codeberg.org/forgejo/-/packages/container/forgejo/13-rootless), 4, upstream
* **Healthcheck**: Yes
* **Backups**: Yes
* **Email**: Yes
* **Tests**: 2
* **SSO**: 3 (OAuth)
<!-- endmetadata -->
## Basic usage
1. Set up Docker Swarm and [`abra`][abra]
2. Deploy [`coop-cloud/traefik`][cc-traefik]
3. `abra app new gitea --secrets` (optionally with `--pass` if you'd like
3. `abra app new forgejo --secrets` (optionally with `--pass` if you'd like
to save secrets in `pass`)
4. `abra app YOURAPPDOMAIN config` - be sure to change `$DOMAIN` to something that resolves to
4. `abra app config YOURAPPDOMAIN` - be sure to change `$DOMAIN` to something that resolves to
your Docker swarm box
5. `abra app YOURAPPDOMAIN deploy`
5. `abra app deploy YOURAPPDOMAIN`
## Create first user
Run
```bash
abra app run YOURAPPNAME app forgejo -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.
## Protect Forgejo from scrapers with Anubis
Uncomment the Anubis compose file from the `.env` file and re-deploy the
app. Don't forget to actually [enable Anubis on the Traefik app
too](https://recipes.coopcloud.tech/traefik)!
## [Instance Commit Signing](https://forgejo.org/docs/latest/admin/advanced/signing/)
To allow Forgejo to sign commits, uncomment the corresponding
configuration block, and then generate and insert the SSH keys:
```sh
abra app config git.example.coop
ssh-keygen -t ed25519
app app secret insert git.example.coop signing_public_key v1 -f ~/.ssh/id_ed25519.pub
app app secret insert git.example.coop signing_private_key v1 -f ~/.ssh/id_ed25519
app app deploy git.example.coop
```
+15 -2
View File
@@ -1,2 +1,15 @@
export APP_INI_VERSION=v7
export DOCKER_SETUP_SH_VERSION=v1
export APP_INI_VERSION=v27
export DOCKER_SETUP_SH_VERSION=v2
export PG_BACKUP_VERSION=v1
abra_backup_app() {
_abra_backup_dir "app:/var/lib/gitea"
}
abra_backup_db() {
_abra_backup_mysql "db" "gitea"
}
abra_backup() {
abra_backup_app && abra_backup_db
}
+100 -4
View File
@@ -2,16 +2,49 @@ APP_NAME = {{ env "GITEA_APP_NAME" }}
[database]
DB_TYPE = {{ env "GITEA_DB_TYPE" }}
{{ if ne (env "GITEA_DB_TYPE") "sqlite3" }}
HOST = {{ env "GITEA_DB_HOST" }}
NAME = {{ env "GITEA_DB_NAME" }}
PASSWD = {{ secret "db_password" }}
USER = {{ env "GITEA_DB_USER" }}
{{ else }}
SQLITE_JOURNAL_MODE = {{ env "GITEA_SQLITE_JOURNAL_MODE" }}
PATH = {{ env "GITEA_PATH" }}
{{ end }}
[picture]
DISABLE_GRAVATAR = {{ env "GITEA_DISABLE_GRAVATAR" }}
ENABLE_FEDERATED_AVATAR = {{ env "GITEA_ENABLE_FEDERATED_AVATAR" }}
[storage]
STORAGE_TYPE = {{ env "GITEA_STORAGE_TYPE" }}
{{ if eq (env "GITEA_STORAGE_TYPE") "minio" }}
SERVE_DIRECT = false
MINIO_ENDPOINT = {{ env "MINIO_ENDPOINT" }}
MINIO_ACCESS_KEY_ID = {{ env "MINIO_ACCESS_KEY_ID" }}
MINIO_SECRET_ACCESS_KEY = {{ secret "minio_secret_access_key" }}
MINIO_BUCKET = {{ env "MINIO_BUCKET" }}
MINIO_BUCKET_LOOKUP = {{ env "MINIO_BUCKET_LOOKUP" }}
MINIO_LOCATION = {{ env "MINIO_LOCATION" }}
MINIO_USE_SSL = true
MINIO_INSECURE_SKIP_VERIFY = false
MINIO_CHECKSUM_ALGORITHM = {{ env "MINIO_CHECKSUM_ALGORITHM" }}
{{ end }}
[service]
ALLOW_ONLY_EXTERNAL_REGISTRATION = {{ env "GITEA_ALLOW_ONLY_EXTERNAL_REGISTRATION" }}
ALLOW_ONLY_INTERNAL_REGISTRATION = {{ env "GITEA_ALLOW_ONLY_INTERNAL_REGISTRATION" }}
AUTO_WATCH_NEW_REPOS = {{ env "GITEA_AUTO_WATCH_NEW_REPOS" }}
DISABLE_REGISTRATION = {{ env "GITEA_DISABLE_REGISTRATION" }}
ENABLE_NOTIFY_MAIL = {{ env "GITEA_ENABLE_NOTIFY_MAIL" }}
DEFAULT_KEEP_EMAIL_PRIVATE = {{ env "GITEA_DEFAULT_KEEP_EMAIL_PRIVATE" }}
DEFAULT_ALLOW_CREATE_ORGANIZATION = {{ env "GITEA_DEFAULT_ALLOW_CREATE_ORGANIZATION" }}
ENABLE_USER_HEATMAP = {{ env "GITEA_ENABLE_USER_HEATMAP" }}
DEFAULT_USER_VISIBILITY = {{ env "GITEA_DEFAULT_USER_VISIBILITY" }}
ALLOWED_USER_VISIBILITY_MODES = {{ env "GITEA_ALLOWED_USER_VISIBILITY_MODES" }}
DEFAULT_ORG_VISIBILITY = {{ env "GITEA_DEFAULT_ORG_VISIBILITY" }}
REQUIRE_SIGNIN_VIEW = {{ env "GITEA_REQUIRE_SIGNIN_VIEW" }}
ENABLE_INTERNAL_SIGNIN = {{ env "GITEA_ENABLE_INTERNAL_SIGNIN" }}
[openid]
ENABLE_OPENID_SIGNIN = {{ env "GITEA_ENABLE_OPENID_SIGNIN" }}
@@ -19,18 +52,46 @@ ENABLE_OPENID_SIGNUP = {{ env "GITEA_ENABLE_OPENID_SIGNUP" }}
[repository]
DEFAULT_BRANCH = main
ENABLE_PUSH_CREATE_USER = {{ env "GITEA_ENABLE_PUSH_CREATE_USER" }}
ENABLE_PUSH_CREATE_ORG = {{ env "GITEA_ENABLE_PUSH_CREATE_ORG" }}
MAX_CREATION_LIMIT = {{ env "GITEA_MAX_CREATION_LIMIT" }}
[repository.upload]
ENABLED = {{ env "GITEA_REPO_UPLOAD_ENABLED" }}
ALLOWED_TYPES = {{ env "GITEA_REPO_UPLOAD_ALLOWED_TYPES" }}
FILE_MAX_SIZE = {{ env "GITEA_REPO_UPLOAD_MAX_SIZE" }}
MAX_FILES = {{ env "GITEA_REPO_UPLOAD_MAX_FILES" }}
{{ if eq (env "GITEA_SIGNING_ENABLED") "1" }}
[repository.signing]
FORMAT = ssh
SIGNING_KEY = /var/lib/gitea/signing_key.pub
SIGNING_NAME = {{ env "GITEA_APP_NAME" }}
SIGNING_EMAIL = {{ env "GITEA_MAILER_FROM" }}
INITIAL_COMMIT = always
WIKI = always
CRUD_ACTIONS = always
MERGES = always
{{ end }}
[ui]
SHOW_USER_EMAIL = {{ env "GITEA_SHOW_USER_EMAIL" }}
[indexer]
STARTUP_TIMEOUT = 0
REPO_INDEXER_ENABLED = {{ or (env "GITEA_REPO_INDEXER_ENABLED") "false" }}
ISSUE_INDEXER_TYPE= {{ or (env "GITEA_ISSUE_INDEXER_TYPE") "db" }}
STARTUP_TIMEOUT = {{ or (env "GITEA_STARTUP_TIMEOUT") "-1" }}
[server]
DOMAIN = {{ env "GITEA_DOMAIN" }}
LANDING_PAGE = organizations
LANDING_PAGE = {{ env "GITEA_LANDING_PAGE" }}
ROOT_URL = https://%(DOMAIN)s/
SSH_DOMAIN = {{ env "GITEA_DOMAIN" }}
SSH_LISTEN_PORT = {{ env "GITEA_SSH_PORT" }}
SSH_PORT = {{ env "GITEA_SSH_PORT" }}
START_SSH_SERVER = true
LFS_START_SERVER = {{ env "GITEA_LFS_START_SERVER" }}
LFS_JWT_SECRET = {{ secret "lfs_jwt_secret" }}
[security]
INSTALL_LOCK = true
@@ -39,6 +100,9 @@ REVERSE_PROXY_LIMIT = 1
REVERSE_PROXY_TRUSTED_PROXIES = *
SECRET_KEY = {{ secret "secret_key" }}
[admin]
DISABLE_REGULAR_ORG_CREATION = {{ env "GITEA_DISABLE_REGULAR_ORG_CREATION" }}
[oauth2]
JWT_SECRET = {{ secret "jwt_secret" }}
@@ -46,11 +110,21 @@ JWT_SECRET = {{ secret "jwt_secret" }}
[mailer]
ENABLED = true
FROM = {{ env "GITEA_MAILER_FROM" }}
HOST = {{ env "GITEA_MAILER_HOST" }}
PROTOCOL = {{ env "GITEA_MAILER_PROTOCOL" }}
SMTP_ADDR = {{ env "GITEA_MAILER_ADDR" }}
SMTP_PORT = {{ env "GITEA_MAILER_PORT" }}
USER = {{ env "GITEA_MAILER_USER" }}
PASSWD = {{ secret "smtp_password" }}
MAILER_TYPE = smtp
IS_TLS_ENABLED = true
{{ end }}
{{ if eq (env "GITEA_OAUTH2_CLIENT_ENABLED") "1" }}
[oauth2_client]
REGISTER_EMAIL_CONFIRM = {{ env "GITEA_REGISTER_EMAIL_CONFIRM" }}
ENABLE_AUTO_REGISTRATION = {{ env "GITEA_ENABLE_AUTO_REGISTRATION" }}
USERNAME = {{ env "GITEA_OAUTH2_USERNAME" }}
UPDATE_AVATAR = {{ env "GITEA_UPDATE_AVATAR" }}
ACCOUNT_LINKING = {{ env "GITEA_ACCOUNT_LINKING" }}
{{ end }}
[markup.restructuredtext]
@@ -58,3 +132,25 @@ ENABLED = true
FILE_EXTENSIONS = .rst
RENDER_COMMAND = rst2html
IS_INPUT_FILE = false
[log]
MODE=console
LEVEL=WARN
STACKTRACE_LEVEL=None
ENABLE_XORM_LOG=false
[session]
PROVIDER = {{ env "GITEA_SESSION_PROVIDER" }}
[cache]
ADAPTER = {{ env "GITEA_CACHE_ADAPTER" }}
HOST = {{ env "GITEA_CACHE_HOST" }}
ITEM_TTL = {{ env "GITEA_CACHE_ITEM_TTL" }}
{{ if eq (env "FORGEJO_METRICS_ENABLED") "true" }}
[metrics]
ENABLED = {{ env "FORGEJO_METRICS_ENABLED" }}
ENABLED_ISSUE_BY_LABEL = {{ env "FORGEJO_METRICS_ENABLED_ISSUE_BY_LABEL" }}
ENABLED_ISSUE_BY_REPOSITORY = {{ env "FORGEJO_METRICS_ENABLED_ISSUE_BY_REPOSITORY" }}
TOKEN = {{ secret "metrics_token" }}
{{ end }}
+7
View File
@@ -0,0 +1,7 @@
---
version: "3.8"
services:
app:
deploy:
labels:
- "traefik.http.routers.${STACK_NAME}.middlewares=anubis,${STACK_NAME}_cors"
+43
View File
@@ -0,0 +1,43 @@
version: '3.8'
services:
app:
environment:
- GITEA_DB_TYPE=mysql
- GITEA_DB_HOST="db:3306"
- GITEA_DB_NAME=gitea
- GITEA_DB_USER=gitea
secrets:
- db_password
db:
image: "mariadb:10.11.2"
deploy:
labels:
backupbot.backup.pre-hook: 'mysqldump --single-transaction -u root -p"$$(cat /run/secrets/db_root_password)" gitea > /var/lib/mysql/backup.sql'
backupbot.backup.volumes.mariadb.path: "backup.sql"
backupbot.restore.post-hook: "mariadb -u root -p\"$$(cat /run/secrets/db_root_password)\" gitea < /var/lib/mysql/backup.sql"
command: |
mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
environment:
- MYSQL_DATABASE=gitea
- MYSQL_USER=gitea
- MYSQL_PASSWORD_FILE=/run/secrets/db_password
- MYSQL_ROOT_PASSWORD_FILE=/run/secrets/db_root_password
secrets:
- db_password
- db_root_password
volumes:
- "mariadb:/var/lib/mysql"
networks:
- internal
secrets:
db_password:
name: ${STACK_NAME}_db_password_${SECRET_DB_PASSWORD_VERSION}
external: true
db_root_password:
name: ${STACK_NAME}_db_root_password_${SECRET_DB_ROOT_PASSWORD_VERSION}
external: true
volumes:
mariadb:
+16
View File
@@ -0,0 +1,16 @@
---
version: "3.8"
services:
app:
secrets:
- metrics_token
deploy:
labels:
- "prometheus.io/scrape=true"
- "prometheus.io/port=3000"
- "prometheus.io/path=/metrics"
- "prometheus.io/auth=bearer"
secrets:
metrics_token:
name: ${STACK_NAME}_metrics_token_${SECRET_FORGEJO_METRICS_TOKEN_VERSION}
external: true
+45
View File
@@ -0,0 +1,45 @@
version: '3.8'
services:
app:
environment:
- GITEA_DB_TYPE=postgres
- GITEA_DB_HOST="db:5432"
- GITEA_DB_NAME=gitea
- GITEA_DB_USER=gitea
secrets:
- db_password
db:
image: postgres:15.13
deploy:
labels:
backupbot.backup.pre-hook: "/pg_backup.sh backup"
backupbot.backup.volumes.db.path: "backup.sql"
backupbot.restore.post-hook: '/pg_backup.sh restore'
environment:
- POSTGRES_DB=gitea
- POSTGRES_USER=gitea
- POSTGRES_PASSWORD_FILE=/run/secrets/db_password
secrets:
- db_password
volumes:
- db:/var/lib/postgresql/data
networks:
- internal
configs:
- source: pg_backup
target: /pg_backup.sh
mode: 0555
secrets:
db_password:
name: ${STACK_NAME}_db_password_${SECRET_DB_PASSWORD_VERSION}
external: true
volumes:
db:
configs:
pg_backup:
name: ${STACK_NAME}_pg_backup_${PG_BACKUP_VERSION}
file: pg_backup.sh
+10
View File
@@ -0,0 +1,10 @@
---
version: "3.8"
services:
app:
secrets:
- minio_secret_access_key
secrets:
minio_secret_access_key:
name: ${STACK_NAME}_minio_secret_access_key_${SECRET_MINIO_SECRET_ACCESS_KEY_VERSION}
external: true
+14
View File
@@ -0,0 +1,14 @@
version: '3.8'
services:
app:
secrets:
- signing_public_key
- signing_private_key
secrets:
signing_public_key:
name: ${STACK_NAME}_signing_public_key_${SECRET_SIGNING_PUBLIC_KEY_VERSION}
external: true
signing_private_key:
name: ${STACK_NAME}_signing_private_key_${SECRET_SIGNING_PRIVATE_KEY_VERSION}
external: true
+3 -1
View File
@@ -5,8 +5,10 @@ services:
app:
environment:
- GITEA_MAILER_FROM
- GITEA_MAILER_HOST
- GITEA_MAILER_ADDR
- GITEA_MAILER_PORT
- GITEA_MAILER_USER
- "GITEA_MAILER_PROTOCOL=${GITEA_MAILER_PROTOCOL:-smtps}"
secrets:
- smtp_password
+8
View File
@@ -0,0 +1,8 @@
version: '3.8'
services:
app:
environment:
- GITEA_DB_TYPE=sqlite3
- GITEA_SQLITE_JOURNAL_MODE=wal
- GITEA_PATH=/var/lib/gitea/gitea.db
+53 -34
View File
@@ -3,26 +3,23 @@ version: "3.8"
services:
app:
image: "gitea/gitea:1.15.0-rootless"
image: codeberg.org/forgejo/forgejo:15.0.9-rootless
configs:
- source: app_ini
target: /etc/gitea/app.ini
target: /var/lib/gitea/custom/conf/app.ini
- source: docker_setup_sh
target: /usr/local/bin/docker-setup.sh
mode: 0555
secrets:
- db_password
- internal_token
- jwt_secret
- secret_key
- lfs_jwt_secret
environment:
- GITEA_ALLOW_ONLY_EXTERNAL_REGISTRATION
- GITEA_ALLOW_ONLY_INTERNAL_REGISTRATION
- GITEA_APP_NAME
- GITEA_AUTO_WATCH_NEW_REPOS
- GITEA_DB_HOST="db:3306"
- GITEA_DB_NAME=gitea
- GITEA_DB_TYPE=mysql
- GITEA_DB_USER=gitea
- GITEA_DISABLE_REGISTRATION
- GITEA_DOMAIN=${DOMAIN}
- GITEA_ENABLE_NOTIFY_MAIL
@@ -30,19 +27,55 @@ services:
- GITEA_ENABLE_OPENID_SIGNUP
- GITEA_SMTP_MAILER_ENABLED
- GITEA_SSH_PORT
- GITEA_DISABLE_GRAVATAR
- GITEA_ENABLE_FEDERATED_AVATAR
- GITEA_REGISTER_EMAIL_CONFIRM
- GITEA_ENABLE_AUTO_REGISTRATION
- GITEA_OAUTH2_USERNAME
- GITEA_UPDATE_AVATAR
- GITEA_ACCOUNT_LINKING
- GITEA_OAUTH2_CLIENT_ENABLED
- GITEA_CORS_ALLOW_DOMAIN
- GITEA_LANDING_PAGE
- GITEA_REPO_UPLOAD_ENABLED
- GITEA_REPO_UPLOAD_ALLOWED_TYPES
- GITEA_REPO_UPLOAD_MAX_SIZE
- GITEA_REPO_UPLOAD_MAX_FILES
- GITEA_REPO_INDEXER_ENABLED
- GITEA_ISSUE_INDEXER_TYPE
- GITEA_STARTUP_TIMEOUT
- GITEA_SHOW_USER_EMAIL
- GITEA_DISABLE_REGULAR_ORG_CREATION
- GITEA_DEFAULT_KEEP_EMAIL_PRIVATE
- GITEA_DEFAULT_ALLOW_CREATE_ORGANIZATION
- GITEA_ENABLE_USER_HEATMAP
- GITEA_DEFAULT_USER_VISIBILITY
- GITEA_ALLOWED_USER_VISIBILITY_MODES
- GITEA_DEFAULT_ORG_VISIBILITY
- GITEA_REQUIRE_SIGNIN_VIEW
- GITEA__oauth2__REFRESH_TOKEN_EXPIRATION_TIME
- GITEA_LFS_START_SERVER=${GITEA_LFS_START_SERVER:-false}
- GITEA_ENABLE_INTERNAL_SIGNIN
- GITEA_MAX_CREATION_LIMIT=${GITEA_MAX_CREATION_LIMIT:--1}
volumes:
- data:/var/lib/gitea
- config:/etc/gitea
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
networks:
- proxy
- internal
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/api/healthz"]
interval: 30s
timeout: 10s
retries: 10
start_period: 1m
deploy:
update_config:
failure_action: rollback
order: start-first
order: stop-first
labels:
- "backupbot.backup=${ENABLE_BACKUPS:-true}"
- "traefik.enable=true"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
@@ -51,24 +84,15 @@ services:
- "traefik.tcp.routers.${STACK_NAME}-ssh.rule=HostSNI(`*`)"
- "traefik.tcp.routers.${STACK_NAME}-ssh.entrypoints=gitea-ssh"
- "traefik.tcp.services.${STACK_NAME}-ssh.loadbalancer.server.port=${GITEA_SSH_PORT}"
- coop-cloud.${STACK_NAME}.version=1.1.0+1.15.0-rootless
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}_cors"
- "traefik.http.routers.${STACK_NAME}.observability.accesslogs=${ACCESS_LOGS:-false}"
- "traefik.http.middlewares.${STACK_NAME}_cors.headers.accesscontrolallowmethods=GET,OPTIONS,PUT"
- "traefik.http.middlewares.${STACK_NAME}_cors.headers.accesscontrolallowheaders=content-type,authorization"
- "traefik.http.middlewares.${STACK_NAME}_cors.headers.accesscontrolalloworiginlist=https://${GITEA_CORS_ALLOW_DOMAIN}"
- "traefik.http.middlewares.${STACK_NAME}_cors.headers.accesscontrolmaxage=100"
- "traefik.http.middlewares.${STACK_NAME}_cors.headers.addvaryheader=true"
- coop-cloud.${STACK_NAME}.version=5.6.3+15.0.9-rootless
db:
image: "mariadb:10.6"
command: |
mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
environment:
- MYSQL_DATABASE=gitea
- MYSQL_USER=gitea
- MYSQL_PASSWORD_FILE=/run/secrets/db_password
- MYSQL_ROOT_PASSWORD_FILE=/run/secrets/db_root_password
secrets:
- db_password
- db_root_password
volumes:
- "mariadb:/var/lib/mysql"
networks:
- internal
networks:
internal:
@@ -86,12 +110,6 @@ configs:
template_driver: golang
secrets:
db_password:
name: ${STACK_NAME}_db_password_${SECRET_DB_PASSWORD_VERSION}
external: true
db_root_password:
name: ${STACK_NAME}_db_root_password_${SECRET_DB_ROOT_PASSWORD_VERSION}
external: true
internal_token:
name: ${STACK_NAME}_internal_token_${SECRET_INTERNAL_TOKEN_VERSION}
external: true
@@ -101,8 +119,9 @@ secrets:
secret_key:
name: ${STACK_NAME}_secret_key_${SECRET_SECRET_KEY_VERSION}
external: true
lfs_jwt_secret:
name: ${STACK_NAME}_lfs_jwt_secret_${SECRET_LFS_JWT_SECRET_VERSION}
external: true
volumes:
data:
config:
mariadb:
+9 -1
View File
@@ -6,10 +6,18 @@
# Prepare git folder
mkdir -p ${HOME} && chmod 0700 ${HOME}
if [ ! -w ${HOME} ]; then echo "${HOME} is not writable"; exit 1; fi
# Prepare custom folder
mkdir -p ${GITEA_CUSTOM} && chmod 0500 ${GITEA_CUSTOM}
# Prepare temp folder
mkdir -p ${GITEA_TEMP} && chmod 0700 ${GITEA_TEMP}
if [ ! -w ${GITEA_TEMP} ]; then echo "${GITEA_TEMP} is not writable"; exit 1; fi
if [ -e /run/secrets/signing_public_key ] ; then
if [ ! -e /var/lib/gitea/signing_key.pub ]; then
ln -s /run/secrets/signing_public_key /var/lib/gitea/signing_key.pub
ln -s /run/secrets/signing_private_key /var/lib/gitea/signing_key
fi
chmod 600 /var/lib/gitea/signing_key*
fi
+34
View File
@@ -0,0 +1,34 @@
#!/bin/bash
set -e
BACKUP_FILE='/var/lib/postgresql/data/backup.sql'
function backup {
export PGPASSWORD=$(cat $POSTGRES_PASSWORD_FILE)
pg_dump -U ${POSTGRES_USER} ${POSTGRES_DB} > $BACKUP_FILE
}
function restore {
cd /var/lib/postgresql/data/
restore_config(){
# Restore allowed connections
cat pg_hba.conf.bak > pg_hba.conf
su postgres -c 'pg_ctl reload'
}
# Don't allow any other connections than local
cp pg_hba.conf pg_hba.conf.bak
echo "local all all trust" > pg_hba.conf
su postgres -c 'pg_ctl reload'
trap restore_config EXIT INT TERM
# Recreate Database
psql -U ${POSTGRES_USER} -d postgres -c "DROP DATABASE ${POSTGRES_DB} WITH (FORCE);"
createdb -U ${POSTGRES_USER} ${POSTGRES_DB}
psql -U ${POSTGRES_USER} -d ${POSTGRES_DB} -1 -f $BACKUP_FILE
trap - EXIT INT TERM
restore_config
}
$@
+8
View File
@@ -0,0 +1,8 @@
This release adds the possibility to run gitea with postgres.
Please add the following lines to your servers .env file!
```
COMPOSE_FILE="compose.yml"
COMPOSE_FILE="$COMPOSE_FILE:compose.mariadb.yml"
# COMPOSE_FILE="$COMPOSE_FILE:compose.postgres.yml"
```
+2
View File
@@ -0,0 +1,2 @@
Beware that you'll also be updating Postgres if you're running it. Usually with major updates it might involve pg_dumpall / pg_restore either side of the upgrade because the server app doesn't know how to upgrade data storage formats, won't launch if it detects an old data format, a pg_upgrade command is available. More info on https://git.coopcloud.tech/coop-cloud/gitea/pulls/31
+1
View File
@@ -0,0 +1 @@
This release adds a docker healthcheck for the main Gitea service -- please pay careful attention when updating apps, and as always feel free to ask in Matrix if you run into any bugs 🐛
+3
View File
@@ -0,0 +1,3 @@
BEWARE! 🚨 This release updates to the newer Gitea SMTP settings format.
If you are using SMTP, you will need to split the old GITEA_MAILER_HOST into separate GITEA_MAILER_ADDR (hostname) and GITEA_MAILER_PORT settings.
+3
View File
@@ -0,0 +1,3 @@
This recipe was forked from the gitea recipe and should be a drop in replacement.
You can remove this line from your app.env COMPOSE_FILE="$COMPOSE_FILE:compose.forgejo.yml"
+1
View File
@@ -0,0 +1 @@
For breaking changes see: https://codeberg.org/forgejo/forgejo/src/branch/forgejo/release-notes-published/13.0.0.md
+1
View File
@@ -0,0 +1 @@
https://codeberg.org/forgejo/forgejo/src/branch/forgejo/release-notes-published/14.0.0.md https://codeberg.org/forgejo/forgejo/src/branch/forgejo/release-notes-published/14.0.1.md
+1
View File
@@ -0,0 +1 @@
New enviromental variables have been added! Please update your .env before deploying.
+10
View File
@@ -0,0 +1,10 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
],
"reviewers": [
"fauno",
"p4u1"
]
}