apiVersion: v1
kind: ConfigMap
metadata:
  name: seafile-env
  namespace: seafile
data:
  # for Seafile server
  TIME_ZONE: "UTC"
  SEAFILE_LOG_TO_STDOUT: "true"
  SITE_ROOT: "/"
  ENABLE_SEADOC: "false"
  SEADOC_SERVER_URL: "https://seafile.example.com/sdoc-server" # only valid in ENABLE_SEADOC = true
  SEAFILE_SERVER_HOSTNAME: "seafile.example.com"
  SEAFILE_SERVER_PROTOCOL: "http"

  # for database
  DB_HOST: "<your MySQL host>"
  DB_PORT: "3306"
  DB_USER: "seafile"
  SEAFILE_MYSQL_DB_CCNET_DB_NAME: "ccnet_db"
  SEAFILE_MYSQL_DB_SEAFILE_DB_NAME: "seafile_db"
  SEAFILE_MYSQL_DB_SEAHUB_DB_NAME: "seahub_db"

  # initialization (only valid in first-time deployment and CLUSTER_INIT_MODE = true)
  CLUSTER_INIT_MODE: "true"

  ## for Seafile admin
  INIT_SEAFILE_ADMIN_EMAIL: "<Seafile admin's email>"
  
  ## for cluster basic service
  CLUSTER_INIT_MEMCACHED_HOST: "<your Memcached server host>"
  CLUSTER_INIT_ES_HOST: "<your ElasticSearch server host>"
  CLUSTER_INIT_ES_PORT: "9200"

  ## For S3 storage backend (only valid in INIT_S3_STORAGE_BACKEND_CONFIG = true)
  INIT_S3_STORAGE_BACKEND_CONFIG: "false"
  INIT_S3_COMMIT_BUCKET: ""
  INIT_S3_FS_BUCKET: ""
  INIT_S3_BLOCK_BUCKET: ""
  INIT_S3_KEY_ID: ""
  INIT_S3_USE_V4_SIGNATURE: "true"
  INIT_S3_AWS_REGION: "us-east-1"
  INIT_S3_HOST: ""
  INIT_S3_USE_HTTPS: "true"
