2023-10-31 22:19:40 +01:00
packaging_format = 2
id = "synapse"
name = "Synapse"
description . en = "Instant messaging server which uses Matrix"
description . fr = "Serveur de messagerie instantané basé sur Matrix"
2024-05-15 02:07:39 +02:00
version = "1.107.0~ynh1"
2023-10-31 22:19:40 +01:00
maintainers = [ "Josué Tille" ]
[ upstream ]
license = "Apache-2.0"
website = "https://matrix.org/"
2024-01-24 21:23:51 +01:00
code = "https://github.com/element-hq/synapse"
2023-10-31 22:55:01 +01:00
admindoc = "https://matrix-org.github.io/synapse/latest/welcome_and_overview.html"
cpe = "cpe:2.3:a:matrix:synapse"
fund = "https://matrix.org/support/#"
2023-10-31 22:19:40 +01:00
[ integration ]
2024-04-12 08:33:44 +02:00
yunohost = ">= 11.2.11"
2024-02-26 21:20:00 +01:00
architectures = [ "amd64" , "arm64" ]
2023-10-31 22:19:40 +01:00
multi_instance = true
2023-10-31 22:55:01 +01:00
ldap = true
sso = "not_relevant"
disk = "250M"
2024-03-19 21:26:29 +01:00
ram . build = "500M"
ram . runtime = "1G"
2023-10-31 22:19:40 +01:00
[ install ]
[ install . domain ]
# this is a generic question - ask strings are automatically handled by Yunohost's core
type = "domain"
[ install . server_name ]
ask . en = "If your Synapse domain is a subdomain, you can choose a name for your Synapse server to have your Matrix user-ids looking like @user:domain.org instead of @user:synapse.domain.org"
ask . fr = "Si votre domaine pour Synapse est un sous-domaine, vous pouvez choisir un nom pour votre serveur Synapse afin que vos identifiants Matrix soient @utilisateur:domain.org plutôt que @utilisateur:synapse.domain.org"
type = "string"
example = "domain.org"
default = "Same than the domain"
[ install . is_free_registration ]
ask . en = "Is it a server with free registration?"
ask . fr = "Est-ce un serveur avec création de compte libre ?"
help . en = "A public server means that anybody will be able to register on this server."
help . fr = "Un serveur public signifie que n'importe qui pourra s'enregistrer sur ce serveur."
type = "boolean"
default = false
[ install . jitsi_server ]
ask . en = "Jitsi server address for conferencing?"
ask . fr = "Adresse du serveur Jitsi pour les conférences ?"
type = "string"
example = "domain.org"
default = "jitsi.riot.im"
2023-11-01 18:52:07 +01:00
[ install . init_main_permission ]
help . en = "Define the users allowed to access to synapse. Setting this to 'visitors' don't make sens in this case."
type = "group"
example = "all_users"
default = "all_users"
2023-10-31 22:19:40 +01:00
[ resources ]
2024-02-26 20:22:52 +01:00
[ resources . sources . synapse_prebuilt_armv7_bookworm ]
2023-11-01 18:52:07 +01:00
prefetch = false
2024-05-15 02:07:39 +02:00
armhf . url = "https://github.com/YunoHost-Apps/synapse_python_build/releases/download/v1.107.0/matrix-synapse_1.107.0-bookworm-bin1_armv7l.tar.gz"
armhf . sha256 = "568ed915a0ea9984e9163c74457c3c5263af08b93dbef74dd177f53aabf60538"
2023-10-31 22:19:40 +01:00
2024-02-26 20:22:52 +01:00
[ resources . sources . synapse_prebuilt_armv7_bullseye ]
2023-11-01 18:52:07 +01:00
prefetch = false
2024-05-15 02:07:39 +02:00
armhf . url = "https://github.com/YunoHost-Apps/synapse_python_build/releases/download/v1.107.0/matrix-synapse_1.107.0-bullseye-bin1_armv7l.tar.gz"
armhf . sha256 = "587118c7040ab64e4f4a85a014da89cd6b6b7258c3062a9abbd900b1a48e82d9"
2023-10-31 22:19:40 +01:00
2024-02-26 21:20:00 +01:00
[ resources . sources . sliding_proxy ]
prefetch = true
extract = false
rename = "sliding-proxy"
amd64 . url = "https://github.com/matrix-org/sliding-sync/releases/download/v0.99.15/syncv3_linux_amd64"
amd64 . sha256 = "f5a57a26a5a478470774d8f6387accf5ed7644c8258c8ff7570998b99f7afe01"
arm64 . url = "https://github.com/matrix-org/sliding-sync/releases/download/v0.99.15/syncv3_linux_arm64"
arm64 . sha256 = "24bd8c5ebf89806104465b8b218aba7e05b15c095d010aba2fb666172a106f75"
[ resources . sources . sliding_proxy_rootfs ]
prefetch = true
extract = true
in_subdir = false
amd64 . url = "https://github.com/YunoHost-Apps/synapse_python_build/releases/download/sp-mfs-v1.0/min_rootfs_x86-64.tar.gz"
amd64 . sha256 = "4626879513fedd8fca33eb98668a7d3967c6b04d2ea1eed86c5059ef394bc925"
arm64 . url = "https://github.com/YunoHost-Apps/synapse_python_build/releases/download/sp-mfs-v1.0/min_rootfs_arm64.tar.gz"
arm64 . sha256 = "3f71a0c1746d18cd5081fc68ba81d18d4dca717509b8de75ef1b23b99af325e0"
2023-10-31 22:19:40 +01:00
[ resources . system_user ]
2023-10-31 22:55:01 +01:00
allow_email = true
home = "/opt/yunohost/matrix-__APP__"
2023-10-31 22:19:40 +01:00
[ resources . install_dir ]
2023-11-01 18:52:07 +01:00
dir = "/var/www/__APP__"
2023-10-31 22:55:01 +01:00
owner = "__APP__:rwX"
group = "__APP__:rX"
[ resources . data_dir ]
dir = "/home/yunohost.app/__APP__"
2023-10-31 22:19:40 +01:00
[ resources . permissions ]
2023-11-01 18:52:07 +01:00
main . url = "/"
2024-02-26 20:18:07 +01:00
main . additional_urls = [ "/_matrix/cas_server.php/login" ]
2023-10-31 22:55:01 +01:00
main . label = "Server SSO"
main . auth_header = true
2024-04-04 23:57:15 +02:00
main . show_tile = false
2023-10-31 22:55:01 +01:00
main . protected = true
2024-02-26 20:18:07 +01:00
server_api . url = "/_matrix"
2024-02-26 21:20:00 +01:00
server_api . additional_urls = [ "/client" ]
2023-10-31 22:55:01 +01:00
server_api . label = "Server access for client apps"
2023-11-01 18:52:07 +01:00
server_api . allowed = "visitors"
2023-10-31 22:55:01 +01:00
server_api . auth_header = false
server_api . show_tile = false
server_api . protected = true
2024-02-26 20:18:07 +01:00
admin_api . url = "/_synapse"
2023-10-31 22:55:01 +01:00
admin_api . label = "Admin API"
admin_api . allowed = "visitors"
admin_api . auth_header = false
admin_api . show_tile = false
admin_api . protected = true
2023-10-31 22:19:40 +01:00
[ resources . ports ]
synapse_tls . default = 8448
2023-11-01 18:52:07 +01:00
synapse_tls . exposed = "TCP"
synapse . default = 8008
2024-02-26 21:20:00 +01:00
sliding_proxy . default = 8009
2023-10-31 22:19:40 +01:00
turnserver_tls . default = 5349
2023-11-01 18:52:07 +01:00
turnserver_tls . exposed = "Both"
2023-10-31 22:55:01 +01:00
turnserver_alt_tls . default = 5350
2023-11-01 18:52:07 +01:00
turnserver_alt_tls . exposed = "Both"
2023-10-31 22:19:40 +01:00
cli . default = 5766
2023-10-31 22:55:01 +01:00
[ resources . apt ]
2023-11-01 18:52:07 +01:00
packages = [ "coturn" , "acl" , "postgresql" , "php-fpm" ,
2023-10-31 22:55:01 +01:00
"python3-dev" , "python3-venv" , "python3-pip" , "python3-setuptools" , "python3-lxml" ,
"build-essential" , "libffi-dev" , "libssl-dev" , "libxml2-dev" , "libxslt1-dev" , "zlib1g-dev" , "libjpeg-dev" , "libpq-dev" ]
[ resources . database ]
type = "postgresql"