2023-09-26 13:13:58 +00:00
|
|
|
# Learn more about Opengist configuration here:
|
2024-10-13 21:47:06 +00:00
|
|
|
# https://github.com/thomiceli/opengist/blob/master/docs/configuration/configure.md
|
2023-09-26 13:13:58 +00:00
|
|
|
# https://github.com/thomiceli/opengist/blob/master/docs/configuration/cheat-sheet.md
|
|
|
|
|
2024-09-09 09:50:05 +00:00
|
|
|
# Set the log level to one of the following: debug, info, warn, error, fatal. Default: warn
|
2023-04-06 23:52:56 +00:00
|
|
|
log-level: warn
|
2023-03-14 15:22:52 +00:00
|
|
|
|
2023-12-27 16:24:52 +00:00
|
|
|
# Set the log output to one or more of the following: `stdout`, `file`. Default: stdout,file
|
|
|
|
log-output: stdout,file
|
|
|
|
|
2024-01-02 04:11:49 +00:00
|
|
|
# Public URL to access to Opengist
|
2023-04-06 23:52:56 +00:00
|
|
|
external-url:
|
2023-03-14 15:22:52 +00:00
|
|
|
|
2023-04-06 23:52:56 +00:00
|
|
|
# Directory where Opengist will store its data. Default: ~/.opengist/
|
|
|
|
opengist-home:
|
2023-03-14 15:22:52 +00:00
|
|
|
|
2024-10-31 13:50:13 +00:00
|
|
|
# Secret key used for session store & encrypt MFA data on database. Default: <randomized 32 bytes>
|
|
|
|
secret-key:
|
|
|
|
|
2024-11-25 21:07:13 +00:00
|
|
|
# URI of the database. Default: opengist.db (SQLite) is placed in opengist-home
|
|
|
|
# SQLite: file:/path/to/database
|
2024-09-20 14:01:09 +00:00
|
|
|
# PostgreSQL: postgres://user:password@host:port/database
|
|
|
|
# MySQL/MariaDB: mysql://user:password@host:port/database
|
|
|
|
db-uri: opengist.db
|
2023-03-14 15:22:52 +00:00
|
|
|
|
2024-01-04 02:38:15 +00:00
|
|
|
# Enable or disable the code search index (either `true` or `false`). Default: true
|
|
|
|
index.enabled: true
|
|
|
|
|
|
|
|
# Name of the directory where the code search index is stored. Default: opengist.index
|
|
|
|
index.dirname: opengist.index
|
|
|
|
|
2023-12-27 16:30:42 +00:00
|
|
|
# Default branch name used by Opengist when initializing Git repositories.
|
|
|
|
# If not set, uses the Git default branch name. See https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup#_new_default_branch
|
|
|
|
git.default-branch:
|
|
|
|
|
2023-06-09 13:25:41 +00:00
|
|
|
# Set the journal mode for SQLite. Default: WAL
|
|
|
|
# See https://www.sqlite.org/pragma.html#pragma_journal_mode
|
2024-09-20 14:01:09 +00:00
|
|
|
# For SQLite databases only.
|
2023-06-09 13:25:41 +00:00
|
|
|
sqlite.journal-mode: WAL
|
|
|
|
|
2023-03-14 15:22:52 +00:00
|
|
|
|
2023-04-06 23:52:56 +00:00
|
|
|
# HTTP server configuration
|
|
|
|
# Host to bind to. Default: 0.0.0.0
|
|
|
|
http.host: 0.0.0.0
|
2023-03-14 15:22:52 +00:00
|
|
|
|
2023-04-06 23:52:56 +00:00
|
|
|
# Port to bind to. Default: 6157
|
|
|
|
http.port: 6157
|
2023-03-14 15:22:52 +00:00
|
|
|
|
2023-04-06 23:52:56 +00:00
|
|
|
# Enable or disable git operations (clone, pull, push) via HTTP (either `true` or `false`). Default: true
|
|
|
|
http.git-enabled: true
|
2023-03-14 15:22:52 +00:00
|
|
|
|
|
|
|
# SSH built-in server configuration
|
|
|
|
# Note: it is not using the SSH daemon from your machine (yet)
|
|
|
|
|
2023-04-06 23:52:56 +00:00
|
|
|
# Enable or disable SSH built-in server
|
|
|
|
# for git operations (clone, pull, push) via SSH (either `true` or `false`). Default: true
|
|
|
|
ssh.git-enabled: true
|
2023-03-14 15:22:52 +00:00
|
|
|
|
2023-04-06 23:52:56 +00:00
|
|
|
# Host to bind to. Default: 0.0.0.0
|
|
|
|
ssh.host: 0.0.0.0
|
2023-03-14 15:22:52 +00:00
|
|
|
|
2023-04-06 23:52:56 +00:00
|
|
|
# Port to bind to. Default: 2222
|
|
|
|
# Note: it cannot be the same port as the SSH daemon if it's currently running
|
|
|
|
# If you want to use the port 22 for the built-in SSH server,
|
|
|
|
# you can either change the port of the SSH daemon or stop it
|
|
|
|
ssh.port: 2222
|
2023-03-14 15:22:52 +00:00
|
|
|
|
2023-04-06 23:52:56 +00:00
|
|
|
# Public domain for the Git SSH connection, if it has to be different from the HTTP one.
|
|
|
|
# If not set, uses the URL from the request
|
|
|
|
ssh.external-domain:
|
2023-03-14 15:22:52 +00:00
|
|
|
|
2023-04-06 23:52:56 +00:00
|
|
|
# Path or alias to ssh-keygen executable. Default: ssh-keygen
|
|
|
|
ssh.keygen-executable: ssh-keygen
|
2023-04-17 17:11:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
# OAuth2 configuration
|
2024-01-04 15:45:57 +00:00
|
|
|
# The callback/redirect URL must be http://opengist.url/oauth/<github|gitlab|gitea|openid-connect>/callback
|
2023-04-17 17:11:32 +00:00
|
|
|
|
|
|
|
# To create a new OAuth2 application using GitHub : https://github.com/settings/applications/new
|
|
|
|
github.client-key:
|
|
|
|
github.secret:
|
|
|
|
|
2023-12-18 00:35:44 +00:00
|
|
|
# To create a new OAuth2 application using Gitlab : https://gitlab.com/-/user_settings/applications
|
|
|
|
gitlab.client-key:
|
|
|
|
gitlab.secret:
|
|
|
|
# URL of the Gitlab instance. Default: https://gitlab.com/
|
|
|
|
gitlab.url: https://gitlab.com/
|
2024-02-19 01:20:03 +00:00
|
|
|
# The name of the GitLab instance. It is displayed in the OAuth login button. Default: GitLab
|
|
|
|
gitlab.name: GitLab
|
2023-12-18 00:35:44 +00:00
|
|
|
|
2023-04-17 17:11:32 +00:00
|
|
|
# To create a new OAuth2 application using Gitea : https://gitea.domain/user/settings/applications
|
2023-04-17 19:57:03 +00:00
|
|
|
gitea.client-key:
|
2023-04-17 17:11:32 +00:00
|
|
|
gitea.secret:
|
2023-04-17 19:57:03 +00:00
|
|
|
# URL of the Gitea instance. Default: https://gitea.com/
|
2023-04-17 17:11:32 +00:00
|
|
|
gitea.url: https://gitea.com/
|
2024-02-19 01:20:03 +00:00
|
|
|
# The name of the Gitea instance. It is displayed in the OAuth login button. Default: Gitea
|
|
|
|
gitea.name: Gitea
|
2023-09-15 21:56:14 +00:00
|
|
|
|
|
|
|
# To create a new OAuth2 application using OpenID Connect:
|
|
|
|
oidc.client-key:
|
|
|
|
oidc.secret:
|
2023-09-25 13:58:05 +00:00
|
|
|
# Discovery endpoint of the OpenID provider. Generally something like http://auth.example.com/.well-known/openid-configuration
|
2023-09-15 21:56:14 +00:00
|
|
|
oidc.discovery-url:
|
2024-01-20 22:46:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Custom assets
|
2024-04-02 15:12:54 +00:00
|
|
|
# Add your own custom assets, that are files relatives to $opengist-home/custom/
|
2024-01-20 22:46:47 +00:00
|
|
|
custom.logo:
|
|
|
|
custom.favicon:
|
2024-04-02 15:12:54 +00:00
|
|
|
|
|
|
|
# Static pages in footer (like legal notices, privacy policy, etc.)
|
|
|
|
# The path can be a URL or a relative path to a file in the $opengist-home/custom/ directory
|
|
|
|
custom.static-links:
|
|
|
|
# - name: Gitea
|
|
|
|
# path: https://gitea.com
|
|
|
|
# - name: Legal notices
|
|
|
|
# path: legal.html
|