From f93eea6a927c9442ed37f983d534d7e3ec4a6a87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sat, 27 Aug 2022 12:40:46 +0200 Subject: [PATCH] add auth --- conf/systemd.service | 1 + manifest.json | 4 ++++ scripts/install | 1 + 3 files changed, 6 insertions(+) diff --git a/conf/systemd.service b/conf/systemd.service index 4060fbd..dee2a4a 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -6,6 +6,7 @@ After=network.target Type=simple User=__APP__ Group=__APP__ +Environment=auth_password=__PASSWORD__ WorkingDirectory=__FINALPATH__/ ExecStart=__FINALPATH__/tube -c __FINALPATH__/config.json diff --git a/manifest.json b/manifest.json index 3a23f97..f6e6bca 100644 --- a/manifest.json +++ b/manifest.json @@ -35,6 +35,10 @@ "name": "is_public", "type": "boolean", "default": true + }, + { + "name": "password", + "type": "password" } ] } diff --git a/scripts/install b/scripts/install index 281eb72..ce3d3fa 100755 --- a/scripts/install +++ b/scripts/install @@ -27,6 +27,7 @@ ynh_abort_if_errors domain=$YNH_APP_ARG_DOMAIN path_url="/" is_public=$YNH_APP_ARG_IS_PUBLIC +password=$YNH_APP_ARG_PASSWORD app=$YNH_APP_INSTANCE_NAME