X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/7b9ec4b60ee39614d1d083d7220e76b07d2b275f..08cf52e21395d633afe7de03f255aaa0941bac1d:/cookbooks/trac/templates/default/trac.ini.erb diff --git a/cookbooks/trac/templates/default/trac.ini.erb b/cookbooks/trac/templates/default/trac.ini.erb index 08cd1584a..3cff049be 100644 --- a/cookbooks/trac/templates/default/trac.ini.erb +++ b/cookbooks/trac/templates/default/trac.ini.erb @@ -2,6 +2,7 @@ [attachment] max_size = 262144 +max_zip_size = 2097152 render_unsafe_content = false [browser] @@ -17,30 +18,35 @@ render_unsafe_content = false wiki_properties = trac:description [changeset] -max_diff_files = 100 +max_diff_bytes = 10000000 +max_diff_files = 0 wiki_format_messages = true [components] -tracext.git.* = enabled +tracopt.ticket.deleter = enabled +tracopt.versioncontrol.git.* = enabled +tracopt.versioncontrol.svn.* = enabled [header_logo] alt = OpenStreetMap height = 80 -link = http://trac.openstreetmap.org/ +link = https://<%= @name %>/ src = site/osm.png width = 228 [inherit] +htdocs_dir = plugins_dir = templates_dir = [intertrac] josm.compat = false josm.title = JOSM Trac -josm.url = http://josm.openstreetmap.de +josm.url = https://josm.openstreetmap.de [logging] log_file = trac.log +# log_format = log_level = INFO log_type = file @@ -48,28 +54,31 @@ log_type = file stats_provider = DefaultTicketGroupStatsProvider [mimeviewer] -enscript_modes = text/x-dylan:dylan:4 -enscript_path = enscript -max_preview_size = 102400 +max_preview_size = 262144 mime_map = text/x-dylan:dylan,text/x-idl:ice,text/x-ada:ads:adb -php_path = php +mime_map_patterns = text/plain:README|INSTALL|COPYING.* pygments_default_style = trac pygments_modes = tab_width = 8 -treat_as_binary = application/octet-stream,application/pdf,application/postscript,application/rtf +treat_as_binary = application/octet-stream, application/pdf, application/postscript, application/msword,application/rtf, [notification] admit_domains = always_notify_owner = true always_notify_reporter = true always_notify_updater = true +ambiguous_char_width = single +batch_subject_template = $prefix Batch modify: $tickets_descr +email_sender = SmtpEmailSender ignore_domains = -mime_encoding = qp +mime_encoding = none +sendmail_path = sendmail smtp_always_bcc = smtp_always_cc = smtp_default_domain = smtp_enabled = true smtp_from = trac@noreply.openstreetmap.org +smtp_from_author = false smtp_from_name = smtp_password = smtp_port = 25 @@ -86,29 +95,49 @@ use_tls = false admin = admin_trac_url = . descr = OpenStreetMap is a free editable map of the whole world -footer = Visit the map at
http://www.openstreetmap.org/ +footer = Visit the map at
https://www.openstreetmap.org/ icon = site/osm.ico name = OpenStreetMap -url = http://www.openstreetmap.org/ +url = https://www.openstreetmap.org/ [query] default_anonymous_query = status!=closed&cc~=$USER default_query = status!=closed&owner=$USER items_per_page = 100 +ticketlink_query = ?status=!closed [report] items_per_page = 100 items_per_page_rss = 0 +[repositories] +subversion.dir = /var/lib/subversion/repos/openstreetmap +subversion.description = Legacy subversion repository +subversion.type = svn +subversion.url = https://svn.openstreetmap.org/ +subversion.hidden = true +<% Dir.glob("/var/lib/git/*.git").sort.each do |repository| -%> +<%= File.basename(repository, ".git") %>.dir = <%= repository %> +<%= File.basename(repository, ".git") %>.description = <%= IO.read("#{repository}/description").strip %> +<%= File.basename(repository, ".git") %>.type = git +<%= File.basename(repository, ".git") %>.url = https://git.openstreetmap.org/public/<%= File.basename(repository) %> +<% end -%> +.alias = subversion + [revisionlog] default_log_limit = 100 +graph_colors = ['#cc0', '#0c0', '#0cc', '#00c', '#c0c', '#c00'] [roadmap] stats_provider = DefaultTicketGroupStatsProvider [search] +# default_disabled_filters = min_query_length = 3 +[sqlite] +# extensions = + [svn] branches = trunk,branches/* tags = tags/* @@ -119,7 +148,7 @@ default_component = default_description = default_keywords = default_milestone = -default_owner = +default_owner = < default > default_priority = minor default_resolution = fixed default_severity = @@ -160,8 +189,11 @@ newticket_formatter = oneliner ticket_show_details = false [trac] +auth_cookie_lifetime = 0 +auth_cookie_path = authz_file = authz_module_name = +auto_preview_timeout = 2.0 auto_reload = False backup_dir = db base_url = https://<%= @name %>/ @@ -169,8 +201,13 @@ check_auth_ip = false database = sqlite:db/trac.db debug_sql = False default_charset = utf-8 +default_dateinfo_format = relative +genshi_cache_size = 128 htdocs_location = ignore_auth_case = false +jquery_location = +jquery_ui_location = +jquery_ui_theme_location = mainnav = wiki,timeline,roadmap,browser,tickets,newticket,search metanav = login,logout,prefs,help,about mysqldump_path = mysqldump @@ -178,30 +215,23 @@ never_obfuscate_mailto = false permission_policies = DefaultPermissionPolicy, LegacyAttachmentPolicy permission_store = DefaultPermissionStore pg_dump_path = pg_dump -repository_sync_per_request = +repository_dir = +repository_sync_per_request = (default) +repository_type = svn +resizable_textareas = true secure_cookies = False show_email_addresses = false show_ip_addresses = false timeout = 20 use_base_url_for_redirect = False -[repositories] -subversion.dir = /var/lib/subversion/repos/openstreetmap -subversion.description = Legacy subversion repository -subversion.type = svn -subversion.url = http://svn.openstreetmap.org/ -subversion.hidden = true -<% Dir.glob("/var/lib/git/*.git").each do |repository| -%> -<%= File.basename(repository, ".git") %>.dir = <%= repository %> -<%= File.basename(repository, ".git") %>.description = <%= IO.read("#{repository}/description").strip %> -<%= File.basename(repository, ".git") %>.type = git -<%= File.basename(repository, ".git") %>.url = git://git.openstreetmap.org/<%= File.basename(repository) %> -<% end -%> -.alias = subversion +[versioncontrol] +allowed_repository_dir_prefixes = [wiki] ignore_missing_pages = false max_size = 262144 render_unsafe_content = false +safe_schemes = cvs, file, ftp, git, irc, http, https, news, sftp, smb, ssh, svn, svn+ssh split_page_names = false