| 4 | | Trac configuration is done by editing the ''trac.ini'' config file, located in . |
| | 4 | Trac configuration is done by editing the '''`trac.ini`''' config file, located in `<projectenv>/conf/trac.ini`. |
| | 5 | |
| | 6 | == Global Configuration == |
| | 7 | |
| | 8 | Since version 0.9, Trac can also read the configuration from a global `trac.ini` file. These global options will then be merged with the environment-specific options, where local options override global options. |
| | 9 | |
| | 10 | The global configuration is by default localted in `$prefix/share/trac/conf/trac.ini`. It can be moved to a different location (for example, `/etc/trac.ini`), but that requires changing the file `trac/siteconfig.py` which gets created when Trac is installed. |
| | 11 | |
| | 12 | == Reference == |
| 22 | | == [logging] == |
| 23 | | || log_type || Logging facility to use. (none, file, stderr, syslog, winlog) || |
| 24 | | || log_file || If ''log_type'' is ''file'', this should be a path to the log-file || |
| 25 | | || log_level || Level of verbosity in log (CRITICAL, ERROR, WARN, INFO, DEBUG) || |
| | 21 | This section is used to enable or disable components provided by plugins, as well as by Trac itself. The component to enable/disable is specified via the name of the option. Whether its enabled is determined by the option value; setting the value to `enabled` or `on` will enable the component, any other value (typically `disabled` or `off`) will disable the component. |
| 29 | | == [ticket] == |
| 30 | | || default_version || Default version for newly created tickets || |
| 31 | | || default_severity || Default severity for newly created tickets || |
| 32 | | || default_priority || Default priority for newly created tickets || |
| 33 | | || default_milestone || Default milestone for newly created tickets || |
| 34 | | || default_component || Default component for newly created tickets || |
| 35 | | |
| 36 | | See also: TracTicketsCustomFields |
| 37 | | |
| 38 | | == [attachment] == |
| 39 | | || max_size || Maximum allowed file size for ticket and wiki attachments || |
| 40 | | |
| 41 | | == [notification] == |
| 42 | | || smtp_enabled || Enable SMTP (email) notification (true, false) || |
| 43 | | || smtp_server || SMTP server to use for email notifications || |
| 44 | | || smtp_from || Sender address to use in notification emails || |
| 45 | | || smtp_replyto || Reply-To address to use in notification emails || |
| 46 | | || smtp_always_cc || Email address(es) to always send notifications to || |
| 47 | | || always_notify_reporter || Always send notifications to any address in the ''reporter'' field || |
| 48 | | |
| 49 | | See also: TracNotification |
| 50 | | |
| 51 | | == [header_logo] == |
| 52 | | || src || URL to image to use as header logo || |
| 53 | | || link || Destination URL to link to from header logo || |
| 54 | | || alt || ''alt'' text for header logo || |
| 55 | | || width || Header logo width in pixels || |
| 56 | | || height || Header logo height in pixels || |
| 57 | | |
| 58 | | == [mimeviewer] == |
| 59 | | || enscript_path || Path to Enscript program || |
| 60 | | |
| 61 | | == [timeline] == |
| 62 | | || changeset_show_files || Number of files to show (-1 for unlimited, 0 to disable) || |
| 63 | | |
| 64 | | == [diff] == |
| 65 | | || tab_width || Displayed tab width in changeset diffs || |
| | 25 | Consider the following configuration snippet: |