apiVersion: v1
data:
  config.yaml: |-
    # Set to 0 to run everything in a single process without clustering.
    # Use 'ncpu' to run as many workers as there are CPU units
    num_workers: 1

    # Log error messages and gracefully restart a worker if v8 reports that it
    # uses more heap (note: not RSS) than this many mb.
    worker_heap_limit_mb: 300

    # The maximum interval in ms that can pass between two beat messages
    # sent by each worker to the master before it is killed
    worker_heartbeat_timeout: 7500

    # Logger info
    logging:
      name: mathoid
      streams:
        - type: stdout
          named_levels: true

    services:
      - name: mathoid
        # a relative path or the name of an npm package, if different from name
        module: ./app.js
        # per-service config
        conf:
          port: 10044
          # interface: localhost # uncomment to only listen on localhost
          # more per-service config settings
          # the location of the spec, defaults to spec.yaml if not specified
          # spec: ./spec.template.yaml
          # allow cross-domain requests to the API (default '*')
          cors: '*'
          # to disable use:
          # cors: false
          # to restrict to a particular domain, use:
          # cors: restricted.domain.org
          # content for the CSP headers
          # csp: false  # uncomment this line to disable sending them
          # URL of the outbound proxy to use (complete with protocol)
          #      proxy: http://url-downloader.eqiad.wikimedia.org:8080
          # the list of domains for which not to use the proxy defined above
          # no_proxy_list:
          #   - domain1.com
          #   - domain2.org
          # the list of incoming request headers that can be logged; if left empty,
          # the following headers are allowed: cache-control, content-length,
          # content-type, if-match, user-agent, x-request-id
          # log_header_whitelist:
          #   - cache-control
          #   - content-length
          #   - content-type
          #   - if-match
          #   - user-agent
          #   - x-request-id
          # list of enabled renders
          svg: true
          img: true
          png: true
          texvcinfo: true
          no_check: true
          speech: true
          speech_on: false
          speech_config:
            semantics: true
            domain: 'mathspeak'
            style: 'default'
            semantic: false
            minSTree: false
            speakText: true
            enrich: false
          mj_config:
              extensions: "TeX/color,TeX/mediawiki-texvc,TeX/mhchem"
              MathJax:
                menuSettings:
                  semantics: true
                SVG:
                  font: "TeX"
                TeX:
                  noErrors:
                    disabled: true
          dpi: 180
          svgo: false
kind: ConfigMap
metadata:
  name: config-RELEASE-NAME
