Configuration
There are 3 ways to configure Semaphore:
Snap configuration
Snap configurations should be used for when Semaphore was installed via Snap.
To see a list of available options, use the following command:
You can change each of these configurations. For example if you want to change Semaphore port, use following command:
Don't forget to restart Semaphore after changing a configuration:
Interactive setup
Use this option for first time configuration (not working for Semaphore installed via Snap).
Configuration file
Semaphore uses a config.json
configuration file with following content:
Configuration options
Configuration file | Snap configuration | Description |
---|---|---|
| — | Path to the BoltDB database file |
|
| MySQL database host |
|
| MySQL database (schema) name |
|
| MySQL user name |
|
| MySQL user's password |
|
| Postgres database host |
|
| Postgres database (schema) name |
|
| Postgres user name |
|
| Postgres user's password |
|
| Can be |
|
| TCP port on which the web interface will be available. Default: 3000 |
|
| Useful if your server has multiple network interfaces |
| — | Path to directory where cloned repositories and generated files are stored. Default: /tmp/semaphore |
|
| Secret key used for encrypting access keys in database. Read more in Database encryption reference. |
|
| Can be useful if you want to use Semaphore by the subpath, for example: http://yourdomain.com/semaphore. Do not add a trailing |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| Set to True to enable pushing alerts to slack. It should be used in combination with |
|
| The slack webhook url. Semaphore will used it to POST Slack formatted json alerts to the provided url. |
|
| Set to True to enable pushing alerts to Rocket.Chat. It should be used in combination with |
|
| The rocketchat webhook url. Semaphore will used it to POST Rocket.Chat formatted json alerts to the provided url. Available since v2.9.56. |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| Can be unset/empty or |
|
| Max allowed parallel tasks if |
OpenID provider settings. You can provide multiple OpenID providers. More about OpenID configuration read in OpenID. | ||
Disable login with using password. Only LDAP and OpenID. | ||
Allow non-admin users to create new projects. |
Public URL
If you use nginx or other web server before Semaphore, you should provide configuration option web_host
.
For example you configured NGINX on the server which proxies queries to Semaphore.
Server address https://exmaple.com
and you proxies all queries https://exmaple.com/semaphore
to Semaphore.
Your web_host
will be https://exmaple.com/semaphore
.
Last updated