codepot/etc/codepot.ini.in

391 lines
18 KiB
INI
Raw Permalink Normal View History

;------------------------------------------------------------------------------
2010-03-21 14:50:08 +00:00
; default site language
;------------------------------------------------------------------------------
default_site_language = "english"
2010-01-24 14:34:03 +00:00
;------------------------------------------------------------------------------
2010-03-21 14:50:08 +00:00
; default site name
2010-01-24 14:34:03 +00:00
;------------------------------------------------------------------------------
2010-03-21 14:50:08 +00:00
default_site_name = "@PACKAGE@"
2010-01-24 14:34:03 +00:00
;------------------------------------------------------------------------------
; database settings
;
; database_driver: mysql, mysqli, postgre, oci8, sqlite
2021-09-05 05:53:42 +00:00
;
; == PDO mysql ==
; database_hostname = "localhost"
2021-09-05 05:53:42 +00:00
; database_port = ""
; database_username = "codepot"
; database_password = "codepot"
; database_name = "codepot"
; database_driver = "mysql"
; database_use_pdo = "yes"
2021-09-05 05:53:42 +00:00
; database_prefix = ""
;
; == PDO sqlite ==
2022-02-18 14:51:14 +00:00
; database_hostname = "@DEPOTDIR@/codepot.db"
2021-09-05 05:53:42 +00:00
; database_port = ""
; database_username = ""
; database_password = ""
; database_name = ""
; database_driver = "sqlite"
; database_use_pdo = "yes"
2021-09-05 05:53:42 +00:00
; database_prefix = ""
;
; == MySQL ==
; database_hostname = "localhost"
; database_port = ""
; database_username = "codepot"
; database_password = "codepot"
; database_name = "codepot"
; database_driver = "mysql"
; database_use_pdo = "no"
; database_prefix = ""
;
; == PostgresSQL ==
; database_hostname = ""
; database_port = ""
; database_username = "codepot"
; database_password = "codepot"
; database_name = "codepot"
; database_driver = "postgre"
; database_use_pdo = "no"
; database_prefix = ""
;
; == Oracle
; database_hostname = "(DESCRIPTION=(ADDRESS=(COMMUNITY=tcp.world)(PROTOCOL=TCP)(HOST=192.168.1.126)(PORT=1521))(CONNECT_DATA=(SID=ORCL)))"
; database_port = ""
; database_username = "scott"
; database_password = "tiger"
; database_name = ""
; database_driver = "oci8"
; database_use_pdo = "no"
; database_prefix = "cpot_"
2010-01-24 14:34:03 +00:00
;------------------------------------------------------------------------------
database_hostname = "localhost"
database_port = ""
database_username = ""
database_password = ""
database_name = ""
database_driver = ""
database_use_pdo = "no"
2021-09-07 07:01:20 +00:00
database_prefix = ""
database_store_gmt = "yes"
2010-01-24 14:34:03 +00:00
;------------------------------------------------------------------------------
; ldap settings
;------------------------------------------------------------------------------
; The userid format and the password format can contain
; ${userid} and ${password} to represent the actual user ID
; and the password respectively.
;
; If ldap_auth_mode is 1, authentication is performed by binding to
; a LDAP server specified using ldap_userid_format as a binddn and
; ldap_password_format as a password.
;
; If ldap_auth_mode is 2, it finds a binddn by searching a subtree
; under ldap_userid_search_base using ldap_userid_search_filter
; after having bound with ldap_admin_binddn and ldap_admin_password.
; The binddn found is used for subsequent binding for authentication.
; ldap_userid_format is unused in this mode.
;
; if you want to specify multiple attributes in ldap_insider_attribute_names
; separate them with a space.
2010-01-24 14:34:03 +00:00
;------------------------------------------------------------------------------
ldap_server_uri = "ldap://127.0.0.1:389"
2010-01-24 14:34:03 +00:00
ldap_server_protocol_version = "3"
ldap_auth_mode = 2
ldap_userid_format = "cn=${userid},ou=users,dc=codepot,dc=org"
2010-01-24 14:34:03 +00:00
ldap_password_format = "${password}"
ldap_admin_binddn = "cn=admin,dc=codepot,dc=org"
ldap_admin_password = "admin-password"
ldap_userid_search_filter = "(uid=${userid})"
ldap_userid_search_base = "ou=users,dc=codepot,dc=org"
ldap_mail_attribute_name = ""
ldap_insider_attribute_names = "mssfu30posixmemberof memberof"
ldap_insider_attribute_value = ""
2010-01-24 14:34:03 +00:00
;------------------------------------------------------------------------------
2010-02-21 11:27:50 +00:00
; default langage to use. set it to 'auto' to detect it automatically.
; available languages are:
; english, korean, indonesian
2010-01-24 14:34:03 +00:00
;------------------------------------------------------------------------------
2010-02-21 11:27:50 +00:00
language = "auto"
2010-01-24 14:34:03 +00:00
;------------------------------------------------------------------------------
; Name of the index page. If you want to hide the index page name from
; the URL by rewriting it (e.g. mod_rewrite), you have to change this
; properly to match the rewriting rule
;------------------------------------------------------------------------------
index_page = "index.php"
2010-01-24 14:34:03 +00:00
;------------------------------------------------------------------------------
; When set to yes, viewing pages requires a user to sign in.
2010-01-24 14:34:03 +00:00
;------------------------------------------------------------------------------
signin_compulsory = "no"
;------------------------------------------------------------------------------
; Code read access is limited to the specified user type. The types
; include anonymous, authenticated, authenticated-insider, member.
; This applies to a public project only. Write access to any projects
; and read access to a non-public project require membership regardless
; of this item.
;------------------------------------------------------------------------------
code_read_access = "anonymous"
;------------------------------------------------------------------------------
; File read access is limited to the specified user type. The types
; include anonymous, authenticated, authenticated-insider, member.
; This applies to a public project only. Write access to any projects
; and read access to a non-public project require membership regardless
; of this item.
;------------------------------------------------------------------------------
file_read_access = "anonymous"
2010-01-24 14:34:03 +00:00
;------------------------------------------------------------------------------
; When set to yes, non-http access is diverted to https using
; the base URL specified in https_base_url. api calls are not affected.
2010-01-24 14:34:03 +00:00
;------------------------------------------------------------------------------
https_compulsory = "no"
https_url = "https://${SERVER_NAME}${REQUEST_URI}"
2010-01-24 14:34:03 +00:00
;------------------------------------------------------------------------------
; Command-separated list of subversion base URLs
2010-01-24 14:34:03 +00:00
;------------------------------------------------------------------------------
; This URL depends on the webdav configuration for subversion repository.
; If you have your repository enabled with SSL under /svn, you can set this to
; https://${SERVER_NAME}/svn.
; You may specify multiple URLs separated with a comma as shown below:
; "http://${SERVER_NAME}/svn, https://${SERVER_NAME}/svn"
; All specified URLs are shown in the repository list of the project overview
; page.
; You may use various items available in $_SERVER when composing the URL.
; For example, ${HTTP_HOST} maps to $_SERVER{'HTTP_HOST'}.
; Additionally, $_SERVER{'REQUEST_PROTOCOL'} added by config/config.php
; can be referenced with ${REQUEST_PROTOCOL} and it is resolved to either
; http or https.
;------------------------------------------------------------------------------
;svn_base_url = "${REQUEST_PROTOCOL}://${SERVER_NAME}:${SERVER_PORT}/svn"
svn_base_url = "${REQUEST_PROTOCOL}://${HTTP_HOST}/svn"
2010-01-24 14:34:03 +00:00
;------------------------------------------------------------------------------
; Login model to use. LdapLoginModel or DbLoginModel.
2010-01-24 14:34:03 +00:00
;------------------------------------------------------------------------------
;login_model = "LdapLoginModel"
login_model = "DbLoginModel"
2010-01-24 14:34:03 +00:00
;------------------------------------------------------------------------------
; Comma separated list of system administrator IDs
2010-01-24 14:34:03 +00:00
;------------------------------------------------------------------------------
; sysadmin_userids = "tom, dick, jane"
;------------------------------------------------------------------------------
sysadmin_userids = ""
2010-01-24 14:34:03 +00:00
;------------------------------------------------------------------------------
; Maximum file upload size in Kbytes. You may have to adjust PHP settings
; for a large value to work.
2010-01-24 14:34:03 +00:00
;------------------------------------------------------------------------------
max_upload_size = "10000"
;------------------------------------------------------------------------------
; Maximum number of latest projects to show in the front page
2010-01-24 14:34:03 +00:00
;------------------------------------------------------------------------------
max_latest_projects = "10"
;------------------------------------------------------------------------------
; Maximum number of projects to show in the top projects graph (0 to hide)
;------------------------------------------------------------------------------
max_top_projects = "10"
;------------------------------------------------------------------------------
; Maximum number of committers to show in the top committers graph (0 to hide)
;------------------------------------------------------------------------------
max_top_committers = "10"
;------------------------------------------------------------------------------
; Maximum number of projects to show
;------------------------------------------------------------------------------
max_projects_per_page = "100"
;------------------------------------------------------------------------------
; Maximum number of issues to show
;------------------------------------------------------------------------------
max_issues_per_page = "50"
;------------------------------------------------------------------------------
; Maximum number of log entries to show per details page
;------------------------------------------------------------------------------
max_logs_per_page = "50"
;------------------------------------------------------------------------------
; Maximum number of log entries to show in the front page
;------------------------------------------------------------------------------
max_logs_in_site_home = "20"
;------------------------------------------------------------------------------
; Maximum number of log entries to show in the project home page
;------------------------------------------------------------------------------
max_logs_in_project_home = "10"
2010-01-24 14:34:03 +00:00
;------------------------------------------------------------------------------
; directory to accomodate subversion repositories
;------------------------------------------------------------------------------
svnrepo_dir = "@DEPOTDIR@/svnrepo"
;------------------------------------------------------------------------------
; directory to store uploaded files
;------------------------------------------------------------------------------
file_dir = "@DEPOTDIR@/files"
;------------------------------------------------------------------------------
; directory to store issue attachments
;------------------------------------------------------------------------------
issue_file_dir = "@DEPOTDIR@/issuefiles"
;------------------------------------------------------------------------------
; directory to store wiki attachments
;------------------------------------------------------------------------------
attachment_dir = "@DEPOTDIR@/attachments"
;------------------------------------------------------------------------------
; directory to store user icons
;------------------------------------------------------------------------------
usericon_dir = "@DEPOTDIR@/usericons"
;------------------------------------------------------------------------------
; log threshold
;------------------------------------------------------------------------------
; 0 = Disables logging, Error logging TURNED OFF
; 1 = Error Messages (including PHP errors)
; 2 = Debug Messages
; 3 = Informational Messages
; 4 = All Messages
;------------------------------------------------------------------------------
log_threshold = 0
;------------------------------------------------------------------------------
; When yes, open a wiki creation page if a non-existent wiki pages is
; requested
;------------------------------------------------------------------------------
create_missing_wiki = "no"
;------------------------------------------------------------------------------
; When yes, a project member can delete a non-empty project containing
; wiki pages, file uploads, etc. An empty project can be deleted any time
; regardless of this option. A system administrator(sysadmin_userids) is
; allowed to delete a non-empty project also regardless of this option.
;------------------------------------------------------------------------------
force_project_delete = "no"
;------------------------------------------------------------------------------
; When yes, a codepot page can use set_time_limit() to adjust the maximum
; execution time to override the global value. For example, the code search
; page can take very long if the code repository is very large. You can
; set this item to yes to allow such a page to complete its processing.
;------------------------------------------------------------------------------
allow_set_time_limit = "no"
;------------------------------------------------------------------------------
; When yes, a user must sign in to be able to search code.
; When no, an anonymous user can search code.
;------------------------------------------------------------------------------
signin_for_code_search = "yes"
;------------------------------------------------------------------------------
; customized footer
;------------------------------------------------------------------------------
; Leave this empty for the default footer message. You can use a HTML tag as
; well as a plain text. For example,
; footer = "<u>Code Repository</u>"
;------------------------------------------------------------------------------
footer = ""
;------------------------------------------------------------------------------
; CLOC command
;------------------------------------------------------------------------------
; Full path to the CLOC command
;------------------------------------------------------------------------------
cloc_command_path = "@CFGDIR@/cloc.pl"
;------------------------------------------------------------------------------
; List of README files to show in the code folder view.
; The first file found is shown. You can specify multiple file name
; separated by a comma.
;------------------------------------------------------------------------------
code_folder_readme = "README.md,README.wc,README.txt,README"
;------------------------------------------------------------------------------
; Email address to use when sending notification emails
;------------------------------------------------------------------------------
email_sender = ""
;------------------------------------------------------------------------------
; Send notification upon a new commit if yes
;------------------------------------------------------------------------------
commit_notification = "yes"
;------------------------------------------------------------------------------
; Send commit review notification if yes
;------------------------------------------------------------------------------
commit_review_notification = "yes"
;------------------------------------------------------------------------------
; URL to include when sending a commit notification message.
; You can specify multiple urls. in fact, it's a free text.
; Replacement is performed for ${REV}, ${AUTHOR}, ${PROJECTID}.
;------------------------------------------------------------------------------
commit_notification_url = ""
2016-07-13 06:24:58 +00:00
;------------------------------------------------------------------------------
; Send notification upon new issue registration if yes
;------------------------------------------------------------------------------
issue_notification = "yes"
;------------------------------------------------------------------------------
; Codepot sets this revision property to assign a tag to a specific revision.
;------------------------------------------------------------------------------
svn_tag_property = "codepot:tag"
;------------------------------------------------------------------------------
; Subversion read access is limited to the specified user type. The types
; include anonymous, authenticated, authenticated-insider, member.
; This applies to a public project only. Write access to any projects
; and read access to a non-public project require membership regardless
; of this item.
;------------------------------------------------------------------------------
svn_read_access = "member"
2021-09-03 17:13:27 +00:00
;------------------------------------------------------------------------------
2021-09-08 16:42:48 +00:00
; Grant subversion read access to public repository if the user id and the
2021-09-03 17:13:27 +00:00
; password match this special credential configured. The value must be
; a userid and a password separated by a colon. For example,
2021-09-08 16:42:48 +00:00
; svnuser:aab08d13-942c-49bc-b6a7-5ca4408b08d6
2021-09-03 17:13:27 +00:00
; This credentical takes precedence over non-anonymous svn_read_access mode.
;------------------------------------------------------------------------------
svn_read_credential = ""
;------------------------------------------------------------------------------
; The length of a commit message must be as long as this value.
;------------------------------------------------------------------------------
svn_min_commit_message_length = "0"
;------------------------------------------------------------------------------
2015-04-09 05:21:47 +00:00
; Operations on the files under one of svn_restricted_topdirs
; are limited. The value can be separated by a comma.
; To allow 1 subdirectory under the tags directory, set the followings:
; svn_restricted_topdirs = "tags"
2015-04-12 16:10:37 +00:00
; svn_restriction_allowed_subdir_depth_min = "0"
; svn_restriction_allowed_subdir_depth_max = "1"
;------------------------------------------------------------------------------
svn_restricted_topdirs = ""
2015-04-12 16:10:37 +00:00
svn_restriction_allowed_subdir_depth_min = "0"
svn_restriction_allowed_subdir_depth_max = "0"
;------------------------------------------------------------------------------
; Command separated list of user names who can execute /usr/sbin/codepot-user.
; Set it to an empty string to allow all users.
;------------------------------------------------------------------------------
codepot_user_executor = "root"