mirror of
https://github.com/YunoHost-Apps/rocketchat_ynh.git
synced 2024-09-03 20:16:25 +02:00
commit
2312a40a0f
13 changed files with 56 additions and 56 deletions
|
@ -26,7 +26,7 @@ Rocket.Chat is an open-source fully customizable communications platform develop
|
||||||
- Mobile Apps for [iOS](https://apps.apple.com/app/rocket-chat/id1148741252) and [Android](https://play.google.com/store/apps/details?id=chat.rocket.android)
|
- Mobile Apps for [iOS](https://apps.apple.com/app/rocket-chat/id1148741252) and [Android](https://play.google.com/store/apps/details?id=chat.rocket.android)
|
||||||
- Desktop Apps for [macOS](https://apps.apple.com/br/app/rocket-chat/id1086818840), [Linux](https://snapcraft.io/rocketchat-desktop) and [Windows](https://releases.rocket.chat/desktop/latest/download)
|
- Desktop Apps for [macOS](https://apps.apple.com/br/app/rocket-chat/id1086818840), [Linux](https://snapcraft.io/rocketchat-desktop) and [Windows](https://releases.rocket.chat/desktop/latest/download)
|
||||||
|
|
||||||
**Shipped version:** 6.3.1~ynh1
|
**Shipped version:** 6.3.3~ynh1
|
||||||
|
|
||||||
**Demo:** https://cloud.rocket.chat/trial
|
**Demo:** https://cloud.rocket.chat/trial
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ Rocket.Chat est une plate-forme de communication open source entièrement person
|
||||||
- Applications mobiles pour [iOS](https://apps.apple.com/app/rocket-chat/id1148741252) et [Android](https://play.google.com/store/apps/details?id=chat.rocket.android)
|
- Applications mobiles pour [iOS](https://apps.apple.com/app/rocket-chat/id1148741252) et [Android](https://play.google.com/store/apps/details?id=chat.rocket.android)
|
||||||
- Applications de bureau pour [macOS](https://apps.apple.com/br/app/rocket-chat/id1086818840), [Linux](https://snapcraft.io/rocketchat-desktop) et [Windows](https://releases.rocket.chat/desktop/latest/download)
|
- Applications de bureau pour [macOS](https://apps.apple.com/br/app/rocket-chat/id1086818840), [Linux](https://snapcraft.io/rocketchat-desktop) et [Windows](https://releases.rocket.chat/desktop/latest/download)
|
||||||
|
|
||||||
**Version incluse :** 6.3.1~ynh1
|
**Version incluse :** 6.3.3~ynh1
|
||||||
|
|
||||||
**Démo :** https://cloud.rocket.chat/trial
|
**Démo :** https://cloud.rocket.chat/trial
|
||||||
|
|
||||||
|
|
|
@ -1,29 +1,29 @@
|
||||||
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
||||||
location ^~ __PATH__/ {
|
location ^~ __PATH__/ {
|
||||||
|
|
||||||
proxy_pass http://127.0.0.1:__PORT__;
|
proxy_pass http://127.0.0.1:__PORT__;
|
||||||
proxy_redirect off;
|
proxy_redirect off;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Host $server_name;
|
proxy_set_header X-Forwarded-Host $server_name;
|
||||||
|
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Connection "upgrade";
|
proxy_set_header Connection "upgrade";
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
|
||||||
client_max_body_size 200M;
|
client_max_body_size 200M;
|
||||||
}
|
}
|
||||||
|
|
||||||
#https://geekgonecrazy.com/2022/05/30/rocketchat-and-the-matrix-protocol/
|
#https://geekgonecrazy.com/2022/05/30/rocketchat-and-the-matrix-protocol/
|
||||||
location /.well-known/matrix/ {
|
location /.well-known/matrix/ {
|
||||||
|
|
||||||
proxy_pass http://127.0.0.1:8008;
|
proxy_pass http://127.0.0.1:8008;
|
||||||
proxy_redirect off;
|
proxy_redirect off;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Host $server_name;
|
proxy_set_header X-Forwarded-Host $server_name;
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@ ExecStart=__YNH_NODE__ __INSTALL_DIR__/main.js
|
||||||
SyslogIdentifier=__APP__
|
SyslogIdentifier=__APP__
|
||||||
Environment=MONGO_URL=mongodb://localhost:27017/__APP__?replicaSet=rs01
|
Environment=MONGO_URL=mongodb://localhost:27017/__APP__?replicaSet=rs01
|
||||||
Environment=MONGO_OPLOG_URL=mongodb://localhost:27017/local?replicaSet=rs01
|
Environment=MONGO_OPLOG_URL=mongodb://localhost:27017/local?replicaSet=rs01
|
||||||
Environment=ROOT_URL=https://__DOMAIN____PATH__
|
Environment=ROOT_URL=https://__DOMAIN__
|
||||||
Environment=PORT=__PORT__
|
Environment=PORT=__PORT__
|
||||||
Environment=ADMIN_USERNAME="__ADMIN__"
|
Environment=ADMIN_USERNAME="__ADMIN__"
|
||||||
Environment=ADMIN_PASS="__PASSWORD__"
|
Environment=ADMIN_PASS="__PASSWORD__"
|
||||||
|
|
|
@ -7,12 +7,6 @@ To enable E-mail for address verification, go to Rocket.Chat Administration pane
|
||||||
- Port: `25`
|
- Port: `25`
|
||||||
- From -mail: `rocketchat@domain.tld`
|
- From -mail: `rocketchat@domain.tld`
|
||||||
|
|
||||||
|
|
||||||
### Configure and activate federation for Rocket.Chat
|
|
||||||
|
|
||||||
https://support.indie.host/help/fr-fr/13/40
|
|
||||||
|
|
||||||
|
|
||||||
### Mobile Apps
|
### Mobile Apps
|
||||||
|
|
||||||
In addition to the web interface, you can also download Rocket.Chat clients for:
|
In addition to the web interface, you can also download Rocket.Chat clients for:
|
||||||
|
|
|
@ -7,12 +7,6 @@ Pour activer l'e-mail pour la vérification des adresses, accédez au panneau d'
|
||||||
- Port : `25`
|
- Port : `25`
|
||||||
- De l'e-mail : `rocketchat@domain.tld`
|
- De l'e-mail : `rocketchat@domain.tld`
|
||||||
|
|
||||||
|
|
||||||
### Configurer et activer la fédération pour Rocket.Chat
|
|
||||||
|
|
||||||
https://support.indie.host/help/fr-fr/13/40
|
|
||||||
|
|
||||||
|
|
||||||
### Applications Mobiles
|
### Applications Mobiles
|
||||||
|
|
||||||
En plus de l'interface Web, vous pouvez également télécharger les clients Rocket.Chat pour :
|
En plus de l'interface Web, vous pouvez également télécharger les clients Rocket.Chat pour :
|
||||||
|
|
|
@ -5,7 +5,7 @@ name = "Rocket.Chat"
|
||||||
description.en = "Team collaboration communication platform"
|
description.en = "Team collaboration communication platform"
|
||||||
description.fr = "Plateforme de communication collaborative en équipe"
|
description.fr = "Plateforme de communication collaborative en équipe"
|
||||||
|
|
||||||
version = "6.3.1~ynh1"
|
version = "6.3.3~ynh1"
|
||||||
|
|
||||||
maintainers = ["eric_G"]
|
maintainers = ["eric_G"]
|
||||||
|
|
||||||
|
@ -31,10 +31,6 @@ ram.runtime = "50M"
|
||||||
[install.domain]
|
[install.domain]
|
||||||
type = "domain"
|
type = "domain"
|
||||||
|
|
||||||
[install.path]
|
|
||||||
type = "path"
|
|
||||||
default = "/rocketchat"
|
|
||||||
|
|
||||||
[install.init_main_permission]
|
[install.init_main_permission]
|
||||||
help.en = "You must activate 'Visitors' if you want to connect a Mobile or desktop client to Rocket.Chat. This can be changed later via the webadmin."
|
help.en = "You must activate 'Visitors' if you want to connect a Mobile or desktop client to Rocket.Chat. This can be changed later via the webadmin."
|
||||||
help.fr = "Vous devez activer 'Visiteurs' si vous souhaitez connecter un client mobile ou desktop à Rocket.Chat. Vous pourrez changer ceci plus tard via la webadmin."
|
help.fr = "Vous devez activer 'Visiteurs' si vous souhaitez connecter un client mobile ou desktop à Rocket.Chat. Vous pourrez changer ceci plus tard via la webadmin."
|
||||||
|
@ -51,8 +47,8 @@ ram.runtime = "50M"
|
||||||
[resources.sources]
|
[resources.sources]
|
||||||
|
|
||||||
[resources.sources.main]
|
[resources.sources.main]
|
||||||
url = "https://releases.rocket.chat/6.3.1/download"
|
url = "https://releases.rocket.chat/6.3.3/download"
|
||||||
sha256 = "81d51303f0f6ff57c95b7ff84524cb2d46a0382d6d1177fe8b72556eaf401111"
|
sha256 = "fa3647e1e8ca9c8ec12e6fc32903a82d2fe4fd18efc4c0580576c924510c9444"
|
||||||
in_subdir = true
|
in_subdir = true
|
||||||
extract = true
|
extract = true
|
||||||
rename = "rocket.chat.tgz"
|
rename = "rocket.chat.tgz"
|
||||||
|
|
|
@ -30,7 +30,7 @@ ynh_change_url_nginx_config
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Updating systemd service..." --weight=1
|
ynh_script_progression --message="Updating systemd service..." --weight=1
|
||||||
|
|
||||||
ynh_replace_string --match_string="Environment=ROOT_URL=https://$old_domain$old_path" --replace_string="Environment=ROOT_URL=https://$new_domain$new_path" --target_file="/etc/systemd/system/$app.service"
|
ynh_replace_string --match_string="Environment=ROOT_URL=https://$old_domain" --replace_string="Environment=ROOT_URL=https://$new_domain" --target_file="/etc/systemd/system/$app.service"
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -73,9 +73,9 @@ if ynh_exec_warn_less ynh_mongo_exec --command="printjson(rs.status())" | grep -
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SYSTEMD
|
# SYSTEM CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Configuring a systemd service..." --weight=1
|
ynh_script_progression --message="Adding system configurations related to $app..." --weight=1
|
||||||
|
|
||||||
# Create a dedicated NGINX config
|
# Create a dedicated NGINX config
|
||||||
ynh_add_nginx_config
|
ynh_add_nginx_config
|
||||||
|
@ -85,7 +85,7 @@ ynh_add_systemd_config
|
||||||
|
|
||||||
# Use logrotate to manage application logfile(s)
|
# Use logrotate to manage application logfile(s)
|
||||||
ynh_use_logrotate
|
ynh_use_logrotate
|
||||||
yunohost service add $app --description="Team collaboration communication platform"
|
yunohost service add $app --description="Team collaboration communication platform" --log="/var/log/$app/$app.log"
|
||||||
|
|
||||||
#==============================================
|
#==============================================
|
||||||
# INSTALL ROCKETCHAT
|
# INSTALL ROCKETCHAT
|
||||||
|
|
|
@ -18,10 +18,11 @@ db_name=$(ynh_app_setting_get --app=$app --key=db_name)
|
||||||
db_user=$db_name
|
db_user=$db_name
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STANDARD REMOVE
|
# REMOVE SYSTEM CONFIGURATIONS
|
||||||
#=================================================
|
#=================================================
|
||||||
# REMOVE SERVICE INTEGRATION IN YUNOHOST
|
# REMOVE SYSTEMD SERVICE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
|
||||||
|
|
||||||
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
|
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
|
||||||
if ynh_exec_warn_less yunohost service status $app >/dev/null
|
if ynh_exec_warn_less yunohost service status $app >/dev/null
|
||||||
|
@ -60,7 +61,12 @@ ynh_systemd_action --service_name=mongod --action=restart --log_path=/var/log/mo
|
||||||
# Remove a database if it exists, along with the associated user
|
# Remove a database if it exists, along with the associated user
|
||||||
ynh_mongo_remove_db --db_user=$db_user --db_name=$db_name
|
ynh_mongo_remove_db --db_user=$db_user --db_name=$db_name
|
||||||
|
|
||||||
ynh_remove_mongo
|
#ynh_remove_mongo
|
||||||
|
|
||||||
|
# Remove mongod service
|
||||||
|
yunohost service remove mongod
|
||||||
|
ynh_secure_remove --file="/var/lib/mongodb"
|
||||||
|
ynh_secure_remove --file="/var/log/mongodb"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
|
|
|
@ -64,9 +64,11 @@ if ynh_exec_warn_less ynh_mongo_exec --command="printjson(rs.status())" | grep -
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE SYSTEMD
|
# RESTORE SYSTEM CONFIGURATIONS
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Restoring the systemd configuration..." --weight=1
|
# RESTORE THE PHP-FPM CONFIGURATION
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Restoring system configurations related to $app..." --weight=1
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||||
|
|
||||||
|
@ -75,12 +77,14 @@ systemctl enable $app.service --quiet
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/etc/logrotate.d/$app"
|
ynh_restore_file --origin_path="/etc/logrotate.d/$app"
|
||||||
|
|
||||||
yunohost service add $app --description="Team collaboration communication platform"
|
yunohost service add $app --description="Team collaboration communication platform" --log="/var/log/$app/$app.log"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# GENERIC FINALIZATION
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Starting a systemd service..." --weight=19
|
# RELOAD NGINX AND PHP-FPM OR THE APP SERVICE
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Reloading NGINX web server and $app's service..." --weight=1
|
||||||
|
|
||||||
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="SERVER RUNNING"
|
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="SERVER RUNNING"
|
||||||
|
|
||||||
|
|
|
@ -97,9 +97,9 @@ pushd $install_dir/programs/server
|
||||||
popd
|
popd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SYSTEMD
|
# REAPPLY SYSTEM CONFIGURATIONS
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Upgrading systemd configuration..." --weight=2
|
ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1
|
||||||
|
|
||||||
# Create a dedicated NGINX config
|
# Create a dedicated NGINX config
|
||||||
ynh_add_nginx_config
|
ynh_add_nginx_config
|
||||||
|
@ -110,7 +110,7 @@ ynh_add_systemd_config
|
||||||
# Use logrotate to manage app-specific logfile(s)
|
# Use logrotate to manage app-specific logfile(s)
|
||||||
ynh_use_logrotate --non-append
|
ynh_use_logrotate --non-append
|
||||||
|
|
||||||
yunohost service add $app --description="Team collaboration communication platform"
|
yunohost service add $app --description="Team collaboration communication platform" --log="/var/log/$app/$app.log"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
|
|
|
@ -2,9 +2,15 @@ test_format = 1.0
|
||||||
|
|
||||||
[default]
|
[default]
|
||||||
|
|
||||||
|
# ------------
|
||||||
|
# Tests to run
|
||||||
|
# ------------
|
||||||
|
|
||||||
|
exclude = ["install.subdir"]
|
||||||
|
|
||||||
# -------------------------------
|
# -------------------------------
|
||||||
# Commits to test upgrade from
|
# Commits to test upgrade from
|
||||||
# -------------------------------
|
# -------------------------------
|
||||||
|
|
||||||
test_upgrade_from.8c5ad8d9.name = "Upgrade from 5.4.3"
|
test_upgrade_from.ca35dcf1205733c8cf94cb2dc32a9c899ae93d1d.name = "Upgrade from 6.3.1~ynh1"
|
||||||
|
|
Loading…
Reference in a new issue