1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/forgejo_ynh.git synced 2024-09-03 18:36:26 +02:00

forgejo (api) permission to allow API usage

This commit is contained in:
Emmanuel Averty 2023-07-14 17:12:00 +02:00 committed by grosmanal
parent 42ef99e7a6
commit 0ef64305ef
4 changed files with 10 additions and 4 deletions

View file

@ -34,7 +34,7 @@ Brought to you by an inclusive community under the umbrella of Codeberg e.V., a
- Customize HTML templates, static files and many others. - Customize HTML templates, static files and many others.
**Shipped version:** 1.19.3-0~ynh4 **Shipped version:** 1.19.3-0~ynh5
## Screenshots ## Screenshots

View file

@ -34,7 +34,7 @@ Brought to you by an inclusive community under the umbrella of Codeberg e.V., a
- Customize HTML templates, static files and many others. - Customize HTML templates, static files and many others.
**Version incluse :** 1.19.3-0~ynh4 **Version incluse :** 1.19.3-0~ynh5
## Captures décran ## Captures décran

View file

@ -4,6 +4,8 @@
In order to allow access to Forgejo admin section, YunoHost users are automaticaly synchronized with Forgejo's. In order to allow access to Forgejo admin section, YunoHost users are automaticaly synchronized with Forgejo's.
You can use «Forgejo (admin)» permission to manage which user is considered as forgejo admin. You can use «Forgejo (admin)» permission to manage which user is considered as forgejo admin.
The «forgejo (api)» permission must be set to «Visitors» group to allow user synchronization via an API call.
**Known issue** : when a user is added to a group (e.g. the one with «Forgejo (admin)» permission), the synchronization is not triggered by YunoHost. You have to update a user (without any modification) to trigger it. (https://github.com/YunoHost/issues/issues/2213) **Known issue** : when a user is added to a group (e.g. the one with «Forgejo (admin)» permission), the synchronization is not triggered by YunoHost. You have to update a user (without any modification) to trigger it. (https://github.com/YunoHost/issues/issues/2213)
### Notes on SSH usage ### Notes on SSH usage

View file

@ -5,7 +5,7 @@ name = "Forgejo"
description.en = "Lightweight software forge" description.en = "Lightweight software forge"
description.fr = "Forge logiciel légère" description.fr = "Forge logiciel légère"
version = "1.19.3-0~ynh4" version = "1.19.3-0~ynh5"
maintainers = ["Emmanuel Averty"] maintainers = ["Emmanuel Averty"]
@ -71,11 +71,15 @@ ram.runtime = "2G"
[resources.permissions] [resources.permissions]
main.url = "/" main.url = "/"
admin.allowed = "admins"
admin.show_tile = false admin.show_tile = false
admin.auth_header = false admin.auth_header = false
admin.protected = true admin.protected = true
api.url = "/api"
api.show_tile = false
api.allowed = "visitors"
api.auth_header = false
[resources.apt] [resources.apt]
packages = "postgresql" packages = "postgresql"