socialforge/config/wechat.yml

33 lines
992 B
YAML
Raw Normal View History

2016-01-15 17:01:30 +08:00
default: &default
2016-01-15 23:15:06 +08:00
# corpid: "corpid"
# corpsecret: "corpsecret"
# agentid: 1
2016-01-15 17:01:30 +08:00
# Or if using public account, only need above two line
2016-01-15 23:15:06 +08:00
appid: "wxc09454f171153c2d"
secret: "dff5b606e34dcafe24163ec82c2715f8"
token: "123456"
2016-01-15 17:01:30 +08:00
access_token: "1234567"
encrypt_mode: true # if true must fill encoding_aes_key
2016-01-15 23:15:06 +08:00
encoding_aes_key: "QyocNOkRmrT5HzBpCG54EVPUQjk86nJapXNVDQm6Yy6"
2016-01-15 17:01:30 +08:00
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