2 1.2.1 Configuration
Simon Vieille edited this page 2018-10-09 16:32:12 +02:00

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 or false)
  • $app['enable_login']: defines if the login is allowed (true or false)
  • $app['login_required_to_edit_gist']: defines if the user must be logged to create or clone a Gist (true or false)
  • $app['login_required_to_view_gist']: defines if the user must be logged to view a Gist (true or false)
  • $app['login_required_to_view_gist']: defines if the user must be logged to view an embeded Gist (true or false)

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 or false)
  • security.enable_login: defines if the login is allowed (true or false)
  • security.login_required_to_edit_gist: defines if the user must be logged to create or clone a Gist (true or false)
  • security.login_required_to_view_gist: defines if the user must be logged to view a Gist (true or false)
  • security.login_required_to_view_gist: defines if the user must be logged to view an embeded Gist (true or false)
  • api.base_uri: The url of your instance.
  • data.path: the path where the files are saved.
  • git.path: The path of git.
  • theme.name: the name of the theme (dark or light)

Version >= v1.7.0

  • api.enabled: defines if the API is enabled (true or false)
  • api.api_key_required: defines if the API key is required to access the API (true or false)
  • api.client.api_key: defines the client API key (string)

Previous: 1.2-Installation / Next: 1.2.2-Web-server