---
apiVersion: v1
data:
  run.sh: |-
    {
        "port":         "YAPI_PORT",
        "adminAccount": "YAPI_ACOUNT",
        "db": {
            "servername": "YAPI_DB_HOST",
            "DATABASE":   "YAPI_DB_NAME",
            "port":       "YAPI_DB_PORT",
            "user":       "YAPI_DB_USER",
            "pass":       "YAPI_DB_PASS",
            "authSource": "YAPI_DB_AUTH"
        },
        "mail": {
            "enable": YAPI_MAIL_ENABLE,
            "host":  "YAPI_MAIL_HOST",
            "port":   YAPI_MAIL_PORT,
            "from":  "YAPI_MAIL_FROM",
            "auth": {
                "user": "YAPI_MAIL_FROM",
                "pass": "YAPI_MAIL_PASS"
            }
        }
    }
kind: ConfigMap
metadata:
  name: yapi-yapi
  namespace: yapi-dev
