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-11-28 15:45:06 +01:00
id = "my_FastAPI_app"
name = "my_FastAPI_app"
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-11-28 15:45:06 +01:00
license = "aGPL-3.0"
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
# FIXME: can be replaced by a list of supported archs using the dpkg --print-architecture nomenclature (amd64/i386/armhf/arm64), for example: ["amd64", "i386"]
architectures = "all"
2023-11-28 15:45:06 +01:00
multi_instance = false
ldap = "not_relevant"
sso = "not_relevant"
2023-11-28 13:20:48 +01:00
disk = "50M"
ram . build = "50M"
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"
[ resources ]
[ resources . system_user ]
# This will provision/deprovision a unix system user
[ resources . data_dir ]
# This will create/remove the data dir as /home/yunohost.app/$app
# and store the corresponding setting $data_dir
[ 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"
[ resources . sources ]
2023-11-28 13:20:48 +01:00
2023-11-28 15:45:06 +01:00
[ resources . sources . main ]
# This will pre-fetch the asset which can then be deployed during the install/upgrade scripts with :
# ynh_setup_source --dest_dir="$install_dir"
# You can also define other assets than "main" and add --source_id="foobar" in the previous command
url = "https://github.com/foo/bar/archive/refs/tags/v1.2.3.tar.gz"
sha256 = "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
# These infos are used by https://github.com/YunoHost/apps/blob/master/tools/autoupdate_app_sources/autoupdate_app_sources.py
# to auto-update the previous asset urls and sha256sum + manifest version
# assuming the upstream's code repo is on github and relies on tags or releases
# See the 'sources' resource documentation for more details
# autoupdate.strategy = "latest_github_tag"