manifest.toml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. #:schema https://raw.githubusercontent.com/YunoHost/apps/master/schemas/manifest.v2.schema.json
  2. packaging_format = 2
  3. id = "flohmarkt"
  4. name = "flohmarkt"
  5. description.en = "A decentral federated small ads platform"
  6. description.fr = "Plateforme de petites annonces fédérées décentralisées"
  7. version = "0.0~ynh8"
  8. maintainers = ["Chris Vogel"]
  9. [upstream]
  10. license = "AGPL-3.0"
  11. website = "https://codeberg.org/flohmarkt/flohmarkt"
  12. demo = "https://flohmarkt.ween.de/"
  13. admindoc = "https://codeberg.org/flohmarkt/flohmarkt/wiki"
  14. userdoc = "https://codeberg.org/flohmarkt/flohmarkt/wiki"
  15. code = "https://codeberg.org/flohmarkt/flohmarkt"
  16. # For example, for Nextcloud, the CPE is 'cpe:2.3:a:nextcloud:nextcloud' (no need to include the version number)
  17. # cpe = "does_not_exist_yet"
  18. # This is meant to be an URL where people can financially support this app, especially when its development is based
  19. # on volunteers and/or financed by its community. YunoHost may later advertise it in the webadmin.
  20. # fund = "???"
  21. [integration]
  22. yunohost = ">= 11.2.11"
  23. architectures = "all"
  24. # https://codeberg.org/ChriChri/flohmarkt_ynh/issues/11
  25. multi_instance = true
  26. # the "ldap" key corresponds to wether or not a user *can* login on the app using
  27. # its YunoHost credentials.
  28. # https://codeberg.org/ChriChri/flohmarkt_ynh/issues/2
  29. ldap = false
  30. # the "sso" key corresponds to wether or not a user is *automatically logged-in*
  31. # on the app when logged-in on the YunoHost portal.
  32. # "Internally, SSOwat will on-the-fly inject HTTP Basic Auth Headers like Authorization:
  33. # Basic <base64credentials>."
  34. # https://yunohost.org/de/packaging_sso_ldap_integration#sso-integration
  35. # https://codeberg.org/ChriChri/flohmarkt_ynh/issues/3
  36. sso = false
  37. # **estimate** minimum disk and RAM requirements
  38. disk = "200M"
  39. ram.build = "200M"
  40. ram.runtime = "100M"
  41. [install]
  42. [install.domain]
  43. # ask admin on which domain to run flohmarkt
  44. type = "domain"
  45. # [install.path]
  46. # # ask admin under which path flohmarkt will be reachable
  47. # # doesn't work, yet: https://codeberg.org/flohmarkt/flohmarkt_ynh/issues/53
  48. # type = "path"
  49. # default = "/"
  50. [install.init_main_permission]
  51. # who will be able to access the apps URL after installation?
  52. type = "group"
  53. default = "visitors"
  54. [install.password_couchdb_admin]
  55. # couchdb admin password
  56. type = "password"
  57. ask.en = "CouchDB password for admin user"
  58. help.en = "Don't forget to note this password somewhere! You need to provide this password during install and for future upgrades. If there's already a CouchDB installed provide the adminpassword for the existing installation."
  59. ask.de = "Passwort für den admin Benutzer von CouchDB"
  60. help.de = "Bitte das Passwort notieren und aufheben! Dieses Passwort muss bei der Installation und bei zukünftigen Upgrades eingegeben werden. Wenn bereits eine CouchDB installiert ist, hier das Passwort der bestehenden Installation eingeben."
  61. [install.mail_user]
  62. # @@ any type for this to make sure it can be used as the user part of an email address?
  63. default = "flohmarkt"
  64. type = "string"
  65. ask.en = "mail sender local part"
  66. help.en = "flohmarkt will send emails using the sender <mail_user>@<mail_domain>. Please provide the <mail_user> part."
  67. ask.de = "E-Mail-Absender Benutzername"
  68. help.de = "flohmarkt verschickt emails unter dem Absender <mail_user>@<mail_domain>. Bitte gib Deinen <mail_user> ein."
  69. [install.mail_domain]
  70. # @@ is there a 'type' that makes sure that on this domain email service is enabled?
  71. type = "domain"
  72. ask.en = "mail sender domain part"
  73. help.en = "flohmarkt will send emails using the sender <mail_user>@<mail_domain>. Please provide the <mail_domain> part."
  74. ask.de = "E-Mail-Absender Domain"
  75. help.de = "flohmarkt verschickt emails unter dem Absender <mail_user>@<mail_domain>. Bitte gib Deine <mail_domain> ein."
  76. [install.flohmarkt_name]
  77. # flohmarkt.conf: "InstanceName"
  78. type = "string"
  79. default = "my yunohost flohmarkt"
  80. ask.en = "name of your flohmarkt instance"
  81. ask.de = "Name des Flohmarkts"
  82. [install.admin_mail]
  83. type="email"
  84. ask.en = "email address of this flohmarkts admin"
  85. help.en = "you'll get notified about events like changes in the user database of flohmarkt"
  86. ask.de = "E-Mail Adresse des Administrators dieses flohmarkts"
  87. help.de = "an diese Adresse werden Informationen zu z.B. Änderungen an der Benutzerdatenbank geschickt"
  88. [resources]
  89. # See the packaging documentation for the full set
  90. # of explanation regarding the behavior and properties for each of those
  91. [resources.sources]
  92. [resources.sources.main]
  93. # This will pre-fetch the asset which can then be deployed during the install/upgrade scripts with :
  94. # ynh_setup_source --dest_dir="$install_dir"
  95. # You can also define other assets than "main" and add --source_id="foobar" in the previous command
  96. url = "https://codeberg.org/flohmarkt/flohmarkt/archive/1b783dcac6543bdcc6f7b105b2c8211e2bc51bee.tar.gz"
  97. sha256 = "82c05ea75333fb7f869252f941fa76dbe39282984055aae22d4806b100f2d493"
  98. # These infos are used by https://github.com/YunoHost/apps/blob/master/tools/autoupdate_app_sources/autoupdate_app_sources.py
  99. # to auto-update the previous asset urls and sha256sum + manifest version
  100. # assuming the upstream's code repo is on github and relies on tags or releases
  101. # See the 'sources' resource documentation for more details
  102. # autoupdate.strategy = "latest_github_tag"
  103. # This will provision/deprovision a unix system user named id form above → 'flohmarkt'
  104. [resources.system_user]
  105. allow_email = true
  106. # ++ where to get/put mail_user and mail_domain to let the user set the address?
  107. # https://yunohost.org/de/packaging_apps_resources#properties-4
  108. # → [install] section
  109. # these shouldn't be necessary, because defined in the [install] section
  110. # → yes, works. With the values from install section the mailuser ends up in
  111. # /etc/postfix/app_senders_login_maps
  112. # mail_user = "replace_mail_user_in_manifest_toml"
  113. # mail_domain = "replace_mail_domain_in_manifest.toml"
  114. # @@ how to create a couchdb user if needed? in install-script manually?
  115. [resources.install_dir]
  116. [resources.data_dir]
  117. [resources.permissions]
  118. # This will configure SSOwat permission for $domain/$path/
  119. # The initial allowed group of user is configured via the init_main_permission question
  120. # (public=visitors, private=all_users)
  121. # https://codeberg.org/ChriChri/flohmarkt_ynh/issues/5
  122. main.url = "/"
  123. [resources.ports]
  124. # This will pick a random port for reverse-proxying and store it as the $port setting
  125. # uvicorn running the flohmarkt app will be started listening to this port
  126. # if 'main.default' is already in use another random port will be used
  127. main.default = 8000
  128. # we'll rely on couchdb choosing the default port to listen to
  129. # otherwise I'll set a new port for each flohmarkt that will be installed until the
  130. # installation of couchdb is reworked by making it possible to do as a pure dependency
  131. # couchdb.default = 5984
  132. [resources.apt]
  133. # python dependencies shall be installed in a venv using pip.
  134. # moreutils is needed for `ts` used in systemd.service
  135. # urlwatch for email notifications
  136. packages = "python3-pip python3-full curl apt-transport-https gnupg moreutils curl urlwatch"
  137. # repo for couchdb - doesn't work, yet
  138. # extras.couchdb.repo = "deb https://apache.jfrog.io/artifactory/couchdb-deb/ __YNH_DEBIAN_VERSION__ main"
  139. # extras.couchdb.key = "https://couchdb.apache.org/repo/keys.asc"
  140. # extras.couchdb.packages = ["couchdb"]
  141. # extras.couchdb.name = "couchdb"