No results
2
1.2.1 Configuration
Simon Vieille edited this page 2018-10-09 16:32:12 +02:00
Table of Contents
Version < 1.4.4
Edit app/bootstrap.php.d/70-security.php.
$app['token']: the securty token (a strong passphrase).$app['enable_registration']: defines if the registration is allowed (trueorfalse)$app['enable_login']: defines if the login is allowed (trueorfalse)$app['login_required_to_edit_gist']: defines if the user must be logged to create or clone a Gist (trueorfalse)$app['login_required_to_view_gist']: defines if the user must be logged to view a Gist (trueorfalse)$app['login_required_to_view_gist']: defines if the user must be logged to view an embeded Gist (trueorfalse)
If you install Gist on your server, you have to modify the base_uri of the API.
Edit app/bootstrap.php.d/60-api.php and replace https://gist.deblan.org/.
Version >= 1.4.4
Versions >= 1.4.4 only: $ cp app/config/config.yml.dist app/config/config.yml
Edit app/config/config.yml.
security.token: the securty token (a strong passphrase)security.enable_registration: defines if the registration is allowed (trueorfalse)security.enable_login: defines if the login is allowed (trueorfalse)security.login_required_to_edit_gist: defines if the user must be logged to create or clone a Gist (trueorfalse)security.login_required_to_view_gist: defines if the user must be logged to view a Gist (trueorfalse)security.login_required_to_view_gist: defines if the user must be logged to view an embeded Gist (trueorfalse)api.base_uri: The url of your instance.data.path: the path where the files are saved.git.path: The path ofgit.theme.name: the name of the theme (darkorlight)
Version >= v1.7.0
api.enabled: defines if the API is enabled (trueorfalse)api.api_key_required: defines if the API key is required to access the API (trueorfalse)api.client.api_key: defines the client API key (string)