manifest.toml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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. version = "0.0~ynh4"
  7. maintainers = ["Chris Vogel"]
  8. [upstream]
  9. license = "AGPL-3.0"
  10. website = "https://codeberg.org/flohmarkt/flohmarkt"
  11. demo = "https://flohmarkt.ween.de/"
  12. admindoc = "https://codeberg.org/flohmarkt/flohmarkt/wiki"
  13. userdoc = "https://codeberg.org/flohmarkt/flohmarkt/wiki"
  14. code = "https://codeberg.org/flohmarkt/flohmarkt"
  15. # For example, for Nextcloud, the CPE is 'cpe:2.3:a:nextcloud:nextcloud' (no need to include the version number)
  16. # cpe = "does_not_exist_yet"
  17. # This is meant to be an URL where people can financially support this app, especially when its development is based
  18. # on volunteers and/or financed by its community. YunoHost may later advertise it in the webadmin.
  19. # fund = "???"
  20. [integration]
  21. yunohost = ">= 11.2.11"
  22. architectures = "all"
  23. # https://codeberg.org/ChriChri/flohmarkt_ynh/issues/11
  24. # multi_instance = true
  25. multi_instance = false
  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 = "100M"
  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. # e.g. 'https://doma.in/path' - might not work, needs to be tested:
  48. # https://codeberg.org/ChriChri/flohmarkt_ynh/issues/4
  49. type = "path"
  50. default = "/"
  51. [install.init_main_permission]
  52. # who will be able to access the apps URL after installation?
  53. type = "group"
  54. default = "visitors"
  55. [install.password_couchdb_admin]
  56. # couchdb admin password
  57. type = "password"
  58. ask.en = "CouchDB password for admin user"
  59. 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."
  60. ask.de = "Passwort für den admin Benutzer von CouchDB"
  61. 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."
  62. [install.mail_user]
  63. # @@ any type for this to make sure it can be used as the user part of an email address?
  64. default = "flohmarkt"
  65. type = "string"
  66. ask.en = "mail sender local part"
  67. help.en = "flohmarkt will send emails using the sender <mail_user>@<mail_domain>. Please provide the <mail_user> part."
  68. ask.de = "E-Mail-Absender Benutzername"
  69. help.de = "flohmarkt verschickt emails unter dem Absender <mail_user>@<mail_domain>. Bitte gib Deinen <mail_user> ein."
  70. [install.mail_domain]
  71. # @@ is there a 'type' that makes sure that on this domain email service is enabled?
  72. type = "domain"
  73. ask.en = "mail sender domain part"
  74. help.en = "flohmarkt will send emails using the sender <mail_user>@<mail_domain>. Please provide the <mail_domain> part."
  75. ask.de = "E-Mail-Absender Domain"
  76. help.de = "flohmarkt verschickt emails unter dem Absender <mail_user>@<mail_domain>. Bitte gib Deine <mail_domain> ein."
  77. [install.flohmarkt_name]
  78. # flohmarkt.conf: "InstanceName"
  79. type = "string"
  80. default = "my yunohost flohmarkt"
  81. ask.en = "name of your flohmarkt instance"
  82. ask.de = "Name des Flohmarkts"
  83. [resources]
  84. # See the packaging documentation for the full set
  85. # of explanation regarding the behavior and properties for each of those
  86. [resources.sources]
  87. [resources.sources.main]
  88. # This will pre-fetch the asset which can then be deployed during the install/upgrade scripts with :
  89. # ynh_setup_source --dest_dir="$install_dir"
  90. # You can also define other assets than "main" and add --source_id="foobar" in the previous command
  91. url = "https://codeberg.org/flohmarkt/flohmarkt/archive/2c5ea313d9b04dad25649335f415af5ca484f262.tar.gz"
  92. sha256 = "ce08228e2e9e650925c53094bf9c02bac8cdcb03a931f262034802ce6541e1f7"
  93. # These infos are used by https://github.com/YunoHost/apps/blob/master/tools/autoupdate_app_sources/autoupdate_app_sources.py
  94. # to auto-update the previous asset urls and sha256sum + manifest version
  95. # assuming the upstream's code repo is on github and relies on tags or releases
  96. # See the 'sources' resource documentation for more details
  97. # autoupdate.strategy = "latest_github_tag"
  98. # This will provision/deprovision a unix system user named id form above → 'flohmarkt'
  99. [resources.system_user]
  100. allow_email = true
  101. # ++ where to get/put mail_user and mail_domain to let the user set the address?
  102. # https://yunohost.org/de/packaging_apps_resources#properties-4
  103. # → [install] section
  104. # these shouldn't be necessary, because defined in the [install] section
  105. # → yes, works. With the values from install section the mailuser ends up in
  106. # /etc/postfix/app_senders_login_maps
  107. # mail_user = "replace_mail_user_in_manifest_toml"
  108. # mail_domain = "replace_mail_domain_in_manifest.toml"
  109. # @@ how to create a couchdb user if needed? in install-script manually?
  110. [resources.install_dir]
  111. dir = "/opt/flohmarkt"
  112. # [resources.data_dir]
  113. # we'll take care of this inside the install script and save it to the settings
  114. [resources.permissions]
  115. # This will configure SSOwat permission for $domain/$path/
  116. # The initial allowed group of user is configured via the init_main_permission question
  117. # (public=visitors, private=all_users)
  118. # https://codeberg.org/ChriChri/flohmarkt_ynh/issues/5
  119. main.url = "/"
  120. [resources.ports]
  121. # This will pick a random port for reverse-proxying and store it as the $port setting
  122. # uvicorn running the flohmarkt app will be started listening to this port
  123. # if 'main.default' is already in use another random port will be used
  124. main.default = 8000
  125. couchdb.default = 5984
  126. [resources.apt]
  127. # python dependencies shall be installed in a venv using pip.
  128. # moreutils is needed for `ts` used in systemd.service
  129. packages = "python3-pip python3-full curl apt-transport-https gnupg moreutils"
  130. # repo for couchdb - doesn't work, yet
  131. # extras.couchdb.repo = "deb https://apache.jfrog.io/artifactory/couchdb-deb/ __YNH_DEBIAN_VERSION__ main"
  132. # extras.couchdb.key = "https://couchdb.apache.org/repo/keys.asc"
  133. # extras.couchdb.packages = ["couchdb"]
  134. # extras.couchdb.name = "couchdb"