1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/filepizza_ynh.git synced 2024-09-03 18:36:01 +02:00

Merge pull request #11 from YunoHost-Apps/testing

Testing
This commit is contained in:
eric_G 2023-12-16 13:32:39 +01:00 committed by GitHub
commit 92e61950e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 6 additions and 18 deletions

View file

@ -18,7 +18,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
Using WebRTC, FilePizza eliminates the initial upload step required by other web-based file sharing services. When senders initialize a transfer, they receive a "tempalink" they can distribute to recipients. Upon visiting this link, recipients' browsers connect directly to the senders browser and may begin downloading the selected file. Because data is never stored in an intermediary server, the transfer is fast, private, and secure. Using WebRTC, FilePizza eliminates the initial upload step required by other web-based file sharing services. When senders initialize a transfer, they receive a "tempalink" they can distribute to recipients. Upon visiting this link, recipients' browsers connect directly to the senders browser and may begin downloading the selected file. Because data is never stored in an intermediary server, the transfer is fast, private, and secure.
**Shipped version:** 1.1.0~ynh6 **Shipped version:** 1.1.0~ynh7
**Demo:** https://file.pizza/ **Demo:** https://file.pizza/

View file

@ -18,7 +18,7 @@ Si vous navez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po
Using WebRTC, FilePizza eliminates the initial upload step required by other web-based file sharing services. When senders initialize a transfer, they receive a "tempalink" they can distribute to recipients. Upon visiting this link, recipients' browsers connect directly to the senders browser and may begin downloading the selected file. Because data is never stored in an intermediary server, the transfer is fast, private, and secure. Using WebRTC, FilePizza eliminates the initial upload step required by other web-based file sharing services. When senders initialize a transfer, they receive a "tempalink" they can distribute to recipients. Upon visiting this link, recipients' browsers connect directly to the senders browser and may begin downloading the selected file. Because data is never stored in an intermediary server, the transfer is fast, private, and secure.
**Version incluse :** 1.1.0~ynh6 **Version incluse :** 1.1.0~ynh7
**Démo :** https://file.pizza/ **Démo :** https://file.pizza/

View file

@ -1,3 +1,3 @@
PORT=__PORT__ PORT=__PORT__
EXTRA_ICE_SERVERS=turn:localhost:3478 EXTRA_ICE_SERVERS=turn:127.0.0.1:__PORT_TURN__
WEBTORRENT_TRACKERS=ws://localhost:8000 WEBTORRENT_TRACKERS=ws://127.0.0.1:8000

View file

@ -5,7 +5,7 @@ name = "FilePizza"
description.en = "Peer-to-peer file transfers in your browser" description.en = "Peer-to-peer file transfers in your browser"
description.fr = "Transferts de fichiers pair-à-pair dans votre navigateur" description.fr = "Transferts de fichiers pair-à-pair dans votre navigateur"
version = "1.1.0~ynh6" version = "1.1.0~ynh7"
maintainers = ["eric_G"] maintainers = ["eric_G"]
@ -47,6 +47,7 @@ ram.runtime = "50M"
autoupdate.strategy = "latest_github_commit" autoupdate.strategy = "latest_github_commit"
[resources.ports] [resources.ports]
turn.default = 3478
[resources.system_user] [resources.system_user]

View file

@ -21,7 +21,6 @@ ynh_install_nodejs --nodejs_version=$nodejs_version
#================================================= #=================================================
ynh_script_progression --message="Setting up source files..." --weight=1 ynh_script_progression --message="Setting up source files..." --weight=1
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir" ynh_setup_source --dest_dir="$install_dir"
chmod -R o-rwx "$install_dir" chmod -R o-rwx "$install_dir"
@ -32,11 +31,9 @@ chown -R $app:www-data "$install_dir"
#================================================= #=================================================
ynh_script_progression --message="Configuring NGINX web server..." --weight=4 ynh_script_progression --message="Configuring NGINX web server..." --weight=4
# Create a dedicated NGINX config
ynh_add_nginx_config ynh_add_nginx_config
env_path="$PATH" env_path="$PATH"
# Create a dedicated systemd config
ynh_add_systemd_config ynh_add_systemd_config
yunohost service add $app --description="Peer-to-peer file transfers" --log="/var/log/$app/$app.log" yunohost service add $app --description="Peer-to-peer file transfers" --log="/var/log/$app/$app.log"
@ -57,7 +54,6 @@ popd
#================================================= #=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=6 ynh_script_progression --message="Starting a systemd service..." --weight=6
# Start a systemd service
ynh_systemd_action --service_name=$app --action=restart --log_path="systemd" ynh_systemd_action --service_name=$app --action=restart --log_path="systemd"
#================================================= #=================================================

View file

@ -15,20 +15,16 @@ source /usr/share/yunohost/helpers
# REMOVE SERVICE INTEGRATION IN YUNOHOST # REMOVE SERVICE INTEGRATION IN YUNOHOST
#================================================= #=================================================
# 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
then then
ynh_script_progression --message="Removing $app service integration..." --weight=2 ynh_script_progression --message="Removing $app service integration..." --weight=2
yunohost service remove $app yunohost service remove $app
fi fi
# Remove the dedicated systemd config
ynh_remove_systemd_config ynh_remove_systemd_config
# Remove the dedicated NGINX config
ynh_remove_nginx_config ynh_remove_nginx_config
# Remove metapackage and its dependencies
ynh_remove_nodejs ynh_remove_nodejs
#================================================= #=================================================

View file

@ -24,7 +24,6 @@ chown -R $app:www-data "$install_dir"
#================================================= #=================================================
ynh_script_progression --message="Reinstalling dependencies..." --weight=7 ynh_script_progression --message="Reinstalling dependencies..." --weight=7
# Install Nodejs
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
#================================================= #=================================================

View file

@ -32,7 +32,6 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
then then
ynh_script_progression --message="Upgrading source files..." --weight=1 ynh_script_progression --message="Upgrading source files..." --weight=1
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir" ynh_setup_source --dest_dir="$install_dir"
fi fi
@ -44,14 +43,11 @@ chown -R $app:www-data "$install_dir"
#================================================= #=================================================
ynh_script_progression --message="Upgrading NGINX web server configuration..." --weight=1 ynh_script_progression --message="Upgrading NGINX web server configuration..." --weight=1
# Create a dedicated NGINX config
ynh_add_nginx_config ynh_add_nginx_config
# Install Nodejs
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
env_path="$PATH" env_path="$PATH"
# Create a dedicated systemd config
ynh_add_systemd_config ynh_add_systemd_config
yunohost service add $app --description="Peer-to-peer file transfers" --log="/var/log/$app/$app.log" yunohost service add $app --description="Peer-to-peer file transfers" --log="/var/log/$app/$app.log"