mirror of
https://gitnet.fr/deblan/gist.git
synced 2021-08-14 08:30:49 +02:00
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 (true
orfalse
)$app['enable_login']
: defines if the login is allowed (true
orfalse
)$app['login_required_to_edit_gist']
: defines if the user must be logged to create or clone a Gist (true
orfalse
)$app['login_required_to_view_gist']
: defines if the user must be logged to view a Gist (true
orfalse
)$app['login_required_to_view_gist']
: defines if the user must be logged to view an embeded Gist (true
orfalse
)
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 (true
orfalse
)security.enable_login
: defines if the login is allowed (true
orfalse
)security.login_required_to_edit_gist
: defines if the user must be logged to create or clone a Gist (true
orfalse
)security.login_required_to_view_gist
: defines if the user must be logged to view a Gist (true
orfalse
)security.login_required_to_view_gist
: defines if the user must be logged to view an embeded Gist (true
orfalse
)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 (dark
orlight
)
Version >= v1.7.0
api.enabled
: defines if the API is enabled (true
orfalse
)api.api_key_required
: defines if the API key is required to access the API (true
orfalse
)api.client.api_key
: defines the client API key (string
)