Skip to content
This repository was archived by the owner on Oct 17, 2023. It is now read-only.

Configuration

Quentin Guidée edited this page Aug 4, 2022 · 9 revisions

First of all, go to https://your.url/config. You'll be prompt to enter some info.

Establish a database connection

Choose one of these DBMS:

SQLite

SQLite is the recommended DBMS for tests and prototyping. This is not suited for production environments. If you choose SQLite, everything is handled automatically. You have nothing to do except clicking "Connect".

screenshot


PostgreSQL

This is the recommended DBMS.

  1. To start a PostgreSQL server, follow these steps: https://www.postgresql.org/download/.

    However, if you are used to Docker, you can instead run this docker-compose.yml

  2. Fill the configuration form with these info:

    • host: URL where your database is (eg. localhost, localhost:5432 or my.website.com)
    • database: the name of the database (eg. cloudsh)
    • user: your database username
    • password: your database password

screenshot


Enable an authentication method

For the moment, cloud.sh uses third party OAuth exclusively. To configure the server, you should choose one of the following methods first. You can add more methods later in the Admin Panel.

GitHub

In the "Provider" field, select "GitHub". Then, on GitHub, create an OAuth application (user settings > developer settings > OAuth Apps > New) with these settings:

  • Homepage URL: http://YOUR_CLIENT_URL/
  • Authorization callback URL: type the redirect URL (http://YOUR_CLIENT_URL/login)

Then, type in the setup form your Client ID and Client secret given by GitHub.

Clone this wiki locally