<commit_before>; This provides a (hopefully) reasonable set of default settings for
; ARC projects. To use this in a project, add the following line to its
; local settings file (typically the DEFAULT section of local.base.cfg):
;
;     extends = "arcutils:local.base.cfg"
;
; You could also simply copy this file into the project and tweak it as
; necessary.

[DEFAULT]
PROJECT.title = null

; Miscellaneous Django stuff
DEBUG = false
ROOT_URLCONF = "{PACKAGE}.urls"
WSGI_APPLICATION = "{PACKAGE}.wsgi.application"

; ARC CDN
ARC.cdn.host = "cdn.research.pdx.edu"
; Entries are key => path.
; Example: ARC.cdn.paths.jquery-js = "/path/to/jquery/on/cdn"
ARC.cdn.paths = {}
; Entries are library/package name => version:
; Example: ARC.versions.jquery = "2.1.1"
ARC.versions.bootstrap = "3.3.5"

; Auth
CAS_SERVER_URL = "https://sso.pdx.edu/cas/"
CAS_RESPONSE_CALLBACKS = ["arcutils.cas.callbacks.default_response_callback"]
; The STAFF and SUPERUSERS settings can be used to automatically create
; staff and superusers on first login. The default CAS response callback
; uses them.
STAFF = []
; If a user is in this list, they'll automatically be made staff too
; (when using the default CAS response callback).
SUPERUSERS = []

; Database
; PostgreSQL is ARC's preferred RDBMS
DATABASES.default.ENGINE = "django.db.backends.postgresql_psycopg2"

; Django REST Framework
REST_FRAMEWORK.DEFAULT_AUTHENTICATION_CLASSES = ["arcutils.auth.SessionAuthentication"]

; Email
DEFAULT_FROM_EMAIL = "{PACKAGE}-{ENV}.<EMAIL>"
SERVER_EMAIL = "{PACKAGE}-{ENV}.<EMAIL>"

; LDAP
; Notes:
;    - There are two LDAP hosts, ldap-bulk and ldap-login; Elliot has
;      said that ldap-login "has more servers in the pool" and he
;      recommends using it over ldap-bulk (RT ticket #580686); note that
;      despite the name, ldap-login does not actually require auth
;    - There's also an AD host that requires a service account:
;      psu.ds.pdx.edu; this host is used for special cases like looking
;      up AD groups
;    - It's possible to do unauthenticated requests over SSL
;    - It's also possible to do authenticated requests over non-SSL
;    - To use SSL, set ``use_ssl`` to ``true``
;    - A project will need an LDAP service account if it does LDAP
;      requests that return more than 2,000 results
;    - The defaults here support a typical Odin autocomplete scenario
LDAP.default.host = "ldap-bulk.oit.pdx.edu"
LDAP.default.port = null
LDAP.default.use_ssl = false
LDAP.default.search_base = "ou=people,dc=pdx,dc=edu"
LDAP.default.username = null
LDAP.default.password = <PASSWORD>
LDAP.default.tls.ca_certs_file = "certifi:cacert.pem"
LDAP.default.tls.validate = "CERT_REQUIRED"
; This can be set to one of the protocol versions in the ssl module
; (e.g., "PROTOCOL_SSLv23"); if it's not set, the ldap3 will choose
; a default value (which is "PROTOCOL_SSLv23" currently)
LDAP.default.tls.version = null

; Localization
LANGUAGE_CODE = "en-us"
TIME_ZONE = "America/Los_Angeles"
USE_I18N = true
USE_L10N = true
USE_TZ = true

; Logging
LOGGING.version = 1
LOGGING.disable_existing_loggers = false
LOGGING.formatters.verbose.style = "{{"
LOGGING.formatters.verbose.format = "[{{asctime}}] {{levelname}} {{pathname}}:{{lineno}} {{message}}"
LOGGING.formatters.verbose.datefmt = "%%d/%%b/%%Y %%H:%%M:%%S"
LOGGING.handlers.console.class = "logging.StreamHandler"
LOGGING.handlers.console.formatter = "verbose"

; Static files<commit_msg>Add default LDAP connection settings for AD w/ notes<commit_after>; This provides a (hopefully) reasonable set of default settings for
; ARC projects. To use this in a project, add the following line to its
; local settings file (typically the DEFAULT section of local.base.cfg):
;
;     extends = "arcutils:local.base.cfg"
;
; You could also simply copy this file into the project and tweak it as
; necessary.

[DEFAULT]
PROJECT.title = null

; Miscellaneous Django stuff
DEBUG = false
ROOT_URLCONF = "{PACKAGE}.urls"
WSGI_APPLICATION = "{PACKAGE}.wsgi.application"

; ARC CDN
ARC.cdn.host = "cdn.research.pdx.edu"
; Entries are key => path.
; Example: ARC.cdn.paths.jquery-js = "/path/to/jquery/on/cdn"
ARC.cdn.paths = {}
; Entries are library/package name => version:
; Example: ARC.versions.jquery = "2.1.1"
ARC.versions.bootstrap = "3.3.5"

; Auth
CAS_SERVER_URL = "https://sso.pdx.edu/cas/"
CAS_RESPONSE_CALLBACKS = ["arcutils.cas.callbacks.default_response_callback"]
; The STAFF and SUPERUSERS settings can be used to automatically create
; staff and superusers on first login. The default CAS response callback
; uses them.
STAFF = []
; If a user is in this list, they'll automatically be made staff too
; (when using the default CAS response callback).
SUPERUSERS = []

; Database
; PostgreSQL is ARC's preferred RDBMS
DATABASES.default.ENGINE = "django.db.backends.postgresql_psycopg2"

; Django REST Framework
REST_FRAMEWORK.DEFAULT_AUTHENTICATION_CLASSES = ["arcutils.auth.SessionAuthentication"]

; Email
DEFAULT_FROM_EMAIL = <EMAIL>"
SERVER_EMAIL = "{PACKAGE}-{ENV}.<EMAIL>"

; LDAP
; Notes:
;    - There are two LDAP hosts, ldap-bulk and ldap-login; Elliot has
;      said that ldap-login "has more servers in the pool" and he
;      recommends using it over ldap-bulk (RT ticket #580686); note that
;      despite the name, ldap-login does not actually require auth
;    - It's possible to do unauthenticated requests over SSL
;    - It's also possible to do authenticated requests over non-SSL
;    - To use SSL, set ``use_ssl`` to ``true``
;    - A project will need an LDAP service account if it does LDAP
;      requests that return more than 2,000 results
;    - The defaults here support a typical Odin autocomplete scenario
LDAP.default.host = "ldap-bulk.oit.pdx.edu"
LDAP.default.port = null
LDAP.default.use_ssl = false
LDAP.default.search_base = "ou=people,dc=pdx,dc=edu"
LDAP.default.username = null
LDAP.default.password = <PASSWORD>
LDAP.default.tls.ca_certs_file = "certifi:cacert.pem"
LDAP.default.tls.validate = "CERT_REQUIRED"
; This can be set to one of the protocol versions in the ssl module
; (e.g., "PROTOCOL_SSLv23"); if it's not set, the ldap3 will choose
; a default value (which is "PROTOCOL_SSLv23" currently)
LDAP.default.tls.version = null
; AD
; To connect to AD, a service account is required; request it from
; cis-windows.
LDAP.ad.hosts = ["oitdcpsu01.psu.ds.pdx.edu", "oitdcpsu02.psu.ds.pdx.edu"]
LDAP.ad.use_ssl = true
LDAP.ad.search_base = "ou=people,dc=psu,dc=ds,dc=pdx,dc=edu"
; These are required for AD and must be in the project's local settings:
;LDAP.ad.username = null
;LDAP.ad.password = null

; Localization
LANGUAGE_CODE = "en-us"
TIME_ZONE = "America/Los_Angeles"
USE_I18N = true
USE_L10N = true
USE_TZ = true

; Logging
LOGGING.version = 1
LOGGING.disable_existing_loggers = false
LOGGING.formatters.verbose.style = "{{"
LOGGING.formatters.verbose.format = "[{{asctime}}] {{levelname}} {{pathname}}:{{lineno}} {{message}}"
LOGGING.formatters.verbose.datefmt = "%%d/%%b/%%Y %%H:%%M:%%S"
LOGGING.handlers.console.class = "logging.StreamHandler"
LOGGING.handlers.console.formatter = "verbose"

; Static files
{'fraction_non_alphanumeric': 0.11580132263965105, 'fraction_numerical': 0.00816096805965949, 'mean_word_length': 4.43840856924254, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '4703020', 'n_tokens_mistral': 2492, 'n_tokens_neox': 2389, 'n_words': 724}