diff --git a/config_panel.toml b/config_panel.toml index 989695b..b13bd5c 100644 --- a/config_panel.toml +++ b/config_panel.toml @@ -3,13 +3,15 @@ version = "1.0" [main] name = "Settings" - [main.global_config] - name = "Access options" + [main.is_signup] + name = "Signup configuration" - services = ["nginx", "__APP__"] + services = ["__APP__"] - [main.global_config.is_signup] + [main.is_signup.is_signup] ask = "Allow signups?" type = "boolean" + yes = '1' + no = '' help = "Would you like to allow visitors to register and create an account?" - bind = "signup:__FINALPATH__/server.js" + bind = "signup:/opt/yunohost/__APP__/server.js" \ No newline at end of file diff --git a/manifest.json b/manifest.json index e44b456..ca06a07 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "A remoteStorage server running as a nodejs web service with systemd", "fr": "Un serveur remoteStorage excécuté en tant que service web nodejs par systemd" }, - "version": "0.0.5~ynh1", + "version": "0.0.6~ynh1", "url": "https://github.com/remotestorage/armadietto", "upstream": { "license": "MIT", @@ -40,6 +40,19 @@ "en": "Would you like to restrein the access to this web site?", "fr": "Souhaitez-vous limiter l'accès à ce site web ?" } + }, + { + "name": "is_signup", + "type": "boolean", + "ask": { + "en": "Allow signups?", + "fr": "Accepter les inscriptions ?" + }, + "help": { + "en": "Would you like to allow visitors to register and create an account?", + "fr": "Souhaitez-vous autoriser les visiteurs à s'inscrire et créer un compte ?" + }, + "default": false } ] }