From 6339ede4d8e208c8206376fc452b754b49da14e8 Mon Sep 17 00:00:00 2001 From: ronny abraham Date: Thu, 17 Apr 2025 02:38:42 +0300 Subject: [PATCH] updated forgejo, added tokens, renamed --- _share/data/forgejo/tokens.org | 18 ++++++++++++++ forgeo.org => forgejo.org | 43 ++++++++++++++++++++++++---------- toc.org | 2 +- 3 files changed, 50 insertions(+), 13 deletions(-) create mode 100644 _share/data/forgejo/tokens.org rename forgeo.org => forgejo.org (87%) diff --git a/_share/data/forgejo/tokens.org b/_share/data/forgejo/tokens.org new file mode 100644 index 0000000..e1e2969 --- /dev/null +++ b/_share/data/forgejo/tokens.org @@ -0,0 +1,18 @@ +#+title: Forgejo Token Information + + +* Token Details + +** api-debug +:PROPERTIES: +:CUSTOM_ID: token-api-debug +:END: + +| Property | Value | +|--------------+-------------------------------------------------------------------| +| Token Owner | ronnygit | +| Token Name | api-debug | +| Token Value | edea73cc91dbae359d89eb0e644ef2c97f3aedf0 | +| Scopes | repository, organization, user, issue | +| Created At | Apr 17, 2025 | +| Purpose | Used to verify access to django-repositories/project.git | diff --git a/forgeo.org b/forgejo.org similarity index 87% rename from forgeo.org rename to forgejo.org index 90be1e5..8ec6971 100644 --- a/forgeo.org +++ b/forgejo.org @@ -6,11 +6,9 @@ * links - [[./toc.org][TOC - Home System]] -* Hardware -* Forgejo on Raspberry Pi +* Forgejo Basic Info -** Configuration Summary *** Instance Details | Property | Value | |----------------------+----------------------------------| @@ -26,6 +24,32 @@ | Admin | git-admin | 2reishit2ara | ronny.abraham@ymail.com | | Developer | ronnygit | 2reishit2ara | ronny.coder@gmail.com | +*** token access +#+INCLUDE: "./_share/data/forgejo/tokens.org::#token-api-debug" :only-contents t + +* Forgejo Organizations Overview + +This section documents the Forgejo organizations, their repositories, and associated Git origin URLs. + +** organizations + +| Organization | url base | +|---------------------+------------------------------------------------------------| +| default (none) | | +| django-repositories | ssh://git@forgejo.ronnyabraham.com:222/django-repositories | +| notes | ssh://git@forgejo.ronnyabraham.com:222/notes | + +** repositories + + +| Organization | Repository | description | +|---------------------+------------------+-------------| +| django-repositories | savage-lands.git | | +| notes | home-network | | + + +* Forgejo on Raspberry Pi + ** Data Drive & Volumes @@ -142,6 +166,9 @@ git remote add origin ssh://git@forgejo.ronnyabraham.com:222/ronnygit/savage-lan git push -u origin main #+end_src + + + * How to Check Repository Access for a User via Token To verify whether a Forgejo user (e.g. `ronnygit`) has access to a specific repository, you can use a Personal Access Token (PAT) to query the Forgejo API. This helps confirm push/pull permissions and identify missing access rights. @@ -184,15 +211,7 @@ HTTP error meanings: - 401 - token is invalid or expired ** Token Details - -| Property | Value | -|--------------+-------------------------------------------------------------------| -| Token Owner | ronnygit | -| Token Name | api-debug | -| Token Value | edea73cc91dbae359d89eb0e644ef2c97f3aedf0 | -| Scopes | repository, organization, user, issue | -| Created At | Apr 17, 2025 | -| Purpose | Used to verify access to django-repositories/project.git | +#+INCLUDE: "./_share/data/forgejo/tokens.org::#token-api-debug" :only-contents t ** Scope Overview diff --git a/toc.org b/toc.org index 44c0ec8..97f3008 100644 --- a/toc.org +++ b/toc.org @@ -15,6 +15,6 @@ - [[./nginx.org][nginx]] * applications -- [[./forgeo.org][forgejo]] +- [[./forgejo.org][forgejo]] - [[./n8n-setup.org][n8n setup]] - [[./calibre.org][calibre]]