2023-11-28 13:20:48 +01:00
|
|
|
#:schema https://raw.githubusercontent.com/YunoHost/apps/master/schemas/manifest.v2.schema.json
|
|
|
|
|
|
|
|
packaging_format = 2
|
|
|
|
|
2023-12-03 21:06:57 +01:00
|
|
|
id = "fastapi"
|
2023-11-28 15:45:06 +01:00
|
|
|
name = "my_FastAPI_app"
|
2023-12-01 15:47:37 +01:00
|
|
|
description.en = "Custom Web app to run a FastAPI program written in Python"
|
|
|
|
description.fr = "Une application web personnalisée pour faire tourner une application FastAPI écrite en Python"
|
2023-11-28 13:20:48 +01:00
|
|
|
|
|
|
|
version = "1.0~ynh1"
|
|
|
|
|
2023-11-28 15:45:06 +01:00
|
|
|
maintainers = ["leonarf"]
|
2023-11-28 13:20:48 +01:00
|
|
|
|
|
|
|
[upstream]
|
2023-12-01 12:36:55 +01:00
|
|
|
license = "GPL-3.0-or-later"
|
2023-11-28 15:45:06 +01:00
|
|
|
code = "https://github.com/leonarf/FastAPI_ynh"
|
2023-11-28 13:20:48 +01:00
|
|
|
|
|
|
|
[integration]
|
2023-11-28 15:45:06 +01:00
|
|
|
yunohost = ">= 11.2.5"
|
2023-11-28 13:20:48 +01:00
|
|
|
architectures = "all"
|
2023-12-01 12:36:55 +01:00
|
|
|
multi_instance = true
|
2023-11-28 15:45:06 +01:00
|
|
|
ldap = "not_relevant"
|
|
|
|
sso = "not_relevant"
|
2023-11-28 13:20:48 +01:00
|
|
|
disk = "50M"
|
2023-12-01 15:48:06 +01:00
|
|
|
ram.build = "350M"
|
2023-11-28 13:20:48 +01:00
|
|
|
ram.runtime = "50M"
|
|
|
|
|
|
|
|
[install]
|
|
|
|
[install.domain]
|
|
|
|
type = "domain"
|
|
|
|
|
|
|
|
[install.path]
|
|
|
|
type = "path"
|
2023-11-28 15:45:06 +01:00
|
|
|
default = "/api"
|
2023-11-28 13:20:48 +01:00
|
|
|
|
|
|
|
[install.init_main_permission]
|
|
|
|
type = "group"
|
|
|
|
default = "visitors"
|
|
|
|
|
2023-12-01 20:35:15 +01:00
|
|
|
[install.password]
|
2023-12-04 07:19:43 +01:00
|
|
|
help.en = "Password that you will need to upload your code on YunoHost"
|
|
|
|
help.fr = "Le mot de passe que vous utiliserez pour téléverser votre code sur Yunohost"
|
2023-12-01 20:35:15 +01:00
|
|
|
type = "password"
|
|
|
|
|
2023-11-28 13:20:48 +01:00
|
|
|
[resources]
|
|
|
|
[resources.system_user]
|
2023-12-01 20:35:15 +01:00
|
|
|
allow_sftp = true
|
|
|
|
allow_ssh = false
|
|
|
|
home = "/home/yunohost.app/__APP__"
|
2023-11-28 13:20:48 +01:00
|
|
|
# This will provision/deprovision a unix system user
|
|
|
|
|
2023-12-01 16:50:49 +01:00
|
|
|
[resources.install_dir]
|
|
|
|
|
2023-11-28 13:20:48 +01:00
|
|
|
[resources.data_dir]
|
|
|
|
# This will create/remove the data dir as /home/yunohost.app/$app
|
|
|
|
# and store the corresponding setting $data_dir
|
2023-12-01 20:35:15 +01:00
|
|
|
dir = "/home/yunohost.app/__APP__"
|
2023-11-28 13:20:48 +01:00
|
|
|
|
|
|
|
[resources.permissions]
|
|
|
|
# This will configure SSOwat permission for $domain/$path/
|
|
|
|
# The initial allowed group of user is configured via the init_main_permission question (public=visitors, private=all_users)
|
|
|
|
main.url = "/"
|
|
|
|
|
|
|
|
[resources.ports]
|
|
|
|
# This will pick a random port for reverse-proxying and store it as the $port setting
|
|
|
|
|
|
|
|
[resources.apt]
|
|
|
|
# This will automatically install/uninstall the following apt packages
|
|
|
|
# and implicitly define the $phpversion setting as 8.0 (if phpX.Y-foobar dependencies are listed)
|
2023-11-28 15:45:06 +01:00
|
|
|
packages = "python3-dev, python3-pip, python3-venv"
|