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