1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/bonfire_ynh.git synced 2024-09-03 18:16:01 +02:00

Fix syntax + reordering + fix indentation + packaging v2 features

This commit is contained in:
lapineige 2023-02-05 13:59:00 +01:00 committed by GitHub
parent 178066d20c
commit dde9c56854
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,6 +8,9 @@ license = "free"
multi_instance = true multi_instance = true
services = [ "nginx" ] services = [ "nginx" ]
maintainers = ["Lapineige"]
[description] [description]
en = "Federated social networking server built on ActivityPub open protocol" en = "Federated social networking server built on ActivityPub open protocol"
fr = "Serveur de réseautage social fédéré basé sur le protocole ouvert ActivityPub" fr = "Serveur de réseautage social fédéré basé sur le protocole ouvert ActivityPub"
@ -20,67 +23,75 @@ admindoc = "https://bonfirenetworks.org/docs/"
userdoc = "https://bonfirenetworks.org/docs/" userdoc = "https://bonfirenetworks.org/docs/"
code = "https://github.com/bonfire-networks/bonfire-app" code = "https://github.com/bonfire-networks/bonfire-app"
[maintainer]
name = "Lapineige"
[requirements] [integration]
yunohost = ">= 11.0.0" yunohost = ">= 11.0.0"
multi_instance = false
[[arguments.install]] [install]
name = "domain" [install.domain]
type = "domain" type = "domain"
help.en = "The domain name to use. Bonfire will be installed at its root path (/). This can't be changed."
help.fr = "Nom de domaine à utiliser. Bonfire sera installé à sa racine (/). Cela ne pourra pas être changé."
[[arguments.install]] [install.is_public]
name = "path" type = "boolean"
type = "path" default = true
example = "/example" help.en = "Should that instance be visible to the fediverse ? It is required for federation."
default = "/" help.fr = "Cette instance doit elle être visible sur le fédiverse? C'est nécessaire pour la fédération."
[[arguments.install]] [install.init_main_permission]
name = "is_public" # this is a generic question - ask strings are automatically handled by YunoHost's core
type = "boolean" # This won't be saved as setting and will instead be used to initialize the SSOwat permission
default = true type = "group"
default = "visitors"
[[arguments.install]] [install.domain]
name = "language" ask.en = "Choose the application language"
type = "string" ask.fr = "Choisissez la langue de l'application"
choices = [ "fr", "en" ] type = "string"
default = "fr" choices = ["fr", "en"]
default = "fr"
[arguments.install.ask]
en = "Choose the application language"
fr = "Choisissez la langue de l'application"
[[arguments.install]] [install.admin]
name = "admin" # this is a generic question - ask strings are automatically handled by YunoHost's core
type = "user" type = "user"
[arguments.install.help] [install.password]
en = "Name of the account that will have admin rights on this instance." # this is a generic question - ask strings are automatically handled by YunoHost's core
fr = "Le nom du compte qui aura les droits d'administration sur l'instance." # Note that user-provided passwords questions are not automatically saved as setting
help.en = "Use the help field to add an information for the admin about this question."
[[arguments.install]] help.fr = "Utilisez le champ aide pour ajouter une information à l'intention de l'administrateur à propos de cette question."
name = "password" type = "password"
type = "password"
[install.media_upload_size]
[[arguments.install]] type = "string"
name = "media_upload_size" choices = [
type = "string" "1MB",
choices = [ "2MB",
"1MB", "5MB",
"2MB", "10MB",
"5MB", "15MB",
"10MB", "20MB",
"15MB", "35MB",
"20MB", "50MB",
"35MB", "100MB",
"50MB", "150MB"
"100MB", ]
"150MB" default = "20MB"
] ask.en = "Maximum size of the media uploaded. Can be changed later."
default = "20MB" ask.fr = "Taille maximale des médias mis en ligne. Peut-être modifié ultérieurement."
[arguments.install.help]
en = "Maximum size of the media uploaded. Can be changed later."
fr = "Taille maximale des médias mis en ligne. Peut-être modifié ultérieurement."
[resources]
[resources.data_dir]
# This will create/remove the data dir as /home/yunohost.app/$app
# and store the corresponding setting $data_dir
#TODO
[resources.ports]
# This will pick a random port for reverse-proxying and store it as the $port setting
[resources.database]
# This will automatically provision/deprovison a mysql DB and store the corresponding credentials in settings $db_user, $db_name, $db_pwd
type = "postgresql"