VCAP SERVICES

Jmnote (토론 | 기여)님의 2016년 7월 7일 (목) 16:19 판 (→‎개요)

1 개요

VCAP_SERVICES 환경변수
  • Cloud Foundry 환경변수 중 하나
  • 앱에 연결(bind)된 서비스 정보를 담고 있음

2 구조

속성 설명
name 사용자가 지정한 서비스 인스턴스 이름
label 서비스 제공 이름
tags 서비스 인스턴스 인식을 위해 사용되는 태그들
plan 서비스 플랜
credentials JSON 객체

A JSON object containing the service-specific credentials needed to access the service instance.

3 예시

VCAP_SERVICES=
{
  "elephantsql": [
    {
      "name": "elephantsql-c6c60",
      "label": "elephantsql",
      "tags": [
        "postgres",
        "postgresql",
        "relational"
      ],
      "plan": "turtle",
      "credentials": {
        "uri": "postgres://exampleuser:examplepass@babar.elephantsql.com:5432/exampleuser"
      }
    }
  ],
  "sendgrid": [
    {
      "name": "mysendgrid",
      "label": "sendgrid",
      "tags": [
        "smtp"
      ],
      "plan": "free",
      "credentials": {
        "hostname": "smtp.sendgrid.net",
        "username": "QvsXMbJ3rK",
        "password": "HCHMOYluTv"
      }
    }
  ]
}

4 같이 보기

5 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}