Module: Blade::Setting::YmlTemplate

Defined in:
lib/blade/setting/yml_template.rb

Constant Summary collapse

REDIS_YML =
"# encoding: UTF-8\n\ndefaults: &defaults\n  status: open\n  host: localhost\n  port: 6379\n  db: 0\n  username: username\n  password: Fy958e5mmyb7Ta4H\n  name_space: redis\n\ndevelopment: &development\n  <<: *defaults\n  host: localhost\n  password: Fy958e5mmyb7Ta4H\n\ntest:\n  <<: *defaults\n\nproduction:\n  <<: *defaults\n"
INFLUXDB_YML =
"# encoding: UTF-8\n\ndefaults: &defaults\n  status: open\n  database: database\n  host: host\n  port: 80\n  username: username\n  password: password\n  async: true\n\ndevelopment: &development\n  <<: *defaults\n  status: close\n\ntest:\n  <<: *defaults\n\nproduction:\n  <<: *defaults\n\n\n"
SEND_CLOUD_YML =
"defaults: &defaults\n  status: close # open  |  close\n\n  storage: storage\n\n  your_scope:\n    status: open\n    api_user: user\n    api_key: key\n    url: url\n    # \u90AE\u4EF6\u53D1\u9001\u8005\n    form: from\n    # \u6709\u6548\u8C03\u7528\u8FC7\u671F\u65F6\u95F4\n    expired_time: 24\n\ndevelopment: &development\n  <<: *defaults\n\ntest: &test\n  <<: *defaults\n\n  status: close # open | close\n\nproduction: &production\n  <<: *defaults\n\n  status: open # open | close\n"
SENTRY_YML =
"#encoding: utf-8\n\ndefault: &default\n  status: open # open | close\n\n  scheme: 'https'\n  host: host\n\n  async: sidekiq # sidekiq or true\n\n  sample_rate: 1.0\n\ndevelopment:\n  <<: *default\n  access_token: token\n  app_id: app_id\n\nproduction:\n  <<: *default\n  access_token: token\n  app_id: prod_app_id\n\n"
SCOUT_APM_YML =
"# This configuration file is used for Scout APM.\n# Environment variables can also be used to configure Scout. See our help docs at http://help.apm.scoutapp.com#environment-variables for more information.\ncommon: &defaults\n\n  # key: Your Organization key for Scout APM. Found on the settings screen.\n  # - Default: none\n  key: key\n\n  # log_level: Verboseness of logs.\n  # - Default: 'info'\n  # - Valid Options: debug, info, warn, error\n  # log_level: debug\n\n  name: name\n  # - Default: the application names comes from the Rails or Sinatra class name\n  # name:\n\n  # monitor: Enable Scout APM or not\n  # - Default: none\n  # - Valid Options: true, false\n  monitor: true\n\nproduction:\n  <<: *defaults\n\ndevelopment:\n  <<: *defaults\n  monitor: false\n\ntest:\n  <<: *defaults\n  monitor: false\n\nstaging:\n  <<: *defaults\n"
ELASTIC_SEARCH_YML =
"default: &default\n  host: host\n  port: 9200\n  prefix: prefix\n\ndevelopment: &development\n  <<: *default\n#  status: 'close' # open | close\n\ntest: &test\n  <<: *default\n#  status: 'close' # open | close\n\nproduction: &production\n  <<: *default\n  host: 127.0.0.1\n\n"
WECHAT_YML =
"\ndefaults: &default\n  appid: appid\n  appsecret: appsecret\n\ndevelopment:\n  <<: *default\n\ntest:\n  <<: *default\n\nproduction:\n  <<: *default\n\n"
CARRIERWAVE_YML =
"# encoding: UTF-8\n\ndefaults: &defaults\n  status: open # open | close\n\n  storage: aliyun\n\n  aliyun:\n    status: open # open | close\n    access_id: id\n    access_key: key\n    bucket: jk-sit\n    host: http://wtf.aliyuncs.com\n\n  qiniu:\n    status: open # open | close\n    access_key: access_key\n    secret_key: sk\n    bucket: bucket\n    bucket_domain: wtf.qnssl.com\n\ndevelopment: &development\n  <<: *defaults\n\ntest: &test\n  <<: *defaults\n\n  status: close # open | close\n\nproduction: &production\n  <<: *defaults\n\n  status: open # open | close\n\n"
DATABASE_YML =
"default: &default\n  adapter: sqlite3\n  pool: <%= ENV.fetch(\"RAILS_MAX_THREADS\") { 5 } %>\n  timeout: 5000\n  encoding: utf8\n\ndevelopment:\n  <<: *default\n  database: db/development.sqlite3\n  username: username\n  password: password\n  host: host\n  port: port\n\n# Warning: The database defined as \"test\" will be erased and\n# re-generated from your development database when you run \"rake\".\n# Do not set this db to the same as development or production.\ntest:\n  <<: *default\n  database: db/test.sqlite3\n\nproduction:\n  <<: *default\n  database: db/development.sqlite3\n  username: username\n  password: password\n  host: host\n  port: port\n"