= Trac 환경 설정 파일 =
[[TracGuideToc]]

Trac에 대한 환경설정은 `<projectenv>/conf/trac.ini`에 있는 '''`trac.ini`''' 설정 파일을 편집해서 이룰 수 있습니다.

== 전역 환경설정 ==

버전 0.9 이후에, Trac은 전역적인 `trac.ini` 파일로부터 설정을 읽을 수 있습니다. These global options will then be merged with the environment-specific options, where local options override global options.

전역적인 환경설정은 기본적으로 `$prefix/share/trac/conf/trac.ini`에 위치하게 됩니다. 다른 위치로 이동될 수도 있습니다 (예를 들면 `/etc/trac.ini`). 하지만 설정파일의 위치를 바꾸면 trac이 설치될 때 생성되는 `trac/siteconfig.py` 파일을 수정해야합니다.

== Reference ==

이 페이지는 이용할 수 있는 환경설정옵션에 대한 상세한 설명을 제공합니다.

== [trac] ==
|| `database`        || 이 프로젝트에 대한 [wiki:TracEnvironment#DatabaseConnectionStrings 데이타베이스 연결 스트링] ||
|| `default_charset` || subversion 저장소의 텍스트파일에서 사용되는 문자셋트 (기본값은 `iso-8859-15`) ||
|| `default_handler` || 기본 URL에 대한 요청을 처리할 콤포넌트의 이름 (기본값은 `WikiHandler`) (''0.9 이상'') ||
|| `repository_dir`  || Subversion 저장소의 경로 ||
|| `authz_file`      || Subversion [http://svnbook.red-bean.com/en/1.1/ch06s04.html#svn-ch-6-sect-4.4.2 인증 (authz) 파일]의 경로. ||
|| `authz_module_name` || The module prefix used in the `authz_file` (See FineGrainedPermissions)||
|| `check_auth_ip` || 사용자의 IP 주소를 인증을 위해 체크할 것인가? (true, false) (''0.9 이상'')||
|| `ignore_auth_case` || 로그인 이름에 대해서 대소문자 차이를 무시할 것인가? (true, false) (''0.9 이상'') ||
|| `templates_dir`   || !ClearSilver 템플릿의 경로 ||

== [project] ==
|| `name`   || 프로젝트 이름 ||
|| `descr`  || 프로젝트에 대한 짧은 설명 ||
|| `url`    || 메인 프로젝트 웹사이트의 URL ||
|| `icon`   || 단축 아이콘으로 사용되는 아이콘 파일의 URL (favicon) ||
|| `footer` || 페이지의 footer 텍스트 (오른쪽 정렬된) ||

== [header_logo] ==
|| `src`    || header 로고 이미지로 사용되어 지는 이미지의 URL ||
|| `link`   || header 로고 이미지의 링크에 대한 목적지 URL ||
|| `alt`    || header 로고 이미지에 해단 ''alt'' 텍스트 ||
|| `width`  || header 로고 이미지의 픽셀 단위의 폭 ||
|| `height` || header 로고 이미지의 픽셀 단위의 높이 ||
See also: TracInterfaceCustomization.

== [logging] ==
|| `log_type`  || 사용하는 로깅 기능의 타입. (none, file, stderr, syslog, winlog) ||
|| `log_file`  || 만약 ''log_type''이 ''file''일때, 이 옵션은 로그 파일의 경로여야만 합니다. ||
|| `log_level` || 로그의 출력 레벨 (CRITICAL, ERROR, WARN, INFO, DEBUG) ||
참고 : TracLogging

== [attachment] ==
|| `max_size` || 티켓과 위키에서 첨부파일의 최대 사이즈 ||

== [notification] ==
|| `smtp_enabled`   || SMTP (이메일) 통지기능을 활성화 함. (true, false) ||
|| `smtp_server`    || 이메일 통지 기능을 위해 사용할 SMTP server의 주소 ||
|| `smtp_user`      || SMTP 서버의 사용자 이름 (''0.9 이상'') ||
|| `smtp_password`  || SMTP 서버의 패스워드 (''0.9 이상'') ||
|| `smtp_from`      || 통지 메일에서 사용할 보내는 사람 주소 ||
|| `smtp_replyto`   || 통지 메일에서 사용할 반송용 주소 ||
|| `smtp_always_cc` || 통지 메일을 참조로 항상 보낼 이메일 주소(들) ||
|| `always_notify_reporter` || 통지 메일을 ''reporter'' 필드에 있는 주소로 항상 보냅니다. ||
|| `always_notify_owner` || 통지 메일을 티켓 소유자에게 항상 보냅니다. (''0.9 이상'') ||
참고 : TracNotification

== [mimeviewer] ==
|| `enscript_path` || GNU Enscript 프로그램의 경로 ||
|| `php_path` || PHP 프로그램의 경로 ||
|| `max_preview_size` || HTML 미리보기에서의 최대 파일 사이즈 (''0.9 이상'') ||
|| `tab_width` || 파일 미리보기에서의 tab width (''0.9 이상'') ||

== [ticket] ==
|| `default_version`   || 새롭게 생성되는 티켓에 대한 디폴트 version ||
|| `default_severity`  || 새롭게 생성되는 티켓에 대한 디폴트 severity ||
|| `default_priority`  || 새롭게 생성되는 티켓에 대한 디폴트 priority ||
|| `default_milestone` || 새롭게 생성되는 티켓에 대한 디폴트 milestone ||
|| `default_component` || 새롭게 생성되는 티켓에 대한 디폴트 component ||
|| `restrict_owner`    || 티켓의 소유자 필드를 드랍-다운 메뉴를 이용해서 ''선택''하게 합니다. (''0.9 이상'') ||

== [ticket-custom] ==
[wiki:TracTicketsCustomFields 사용자가 정의하는 티켓 필드]를 생성합니다.

== [timeline] ==
|| `default_daysback` || 시간 이력을 기본적으로 며칠전부터 볼 것인가? (''0.9 이상'') ||
|| `changeset_show_files` || 보여줄 파일의 갯수 (-1 : 제한없음, 0 : 비활성화) ||
|| `ticket_show_details` || 시간 이력에서 티켓 내용의 변경을 보여주도록 합니다. ||

== [browser] ==
|| `hide_properties` || Subversion의 속성값들을 저장소 브라우징과 변경사항 보기에서 숨깁니다. (''0.9 이상'') ||

== [wiki] ==
|| `ignore_missing_pages` || 존재하지 않는 페이지에 대한 [wiki:CamelCase]를 링크로 만들지 않습니다. (''0.9 이상'') ||

== [components] ==
(''since 0.9'')

이 섹션은 플러그인 또는 Trac 자체에 의해 제공되는 콤포넌트를 활성화/비활성화하기 위해 사용됩니다. 활성화/비활성화되는 콤퍼넌트는 옵션의 이름으로 지정할 수 있습니다. 활성화될지의 여부는 옵션의 값으로 결정되어집니다; `enabled` 혹은 `on`으로 옵션값을 설정하면 콤포넌트는 활성화됩니다. 다른 값(일반적으로 `disabled` 혹은 `off`)은 콤포넌트를 비활성화시킴니다.

The option name is either the fully qualified name of the components or the module/package prefix of the component. The former enables/disables a specific component, while the latter enables/disables any component in the specified package/module.

Consider the following configuration snippet:
{{{
[components]
trac.ticket.report.ReportModule = disabled
webadmin.* = enabled
}}}

첫번째 옵션은 [wiki:TracReports 리포트 모듈]을 비활성화시킵니다. 두번째 옵션은 `webadmin` 패키지의 모든 콤포넌트를 활성화시킵니다. Note that the trailing wildcard is required for module/package matching.

See the ''Plugins'' page on ''About Trac'' to get the list of active components (requires `CONFIG_VIEW` [wiki:TracPermissions permissions].)

참고 : TracPlugins

  ''Note that prior to Trac r2335 (that applies to 0.9b1 and 0.9b2), you would use a `[disabled_components]` section instead. See a [http://projects.edgewall.com/trac/wiki/TracIni?version=42 previous version] of this page for the details.''

----
참고 : TracGuide, TracAdmin, TracEnvironment
