Configure botka for web push notifications
This commit is contained in:
parent
a6d83f5720
commit
0e974182de
@ -1,15 +1,38 @@
|
|||||||
{
|
{
|
||||||
"id": "botka_freenode",
|
"id": "botka_freenode",
|
||||||
"rs_logger_token": {
|
"rs_logger_token": {
|
||||||
"encrypted_data": "iRv44+Er+WEGESgyUqboHt3GEnZhfiy4wX+fSKw3aQw7fvOsojADBwFCW6eu\nWoBB9MimJi6PnmMOJJ6A+FyTYw==\n",
|
"encrypted_data": "X/7BinesOs5sciifP2myTHzRyYA7q7GxHR92wlHKF1EnVD38GrfMxWFIUVsH\nYUjXr+mm\n",
|
||||||
"iv": "VVLgCPz33YYqwNdjrF9WyQ==\n",
|
"iv": "XcqCyyfIsqNJiVfX\n",
|
||||||
"version": 1,
|
"auth_tag": "vPjh3was2w7pbDRYerGQFw==\n",
|
||||||
"cipher": "aes-256-cbc"
|
"version": 3,
|
||||||
|
"cipher": "aes-256-gcm"
|
||||||
},
|
},
|
||||||
"nickserv_password": {
|
"nickserv_password": {
|
||||||
"encrypted_data": "OIjbuQTfjL0ksRM/3JLHw7aY/l61Z1NuQZr3sbG7kfMNJrdwaTsvDHXqf4Ja\nUmD3\n",
|
"encrypted_data": "bOr4bTbmGIL6YHAycVQCHX3fDsEgvJPtSKYPDyzbMIqn\n",
|
||||||
"iv": "jV1/0L2mpONfNWFPmec+8w==\n",
|
"iv": "hEmlqJ91R4Mxeab/\n",
|
||||||
"version": 1,
|
"auth_tag": "o8qf0GBVR23IrPYOANywFw==\n",
|
||||||
"cipher": "aes-256-cbc"
|
"version": 3,
|
||||||
|
"cipher": "aes-256-gcm"
|
||||||
|
},
|
||||||
|
"gcm_api_key": {
|
||||||
|
"encrypted_data": "flJe/qcddW54emG29ReJf5BqYyIEmpOK+dKabuZAx5t678Dt1CqLr/UmkeB+\nOcXwezOgr9qj3XHIVQ==\n",
|
||||||
|
"iv": "fD46RYO1hpk9zb9q\n",
|
||||||
|
"auth_tag": "ucPDMdVey1QeZmOmYEFiPw==\n",
|
||||||
|
"version": 3,
|
||||||
|
"cipher": "aes-256-gcm"
|
||||||
|
},
|
||||||
|
"vapid_public_key": {
|
||||||
|
"encrypted_data": "RkyN3Sx4Hme2cBJKMSvXxt6b1rW7liqAG/fLSLMi4aeR9EAMMRf6gEdOLJms\n1WSVx4RU2z7oRTvkD0zwmKwOtNNeyRaJ6zUh/eYnPviBdKMrxvLOXPaQam7O\nCLF9QMHpngCumMPQuaWpHg==\n",
|
||||||
|
"iv": "WPqkc48gE/uJjLB9\n",
|
||||||
|
"auth_tag": "UxAnYr9jdCy2V/1gnDC/Og==\n",
|
||||||
|
"version": 3,
|
||||||
|
"cipher": "aes-256-gcm"
|
||||||
|
},
|
||||||
|
"vapid_private_key": {
|
||||||
|
"encrypted_data": "2O+ESjSSsw3Z4RgTx4AIA3QGYc+zpRY2j0DyEqF1Rdak3prc7bMKmTHy7MwP\nJXGS08Mye5Pnt6sk45TfhoE=\n",
|
||||||
|
"iv": "8+PRuHXa73tLd3wf\n",
|
||||||
|
"auth_tag": "ofPSsKrP7Lgt1qiPcZ8isQ==\n",
|
||||||
|
"version": 3,
|
||||||
|
"cipher": "aes-256-gcm"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -151,6 +151,7 @@ application botka_freenode_path do
|
|||||||
content [
|
content [
|
||||||
"hubot-help",
|
"hubot-help",
|
||||||
"hubot-remotestorage-logger",
|
"hubot-remotestorage-logger",
|
||||||
|
"hubot-web-push-notifications",
|
||||||
].to_json
|
].to_json
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -173,22 +174,28 @@ application botka_freenode_path do
|
|||||||
group: "hubot",
|
group: "hubot",
|
||||||
app_dir: botka_freenode_path,
|
app_dir: botka_freenode_path,
|
||||||
entry: "#{botka_freenode_path}/bin/hubot -a irc",
|
entry: "#{botka_freenode_path}/bin/hubot -a irc",
|
||||||
environment: { "HUBOT_IRC_SERVER" => "irc.freenode.net",
|
environment: {
|
||||||
"HUBOT_IRC_ROOMS" => "#5apps,#kosmos,#kosmos-dev,#kosmos-random,#remotestorage,#hackerbeach,#unhosted,#sockethub,#opensourcedesign,#openknot,#emberjs,#mastodon,#indieweb,#lnd",
|
"HUBOT_IRC_SERVER" => "irc.freenode.net",
|
||||||
"HUBOT_IRC_NICK" => "botka",
|
"HUBOT_IRC_ROOMS" => "#5apps,#kosmos,#kosmos-dev,#kosmos-random,#remotestorage,#hackerbeach,#unhosted,#sockethub,#opensourcedesign,#openknot,#emberjs,#mastodon,#indieweb,#lnd",
|
||||||
"HUBOT_IRC_NICKSERV_USERNAME" => "botka",
|
"HUBOT_IRC_NICK" => "botka",
|
||||||
"HUBOT_IRC_NICKSERV_PASSWORD" => botka_freenode_data_bag_item['nickserv_password'],
|
"HUBOT_IRC_NICKSERV_USERNAME" => "botka",
|
||||||
"HUBOT_IRC_UNFLOOD" => "100",
|
"HUBOT_IRC_NICKSERV_PASSWORD" => botka_freenode_data_bag_item['nickserv_password'],
|
||||||
"HUBOT_RSS_PRINTSUMMARY" => "false",
|
"HUBOT_IRC_UNFLOOD" => "100",
|
||||||
"HUBOT_RSS_PRINTERROR" => "false",
|
"HUBOT_RSS_PRINTSUMMARY" => "false",
|
||||||
"HUBOT_RSS_IRCCOLORS" => "true",
|
"HUBOT_RSS_PRINTERROR" => "false",
|
||||||
# "HUBOT_LOG_LEVEL" => "error",
|
"HUBOT_RSS_IRCCOLORS" => "true",
|
||||||
"EXPRESS_PORT" => "8082",
|
# "HUBOT_LOG_LEVEL" => "error",
|
||||||
"HUBOT_AUTH_ADMIN" => "bkero,derbumi,galfert,gregkare,jaaan,slvrbckt,raucao",
|
"EXPRESS_PORT" => "8082",
|
||||||
"RS_LOGGER_USER" => "kosmos@5apps.com",
|
"HUBOT_AUTH_ADMIN" => "bkero,derbumi,galfert,gregkare,jaaan,slvrbckt,raucao",
|
||||||
"RS_LOGGER_TOKEN" => botka_freenode_data_bag_item['rs_logger_token'],
|
"RS_LOGGER_USER" => "kosmos@5apps.com",
|
||||||
"RS_LOGGER_SERVER_NAME" => "freenode",
|
"RS_LOGGER_TOKEN" => botka_freenode_data_bag_item['rs_logger_token'],
|
||||||
"RS_LOGGER_PUBLIC" => "true" }
|
"RS_LOGGER_SERVER_NAME" => "freenode",
|
||||||
|
"RS_LOGGER_PUBLIC" => "true",
|
||||||
|
"GCM_API_KEY" => botka_freenode_data_bag_item['gcm_api_key'],
|
||||||
|
"VAPID_SUBJECT" => "https://kosmos.org",
|
||||||
|
"VAPID_PUBLIC_KEY" => botka_freenode_data_bag_item['vapid_public_key'],
|
||||||
|
"VAPID_PRIVATE_KEY" => botka_freenode_data_bag_item['vapid_private_key']
|
||||||
|
}
|
||||||
)
|
)
|
||||||
notifies :run, "execute[systemctl daemon-reload]", :delayed
|
notifies :run, "execute[systemctl daemon-reload]", :delayed
|
||||||
notifies :restart, "service[botka_freenode_nodejs]", :delayed
|
notifies :restart, "service[botka_freenode_nodejs]", :delayed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user