#cofacts
2019-05-01
mrorz
09:49:33
2019-05-02
ShuHuai(Whycat)
10:59:59
網站憑證好像過期了,打開會錯誤
mrorz
11:28:27
!!!! 感謝回報
mrorz
11:28:37
我們的 cronjob 永遠會出包囧
mrorz
11:28:51
我覺得很痛苦
ronnywang
11:29:01
我在想 g0v-domain 那邊要不要自動做個 daily 檢查 XD
mrorz
11:29:20
g0v domain 可以加掛 cloudflare 讓他出 https 嗎 QAQ
ronnywang
11:29:44
可以啊,可是建議原始處還是要 https ,不然原始 server 到 cloudflare 之間還是有風險?
mrorz
11:29:48
我相信問題不在 monitoring 而是我能力不足
ronnywang
11:30:40
這種意外難免,我也常發生我的 cron 死掉 XD
ronnywang
11:30:54
說到這我還是順便檢查一下我手上的 https 好了
mrorz
11:32:16
其實好像不是 cron 死掉
ronnywang
11:32:47
另外下次 renew letsencrypt ssl 時,可以加入信箱資訊,letsencrypt 會在到期一週前左右如果還沒 renew 的話會 email 提醒
mrorz
11:32:48
```
2019-05-01 00:00:14,531:DEBUG:requests.packages.urllib3.connectionpool:https://acme-v01.api.letsencrypt.org:443 "POST /acme/new-authz HTTP/1.1" 500 111
2019-05-01 00:00:14,533:DEBUG:acme.client:Received response:
HTTP 500
Server: nginx
Content-Type: application/problem+json
Content-Length: 111
Replay-Nonce: <Redacted>
Expires: Wed, 01 May 2019 00:00:14 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Wed, 01 May 2019 00:00:14 GMT
Connection: close
{
"type": "urn:acme:error:serverInternal",
"detail": "Failed to get registration by key",
"status": 500
}
```
2019-05-01 00:00:14,531:DEBUG:requests.packages.urllib3.connectionpool:https://acme-v01.api.letsencrypt.org:443 "POST /acme/new-authz HTTP/1.1" 500 111
2019-05-01 00:00:14,533:DEBUG:acme.client:Received response:
HTTP 500
Server: nginx
Content-Type: application/problem+json
Content-Length: 111
Replay-Nonce: <Redacted>
Expires: Wed, 01 May 2019 00:00:14 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Wed, 01 May 2019 00:00:14 GMT
Connection: close
{
"type": "urn:acme:error:serverInternal",
"detail": "Failed to get registration by key",
"status": 500
}
```
mrorz
11:33:07
letsencrypt 是不是常常亂 500
mrorz
11:33:27
我看了一下 cofacts-api.g0v.tw 的 SSL 有成功更新到 2019-07
mrorz
11:33:30
但 cofacts.g0v.tw 的就 500
ronnywang
11:34:16
cofacts.g0v.tw 有做 load balancer 嗎?後面是一台還是多台主機?
mrorz
11:34:26
一台而已
ronnywang
11:35:04
多台主機會有相關認證東西在 A 主機,結果 letsencrypt 跑到 B 主機去問結果問不到東西失敗
mrorz
11:36:18
同一個指令,cron 會失敗,但我現在手動跑就好了
```
docker run --rm -v /var/www/cofacts:/var/www/cofacts -v /etc/letsencrypt:/etc/letsencrypt -v /etc/ssl/certs:/etc/ssl/certs -v /var/log:/var/log certbot/certbot certonly --webroot -w /var/www/cofacts -d cofacts.g0v.tw -m <強者email> --agree-tos --non-interactive >> /var/log/cron.log 2>&1
```
```
docker run --rm -v /var/www/cofacts:/var/www/cofacts -v /etc/letsencrypt:/etc/letsencrypt -v /etc/ssl/certs:/etc/ssl/certs -v /var/log:/var/log certbot/certbot certonly --webroot -w /var/www/cofacts -d cofacts.g0v.tw -m <強者email> --agree-tos --non-interactive >> /var/log/cron.log 2>&1
```
mrorz
11:38:25
2019/3/1 的時候是 cofacts-api 的 script 會 500 Failed to get registration by key
mrorz
11:38:32
昨天是 cofacts 會 500
mrorz
11:38:36
看來是真的不穩定⋯⋯
ronnywang
11:40:46
你是一個月跑一次嗎?
ronnywang
11:40:52
要不要改成每天都 renew 一次
ronnywang
11:41:55
除非衰到最後 30 天每次 renew 都骰到 500 ,不然只要有一天 renew 成功就沒事了
mrorz
11:42:28
我看看 rate limit
https://letsencrypt.org/docs/rate-limits/
https://letsencrypt.org/docs/rate-limits/
letsencrypt.org
Last updated: April 15, 2019 | See all Documentation Let’s Encrypt provides rate limits to ensure fair usage by as many people as possible. We believe these rate limits are high enough to work for most people by default. We’ve also designed them so renewing a certificate almost never hits a rate limit, and so that large organizations can gradually increase the number of certificates they can issue without requiring intervention from Let’s Encrypt.
ronnywang
11:43:08
我現在 middle2 有 40 個 domain 都是每天都 renew 一次
mrorz
11:43:31
好像每天是 ok der
mrorz
11:44:14
我改成 dow 1 好了
每週一次
每週一次
mrorz
11:46:13
改好了
感謝感謝
感謝感謝
mrorz
11:48:33
這樣最後一月應該至少會 try 3 次
ronnywang
11:48:34
g0v domain 那邊我是滿想在 config 增加一個 “check_ssl”: true 的值,然後有隻 cron 每天檢查 ssl 是不是合法以及會不會七天內要到期了
mrorz
11:48:45
好呀 XD
ronnywang
11:49:35
這個需求感覺可以寫出來許願給有意願的新參者做 XD
mrorz
11:52:13
@darkbtf
```
docker run --rm -v /var/www/cofacts:/var/www/cofacts -v /etc/letsencrypt:/etc/letsencrypt -v /etc/ssl/certs:/etc/ssl/certs -v /var/log:/var/log certbot/certbot certonly --webroot -w /var/www/cofacts -d cofacts.g0v.tw -m <強者email> --agree-tos --non-interactive >> /var/log/cron.log 2>&1
```
那個 `-m` 目前是填你的 email。如果改填 `cofacts@googlegroups.com` 的話會壞掉嗎
```
docker run --rm -v /var/www/cofacts:/var/www/cofacts -v /etc/letsencrypt:/etc/letsencrypt -v /etc/ssl/certs:/etc/ssl/certs -v /var/log:/var/log certbot/certbot certonly --webroot -w /var/www/cofacts -d cofacts.g0v.tw -m <強者email> --agree-tos --non-interactive >> /var/log/cron.log 2>&1
```
那個 `-m` 目前是填你的 email。如果改填 `cofacts@googlegroups.com` 的話會壞掉嗎
BenjiDude
21:37:43
@penguinjoints has joined the channel
2019-05-03
mrorz
18:26:52
@lucien 要 try 這個ㄇ
https://eng.uber.com/introducing-base-web/
https://eng.uber.com/introducing-base-web/
Uber Engineering Blog
Base Web is a React component library which implements the Base design language to act as a device-agnostic foundation for easily creating web applications.![]()
2019-05-04
Danny
00:12:55
有嘗試過這個 container 嗎?
jrcs/letsencrypt-nginx-proxy-companion
會自動產生 & 更新憑證
https://github.com/JrCs/docker-letsencrypt-nginx-proxy-companion
jrcs/letsencrypt-nginx-proxy-companion
會自動產生 & 更新憑證
https://github.com/JrCs/docker-letsencrypt-nginx-proxy-companion
mrorz
2019-05-08 00:46:18
我 devops 很爛,通常東西一設好就會不想動⋯⋯ (被揍
Danny
2019-05-08 16:27:07
嗯… 如果有權限或是約個適合的場合,我可以幫忙解決這個問題 XD
hcchien
09:22:21
@hcchien407 has left the channel
2019-05-08
mrorz
00:45:23
mrorz
00:46:18
我 devops 很爛,通常東西一設好就會不想動⋯⋯ (被揍
Danny
16:27:07
嗯… 如果有權限或是約個適合的場合,我可以幫忙解決這個問題 XD
ggm
20:26:47
```
Channel ID : 1563196602
Channel name : Cofacts 真的假的 | 轉傳查證
Reason for error : request_timeout
Detail for error : Request timeout
Error count : 2
Time detected : 2019/05/06 21:04:21 - 2019/05/06 21:04:24
URL : Errors of the Channel
```
Channel ID : 1563196602
Channel name : Cofacts 真的假的 | 轉傳查證
Reason for error : request_timeout
Detail for error : Request timeout
Error count : 2
Time detected : 2019/05/06 21:04:21 - 2019/05/06 21:04:24
URL : Errors of the Channel
```
ggm
20:27:07
`BusinessConnect: Error detected - Cofacts 真的假的 | 轉傳查證`
2019-05-10
jasonch
14:09:10
@jasonchung626 has joined the channel
joseph2068
17:01:29
@joseph2068 has joined the channel
2019-05-12
bangyu
01:08:58
@bangyuwen has joined the channel
sunitshrestha
11:19:26
@sunitshrestha has joined the channel
2019-05-15
mrorz
01:22:57
2019-05-21
chihao
18:14:12
我想用 Cofacts 開放資料來做一個即時更新的資料視覺化 widget(最新謠言什麼的)有人(沒有人?)能建議我怎麼開始嗎?
uufrienduu
2019-05-22 21:13:41
不過有些舊謠言可能也會被重複傳,如果真的要做成最新謠言,應該是要偵測新內容的方向走
Slackbot
18:14:12
先承認你就是沒有人
uufrienduu
2019-05-22 21:13:41
不過有些舊謠言可能也會被重複傳,如果真的要做成最新謠言,應該是要偵測新內容的方向走
mrorz
18:39:32
想要放哪些資料呢
chatbot search 嗎
還是最新的送出文章列表呢
chatbot search 嗎
還是最新的送出文章列表呢
mrorz
18:39:45
不同東西在不同 data source 裡呢
mrorz
18:40:02
https://cofacts.g0v.tw/analytics 可能不夠即時 XD
Google Data Studio
Google Data Studio turns your data into informative dashboards and reports that are easy to read, easy to share, and fully customizable.![]()
chihao
20:04:26
最新送出文章好像蠻酷的,就是說使用者轉傳給 bot 的東西對吧?
mrorz
2019-05-22 10:50:07
嗯,是使用者在 chatbot 送出到資料庫的訊息
mrorz
2019-05-22 10:51:05
也就是全新 zero-day message (?)
chihao
2019-05-22 15:00:08
\0/ \0/ \0/
chihao
20:04:52
chatbot search 是什麼啊?
mrorz
2019-05-22 10:50:40
chatbot user 轉傳給 cofacts 的訊息,有比對到資料庫裡現有訊息的 search hit
mrorz
2019-05-22 10:51:51
看這個的話就可以看特定訊息的熱門度,cofacts analytics 的 “message search trend” 就可以拿來看趨勢
chihao
2019-05-22 14:59:56
哦哦哦那個 search,感謝說明 🙏
Hong Yi-Tse
20:35:55
@elsvent has joined the channel
2019-05-22
mrorz
10:50:07
嗯,是使用者在 chatbot 送出到資料庫的訊息
mrorz
10:50:40
chatbot user 轉傳給 cofacts 的訊息,有比對到資料庫裡現有訊息的 search hit
mrorz
10:51:05
也就是全新 zero-day message (?)
mrorz
10:51:51
看這個的話就可以看特定訊息的熱門度,cofacts analytics 的 “message search trend” 就可以拿來看趨勢
chihao
14:59:56
哦哦哦那個 search,感謝說明 🙏
chihao
15:00:08
\0/ \0/ \0/
chihao
15:10:08
@mrorz 這個是 cofacts 第一次提案嗎? https://www.youtube.com/watch?v=uFQuyCvm5ng&t=20s
mrorz
2019-05-22 15:29:10
對唷
mrorz
2019-05-22 15:29:23
比對頭髮長度,應該是第一次沒錯。
chihao
2019-05-22 15:29:50
頭髮變成計時器(那我的也可以)
mrorz
15:29:10
對唷
mrorz
15:29:23
比對頭髮長度,應該是第一次沒錯。
chihao
15:29:50
頭髮變成計時器(那我的也可以)
uufrienduu
21:13:41
Replied to a thread: 2019-05-21 18:14:12
不過有些舊謠言可能也會被重複傳,如果真的要做成最新謠言,應該是要偵測新內容的方向走
2019-05-23
LiHsuan
22:11:27
@sarah0050.tw has joined the channel
lucien
23:47:42
@ggm 我要給你什麼樣的格式呀
1
4- ❤️2
- 🐳1
- 💵1
bil
23:50:30
太可愛了❤️❤️❤️
2019-05-24
ggm
09:11:00
應該是都可以
ggm
09:11:11
向量檔?
ggm
09:14:17
@lucien 請看這裡 https://stickerhd.com/tw/zh/faqs/category/artwork
stickerhd.com
貼紙五張就能印,免收刀模費,最高品質:防水、抗UV、加厚、不捲曲、沒殘膠,速度超快七天內保證到貨! 超過千人印製的最佳保證,亞洲地區皆可送達。
2019-05-25
chloe
09:49:34
@chloehungtaiwan has joined the channel
York
10:21:41
@tcssh611503 has joined the channel
redbean
10:41:49
@chialing has joined the channel
mrorz
11:15:25
@ggm @darkbtf 我剛才把新機器 nginx 與裡面的服務弄好囉
```
www.cofacts.org:80 --> localhost:3000
api.cofacts.org:80 --> localhost:5000
```
```
www.cofacts.org:80 --> localhost:3000
api.cofacts.org:80 --> localhost:5000
```
mrorz
11:16:11
https 我先 comment 掉,請到 `~/rumors-deploy/volumes/nginx/sites-enabled/rumors-{site|api}` 改一改
zoe
12:28:06
@zoetwca has joined the channel
Abby
12:28:12
@abbychen17 has joined the channel
Lou
12:32:53
@lou.biplly has joined the channel
nonumpa
12:44:51
@ggm
Issue channel access token
https://developers.line.biz/en/reference/messaging-api/#issue-channel-access-token
Issue channel access token
https://developers.line.biz/en/reference/messaging-api/#issue-channel-access-token
ggm
12:57:05
我後來有找到可是我有點搞混
ggm
12:57:54
developers.line.biz
Do you have any questions about the LINE platform? You've come to the right place!![]()
ggm
12:58:21
因為他這邊又這樣說
You do not need to use short-lived channel access tokens that are issued using the /v2/oauth/accessToken endpoint. Instead you can use a long-lived channel access token that is issued from the “Channel settings” page of the console.
You do not need to use short-lived channel access tokens that are issued using the /v2/oauth/accessToken endpoint. Instead you can use a long-lived channel access token that is issued from the “Channel settings” page of the console.
nonumpa
2019-05-25 13:17:02
不過之前不是說 business account 沒有 long-lived token? FAQ怎麼又這樣寫...
ggm
13:03:06
該怎麼說勒,就是他原本應該是設計透過 refresh_token 來取得新 channel access token 但好像找不到這個的 API
- 🤔1
nonumpa
2019-05-25 13:15:20
`access_token` Short-lived channel access token. Valid for 30 days.
Note: Channel access tokens cannot be refreshed.
Note: Channel access tokens cannot be refreshed.
ggm
13:03:29
不過是可以每次都直接取得新的 channel access token 啦 XD
nonumpa
13:15:20
`access_token` Short-lived channel access token. Valid for 30 days.
Note: Channel access tokens cannot be refreshed.
Note: Channel access tokens cannot be refreshed.
nonumpa
13:17:02
不過之前不是說 business account 沒有 long-lived token? FAQ怎麼又這樣寫...
bil
14:07:08
mrorz
2019-05-25 14:28:03
@lucien: @lou.biplly 是今天大松來的 UI / UX designer,希望可以幫忙 LOGO 的部分~~
@lucien 今天發想LOGO的部分,再請大家給些回饋討論了
bil
14:07:28
嗨嗨
mrorz
16:39:35
@changhc84 如果使用者在 chatbot 轉傳一則訊息有 search hit 但選擇「這裡沒有我轉傳的訊息」,是不是不會詢問 source 呀
changhc84
17:29:06
我看了一下 code,確實忽略了
changhc84
17:29:33
choosingArticle:L69
Lou
17:39:25
Replied to a thread: 2019-05-25 14:07:08
@lucien 今天發想LOGO的部分,再請大家給些回饋討論了
- 💯5
- 🚀3
- 🐈4
- 🐳5
supaplextw
20:09:15
@supaplextw has joined the channel
chloe
21:36:26
@chloehungtaiwan has left the channel
W.H. Lin
23:46:44
@oliverishere has joined the channel
2019-05-28
chihao
08:30:59
在找資料的時候發現這份投影片,是印尼 MAFINDO 的 Harry Sufehmi 去年七月參加 Google 亞太信任媒體峰會分享 CekFakta 的投影片 😆 有提到法國的 Cross Check 和 cofacts 哦 https://docs.google.com/presentation/d/15Z7aV33l9_TFvKNM0wVzIsz57xPF_tMxMZuxkq9dQx8/edit#slide=id.g32f73e0809_0_99
1
mrorz
2019-05-28 22:14:19
Thanks for sharing, link added to https://beta.hackfoldr.org/cofacts/https%253A%252F%252Fhackmd.io%252Fs%252FHkhTS45ig
chris930921
08:39:53
@chris930921 has joined the channel
mrorz
22:14:19
Thanks for sharing, link added to https://beta.hackfoldr.org/cofacts/https%253A%252F%252Fhackmd.io%252Fs%252FHkhTS45ig
- 🙌1
2019-05-29
mrorz
01:53:23
週三晚上 8pm @ Workis 工作是
預計討論項目:
https://g0v.hackmd.io/8VmiyCx6TFOJWYqVLvjXTA
要來的歡迎 +1 ~
cc/ @lou.biplly
預計討論項目:
https://g0v.hackmd.io/8VmiyCx6TFOJWYqVLvjXTA
要來的歡迎 +1 ~
cc/ @lou.biplly
ronnywang
12:27:21
想問一下 cofacts 的各位,會不會想要有 somebody@cofacts.g0v.tw 的信箱可以放在名片中?
我在 #g0v-domain 放了一個討論,因為 jothon 這邊有在討論要讓 jothon 成員增加 @jothon.g0v.tw 的信箱放名片上,所以想說來一併詢問 cofacts 會不會也想要。順便討論一下 g0v.tw 網域規範中這部份的注意事項
我在 #g0v-domain 放了一個討論,因為 jothon 這邊有在討論要讓 jothon 成員增加 @jothon.g0v.tw 的信箱放名片上,所以想說來一併詢問 cofacts 會不會也想要。順便討論一下 g0v.tw 網域規範中這部份的注意事項
mrorz
12:28:28
感謝感謝
我們現在已經有 cofacts@googlegroups.com 了呢,名片上已經留這個了 XD
我們現在已經有 cofacts@googlegroups.com 了呢,名片上已經留這個了 XD
ronnywang
12:29:26
哈哈,可以先申請 cofacts@g0v.tw 喔 XD 目前 @g0v.tw 有開放 g0v 中有公開治理機制的社群可以申請群組轉信
Ping Sheng Kao
12:40:15
@pskao has joined the channel
2019-05-31
SweetCow
09:14:08
@ssweetcoww has joined the channel
ronnywang
14:10:04
mrorz
2019-05-31 14:33:01
因為報名時沒有台灣可以選。
這就是 OGP 的現實唷。
這就是 OGP 的現實唷。
ronnywang
2019-05-31 14:33:30
Q_Q
ronnywang
14:10:08
比鄰怎麼變日本了 XDDD
ronnywang
14:33:30
Q_Q
Lulu Keng
20:22:44
AIT 傳來的一個資訊傳播運用營,感覺滿酷的,聽說講師很厲害,6/10 前截止,供大家參考 https://www.ait.org.tw/zhtw/regional-techcamp-in-taipei-aug-2019-zh/
美國在台協會
美國在台協會訂於8月底於台北舉行一場為期兩天半的TechCamp –「資訊傳播科技暨應用培訓營」,期許透過現代傳播科技的運用來加強正確的媒體敘事與媒體識讀,同時訓練訊息傳遞者判別與探究訊息的正確性與真實度之能力。我們希望邀請對此一主題有興趣的大眾踴躍報名參加!![]()
bil
20:57:44
對對,我有放在cofacts facebook跟fanpage了,g0v後勤可以放嗎
AIT非常歡迎大家申請喔(例如@chihao)
除了媒體也非常歡迎開發者跟設計師,大家都來吧:)
AIT非常歡迎大家申請喔(例如@chihao)
除了媒體也非常歡迎開發者跟設計師,大家都來吧:)
chihao
2019-06-04 08:34:10
@bil 我有在想要不要報名那個 TechCamp,但說明聽起來是想幫助學員加強媒體識讀?我不確定我想不想單純去當學員 😆 或者我去能幫上什麼忙嗎?
目前知道的是AIT請了國外的講師,但比起聽演講可能會想更接近黑客松的形式(我聽到時也有點困惑)也可能會分組討論做東西。
我的理解是非常歡迎開發者和程式設計師等等專業領域的人,似乎不是幫助學員提升媒體素養,而是幫助學員去指導他人進行媒體識讀教育。
我的理解是非常歡迎開發者和程式設計師等等專業領域的人,似乎不是幫助學員提升媒體素養,而是幫助學員去指導他人進行媒體識讀教育。
chihao
2019-06-04 11:54:18
@bil 原來如此,比較像是討論會、動手做的黑客松?
是的是的,會是比較重視小組討論的形式喔(就我目前所知啦,不曉得會不會之後有變> <)