6 Commits
master ... env

Author SHA1 Message Date
d5cdfab3e5 Auto-update READMEs 2025-07-02 08:02:06 +02:00
3e33afe719 Merge branch 'testing' into env 2025-07-02 08:02:03 +02:00
396b5699a7 Merge branch 'env' of https://github.com/YunoHost-Apps/send_ynh into env 2025-04-01 23:31:37 +02:00
ac39aded73 cleaning 2025-04-01 23:31:32 +02:00
6f3e883927 Auto-update READMEs 2025-04-01 23:30:31 +02:00
aef113307b cleaning 2025-04-01 23:30:20 +02:00
8 changed files with 30 additions and 8 deletions

View File

@ -12,7 +12,7 @@ File sharing which allows to send encrypted files
[![🌐 Official app website](https://img.shields.io/badge/Official_app_website-darkgreen?style=for-the-badge)](https://send.vis.ee/)
[![App Demo](https://img.shields.io/badge/App_Demo-blue?style=for-the-badge)](https://send.vis.ee/)
[![Version: 3.4.27~ynh1](https://img.shields.io/badge/Version-3.4.27~ynh1-rgba(0,150,0,1)?style=for-the-badge)](https://ci-apps.yunohost.org/ci/apps/send/)
[![Version: 3.4.25~ynh1](https://img.shields.io/badge/Version-3.4.25~ynh1-rgba(0,150,0,1)?style=for-the-badge)](https://ci-apps.yunohost.org/ci/apps/send/)
<div align="center">
<a href="https://apps.yunohost.org/app/send"><img height="100px" src="https://github.com/YunoHost/yunohost-artwork/raw/refs/heads/main/badges/neopossum-badges/badge_more_info_on_the_appstore.svg"/></a>

6
conf/.env Normal file
View File

@ -0,0 +1,6 @@
NODE_ENV=production
BASE_URL=https://__DOMAIN__
IP_ADDRESS=127.0.0.7
PORT=__PORT__
REDIS_DB=__REDIS_DB__
FILE_DIR=__DATA_DIR__

View File

@ -7,7 +7,7 @@ Type=simple
User=__APP__
Group=__APP__
WorkingDirectory=__INSTALL_DIR__/
Environment="NODE_ENV=production"
EnvironmentFile=__INSTALL_DIR__/.env
Environment="PATH=__PATH_WITH_NODEJS__"
ExecStart=__NODEJS_DIR__/node __INSTALL_DIR__/server/bin/prod.js
Restart=always

View File

@ -7,7 +7,7 @@ name = "Send"
description.en = "File sharing which allows to send encrypted files"
description.fr = "Partage de fichiers qui permet d'envoyer des fichiers chiffrés"
version = "3.4.27~ynh1"
version = "3.4.25~ynh1"
maintainers = []
@ -24,6 +24,7 @@ architectures = ["amd64", "arm64", "armhf"]
multi_instance = true
ldap = false
sso = false
disk = "50M"
@ -42,8 +43,8 @@ ram.runtime = "50M"
[resources]
[resources.sources.main]
url = "https://github.com/timvisee/send/archive/refs/tags/v3.4.27.tar.gz"
sha256 = "fda2db869f3affbaf1fa025501c8b32b92cd85d350a1424b20db7f9164dce301"
url = "https://github.com/timvisee/send/archive/refs/tags/v3.4.25.tar.gz"
sha256 = "826224832ac8facdd368f9960d99afdef0a549d92b003af1d93bc271b6fa036a"
autoupdate.strategy = "latest_github_tag"
[resources.ports]
@ -52,6 +53,8 @@ ram.runtime = "50M"
[resources.install_dir]
[resources.data_dir]
[resources.permissions]
main.url = "/"
main.additional_urls = ["/api/upload"]

View File

@ -11,6 +11,12 @@ ynh_print_info "Declaring files to be backed up..."
ynh_backup "$install_dir"
#=================================================
# BACKUP THE DATA DIR
#=================================================
ynh_backup "$data_dir"
#=================================================
# SYSTEM CONFIGURATION
#=================================================

View File

@ -43,7 +43,7 @@ yunohost service add "$app" --description="Simple, private file sharing" --log="
#=================================================
ynh_script_progression "Adding $app's configuration..."
ynh_config_add --template="config.js" --destination="$install_dir/server/config.js"
ynh_config_add --template=".env" --destination="$install_dir/.env"
#=================================================
# BUILD APP

View File

@ -12,6 +12,13 @@ ynh_restore "$install_dir"
chmod +x "$install_dir/server/bin/prod.js"
#=================================================
# RESTORE THE DATA DIRECTORY
#=================================================
ynh_script_progression "Restoring the data directory..."
ynh_restore "$data_dir"
#=================================================
# REINSTALL DEPENDENCIES
#=================================================

View File

@ -22,7 +22,7 @@ ynh_config_remove_logrotate
#=================================================
ynh_script_progression "Upgrading source files..."
ynh_setup_source --dest_dir="$install_dir" --keep="server/config.js" --full_replace
ynh_setup_source --dest_dir="$install_dir" --keep=".env" --full_replace
chmod +x "$install_dir/server/bin/prod.js"
@ -49,7 +49,7 @@ yunohost service add "$app" --description="Simple, private file sharing" --log="
#=================================================
ynh_script_progression "Updating configuration..."
ynh_config_add --template="config.js" --destination="$install_dir/server/config.js"
ynh_config_add --template=".env" --destination="$install_dir/.env"
#=================================================
# BUILD APP