<commit_before># Managed by Puppet.
# See puppet/modules/role/templates/striker/striker.ini.erb

[secrets]
# Not so secret secret key
SECRET_KEY = <KEY>

[debug]
DEBUG = true

[ldap]
SERVER_URI = ldap://127.0.0.1:389
BIND_USER = <%= scope['::role::ldapauth::writer_dn'] %>
BIND_PASSWORD = <%= scope['::role::ldapauth::writer_password'] %>
TLS = false

BASE_DN = <%= scope['::role::ldapauth::base_dn'] %>
USER_SEARCH_BASE = <%= scope['::role::ldapauth::user_base_dn'] %>
STAFF_GROUP_DN = cn=wmf,ou=groups,<%= scope['::role::ldapauth::base_dn'] %>
SUPERUSER_GROUP_DN = cn=tools.admin,ou=servicegroups,<%= scope['::role::ldapauth::base_dn'] %>

TOOLS_MAINTAINER_BASE_DN = ou=people,<%= scope['::role::ldapauth::base_dn'] %>
TOOLS_TOOL_BASE_DN = ou=servicegroups,<%= scope['::role::ldapauth::base_dn'] %>

[oauth]
MWURL = <%= scope['::mediawiki::server_url'] %>/w/index.php
CONSUMER_KEY = <%= @oauth_consumer_key %>
CONSUMER_SECRET = <%= @oauth_consumer_secret %>

[phabricator]
SERVER_URL = <%= @phabricator_url %>
USER = <%= @phabricator_user %>
TOKEN = <%= @phabricator_token %>
REPO_ADMIN_GROUP = <%= @phabricator_repo_admin_group %>

[db]
ENGINE = django.db.backends.mysql
NAME = <%= @db_name %>
USER = <%= @db_user %>
PASSWORD = <%= @db_<PASSWORD> %>
HOST = 127.0.0.1
PORT = 3306

<% if @use_xff -%>
[xff]
USE_XFF_HEADER = true
<% if @xff_trusted_hosts -%>
TRUSTED_PROXY_LIST = <%= @xff_trusted_hosts.join(' ') %>
<% end -%>
<% end -%>

[logging]
HANDLERS = file
LEVEL = DEBUG
FILE_FILENAME = <%= @log_dir %>/striker/django.log

[wikitech]<commit_msg>striker: Use custom db engine<commit_after># Managed by Puppet.
# See puppet/modules/role/templates/striker/striker.ini.erb

[secrets]
# Not so secret secret key
SECRET_KEY = <KEY>

[debug]
DEBUG = true

[ldap]
SERVER_URI = ldap://127.0.0.1:389
BIND_USER = <%= scope['::role::ldapauth::writer_dn'] %>
BIND_PASSWORD = <%= scope['::role::ldapauth::writer_password'] %>
TLS = false

BASE_DN = <%= scope['::role::ldapauth::base_dn'] %>
USER_SEARCH_BASE = <%= scope['::role::ldapauth::user_base_dn'] %>
STAFF_GROUP_DN = cn=wmf,ou=groups,<%= scope['::role::ldapauth::base_dn'] %>
SUPERUSER_GROUP_DN = cn=tools.admin,ou=servicegroups,<%= scope['::role::ldapauth::base_dn'] %>

TOOLS_MAINTAINER_BASE_DN = ou=people,<%= scope['::role::ldapauth::base_dn'] %>
TOOLS_TOOL_BASE_DN = ou=servicegroups,<%= scope['::role::ldapauth::base_dn'] %>

[oauth]
MWURL = <%= scope['::mediawiki::server_url'] %>/w/index.php
CONSUMER_KEY = <%= @oauth_consumer_key %>
CONSUMER_SECRET = <%= @oauth_consumer_secret %>

[phabricator]
SERVER_URL = <%= @phabricator_url %>
USER = <%= @phabricator_user %>
TOKEN = <%= @<PASSWORD>ator_token %>
REPO_ADMIN_GROUP = <%= @phabricator_repo_admin_group %>

[db]
ENGINE = striker.db
NAME = <%= @db_name %>
USER = <%= @db_user %>
PASSWORD = <%= @db_<PASSWORD> %>
HOST = 127.0.0.1
PORT = 3306

<% if @use_xff -%>
[xff]
USE_XFF_HEADER = true
<% if @xff_trusted_hosts -%>
TRUSTED_PROXY_LIST = <%= @xff_trusted_hosts.join(' ') %>
<% end -%>
<% end -%>

[logging]
HANDLERS = file
LEVEL = DEBUG
FILE_FILENAME = <%= @log_dir %>/striker/django.log

[wikitech]
{'fraction_non_alphanumeric': 0.20861459337833493, 'fraction_numerical': 0.012214721954355513, 'mean_word_length': 6.427207637231503, 'pattern_counts': {'":': 0, '<': 56, '<?xml version=': 0, '>': 56, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6435278', 'n_tokens_mistral': 1421, 'n_tokens_neox': 1248, 'n_words': 187}