socialforge/config/wechat.yml

33 lines
960 B
YAML
Raw Normal View History

2016-01-15 17:01:30 +08:00
default: &default
corpid: "corpid"
corpsecret: "corpsecret"
agentid: 1
# Or if using public account, only need above two line
# appid: "my_appid"
# secret: "my_secret"
token: "my_token"
access_token: "1234567"
encrypt_mode: true # if true must fill encoding_aes_key
encoding_aes_key: "TJP8IMYwdcW1EkBIKIcQ193bCe7uB0RVqZDC2eAmkjz"
jsapi_ticket: "C:/Users/[user_name]/wechat_jsapi_ticket"
production:
corpid: <%= ENV['WECHAT_CORPID'] %>
corpsecret: <%= ENV['WECHAT_CORPSECRET'] %>
agentid: <%= ENV['WECHAT_AGENTID'] %>
# Or if using public account, only need above two line
# appid:
# secret:
token: <%= ENV['WECHAT_TOKEN'] %>
timeout: 30,
skip_verify_ssl: true
access_token: <%= ENV['WECHAT_ACCESS_TOKEN'] %>
encrypt_mode: false # if true must fill encoding_aes_key
encoding_aes_key: <%= ENV['WECHAT_ENCODING_AES_KEY'] %>
jsapi_ticket:
development:
<<: *default
test:
<<: *default