<commit_before>app_env: production
services:
  - general_db
  - log_db
  - router
  - web
user: api-umbrella
group: api-umbrella
rlimits:
  nofile: 100000
  nproc: 20000
http_port: 80
https_port: 443
etc_dir: /opt/api-umbrella/etc
log_dir: /opt/api-umbrella/var/log
run_dir: /opt/api-umbrella/var/run
tmp_dir: /opt/api-umbrella/var/tmp
db_dir: /opt/api-umbrella/var/db
redis:
  host: 127.0.0.1
  port: 14000
beanstalkd:
  host: 127.0.0.1
  port: 14005
dnsmasq:
  port: 14007
nginx:
  workers: 4
  worker_connections: 8192
gatekeeper:
  workers: 4
  host: 127.0.0.1
  starting_port: 14050
  default_frontend_host:
  api_key_methods:
    - header
    - getParam
    - basicAuthUsername
  target: "127.0.0.1:14010"
varnish:
  port: 14010
  backend:
    host: 127.0.0.1
    port: 14011
web:
  host: 127.0.0.1
  port: 14012
  dir: /opt/api-umbrella/embedded/apps/web/current
  rails_secret_token:
  devise_secret_key:
  puma:
    bind: "unix:///opt/api-umbrella/var/run/puma.sock"
    workers: 2
    min_threads: 2
    max_threads: 24
  admin:
    initial_superusers: []
    auth_strategies:
      enabled:
        - github
        - google
        - persona
      facebook:
        client_id:
        client_secret:
      github:
        client_id:
        client_secret:
      google:
        client_id:
        client_secret:
static_site:
  host: 127.0.0.1
  port: 14013
  host_header:
  dir: /opt/api-umbrella/embedded/apps/static-site/current
router:
  api_backends:
    port: 14011
  dir: /opt/api-umbrella/embedded/apps/router/current
  trusted_proxies: []
  global_rate_limits:
    ip_rate: "100r/s"
    ip_burst: 200
    ip_rate_size: 8m
    ip_connections: 50
    ip_connections_size: 5m
  log_listener:
    port: 14006
supervisord:
  inet_http_server:
    host: 127.0.0.1
    port: 14004
hosts:
  - hostname: localhost
    default: true
dns_resolver:
  minimum_ttl: 40
  reload_buffer_time: 40
mongodb:
  url: "mongodb://127.0.0.1:14001/api_umbrella"
  options:
    server:
      socketOptions:
        keepAlive: 500
    replset:
      socketOptions:
        keepAlive: 500
  embedded_server_config:
    systemLog:
      destination: file
      logAppend: true
      quiet: true
    processManagement:
      fork: false
    net:
      port: 14001
elasticsearch:
  hosts:
    - "http://127.0.0.1:14002"
  embedded_server_env:
    heap_size: 512m
  embedded_server_config:
    http:
      port: 14002
    transport:
      tcp:
        port: 14003
    cluster:
      name: api-umbrella
    indices:
      fielddata:
        cache:
          size: 40%
      breaker:
        fielddata:
          limit: 60%
log_template_version: v1<commit_msg>Disable default elasticsearch groovy scripting for security fix.<commit_after>app_env: production
services:
  - general_db
  - log_db
  - router
  - web
user: api-umbrella
group: api-umbrella
rlimits:
  nofile: 100000
  nproc: 20000
http_port: 80
https_port: 443
etc_dir: /opt/api-umbrella/etc
log_dir: /opt/api-umbrella/var/log
run_dir: /opt/api-umbrella/var/run
tmp_dir: /opt/api-umbrella/var/tmp
db_dir: /opt/api-umbrella/var/db
redis:
  host: 127.0.0.1
  port: 14000
beanstalkd:
  host: 127.0.0.1
  port: 14005
dnsmasq:
  port: 14007
nginx:
  workers: 4
  worker_connections: 8192
gatekeeper:
  workers: 4
  host: 127.0.0.1
  starting_port: 14050
  default_frontend_host:
  api_key_methods:
    - header
    - getParam
    - basicAuthUsername
  target: "127.0.0.1:14010"
varnish:
  port: 14010
  backend:
    host: 127.0.0.1
    port: 14011
web:
  host: 127.0.0.1
  port: 14012
  dir: /opt/api-umbrella/embedded/apps/web/current
  rails_secret_token:
  devise_secret_key:
  puma:
    bind: "unix:///opt/api-umbrella/var/run/puma.sock"
    workers: 2
    min_threads: 2
    max_threads: 24
  admin:
    initial_superusers: []
    auth_strategies:
      enabled:
        - github
        - google
        - persona
      facebook:
        client_id:
        client_secret:
      github:
        client_id:
        client_secret:
      google:
        client_id:
        client_secret:
static_site:
  host: 127.0.0.1
  port: 14013
  host_header:
  dir: /opt/api-umbrella/embedded/apps/static-site/current
router:
  api_backends:
    port: 14011
  dir: /opt/api-umbrella/embedded/apps/router/current
  trusted_proxies: []
  global_rate_limits:
    ip_rate: "100r/s"
    ip_burst: 200
    ip_rate_size: 8m
    ip_connections: 50
    ip_connections_size: 5m
  log_listener:
    port: 14006
supervisord:
  inet_http_server:
    host: 127.0.0.1
    port: 14004
hosts:
  - hostname: localhost
    default: true
dns_resolver:
  minimum_ttl: 40
  reload_buffer_time: 40
mongodb:
  url: "mongodb://127.0.0.1:14001/api_umbrella"
  options:
    server:
      socketOptions:
        keepAlive: 500
    replset:
      socketOptions:
        keepAlive: 500
  embedded_server_config:
    systemLog:
      destination: file
      logAppend: true
      quiet: true
    processManagement:
      fork: false
    net:
      port: 14001
elasticsearch:
  hosts:
    - "http://127.0.0.1:14002"
  embedded_server_env:
    heap_size: 512m
  embedded_server_config:
    http:
      port: 14002
    transport:
      tcp:
        port: 14003
    cluster:
      name: api-umbrella
    indices:
      fielddata:
        cache:
          size: 40%
      breaker:
        fielddata:
          limit: 60%
    # Disable Groovy scripting for security: CVE-2015-1427
    script:
      groovy:
        sandbox:
          enabled: false
log_template_version: v1
{'fraction_non_alphanumeric': 0.09597806215722121, 'fraction_numerical': 0.07422303473491773, 'mean_word_length': 2.42151344590369, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 20, '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': '6842318', 'n_tokens_mistral': 2395, 'n_tokens_neox': 2070, 'n_words': 423}