Browse Source

Update for AWS

master
Kevin Mok 4 weeks ago
parent
commit
34bc13b5fc
No known key found for this signature in database GPG Key ID: 183D80A8CFEB4378
  1. 11
      server-pages.csv
  2. 6
      server-status.js

11
server-pages.csv

@ -1,12 +1,5 @@
shortUrl,url,siteTitle,description,repo,repoUrl
cal.khkm.tk,https://cal.khkm.tk,"Baïkal server","CalDAV/CardDAV server.",sabre-io/Baikal,https://github.com/sabre-io/Baikal
ataraxy.tk,http://ataraxy.tk/,"Ataraxy | Call of Duty: Mobile Clan","Site for my Call of Duty: Mobile clan.",Kevin-Mok/codm.ataraxy.tk,https://git.kevin-mok.com/Kevin-Mok/codm.ataraxy.tk
git.kevin-mok.com,https://git.kevin-mok.com,"Kevin Mok's Gitea","Git server.",go-gitea/gitea,https://github.com/go-gitea/gitea
img.khkm.tk,https://img.khkm.tk,"Kevin's Images","Image hosting.",LycheeOrg/Lychee,https://github.com/LycheeOrg/Lychee/
kevin-mok.com,https://kevin-mok.com," Kevin Mok ","Personal site (this site).",Kevin-Mok/my-site,https://git.kevin-mok.com/Kevin-Mok/my-site
matrix.ataraxy.tk,https://matrix.ataraxy.tk/.well-known/matrix/server,,"Matrix chat server. Only accessible through Riot client.",matrix-org/synapse,https://github.com/matrix-org/synapse
mnpd.gq,https://mnpd.gq/test,"test","Minimalistic live notepad.",pereorga/minimalist-web-notepad,https://github.com/pereorga/minimalist-web-notepad
pste.gq,https://pste.gq,"hastebin","Pastebin.",seejohnrun/haste-server,https://github.com/seejohnrun/haste-server
smol.gq,https://smol.gq,"Kevin's URL Shortener","URL shortener.",132ikl/liteshort,https://github.com/132ikl/liteshort
taskd.khkm.tk,taskd.khkm.tk:53589,,"Taskwarrior (task manager) server. No web interface.",GothenburgBitFactory/taskserver,https://github.com/GothenburgBitFactory/taskserver
wthr.ml,https://wthr.ml/,," <code>curl</code>-friendly, local weather info. <a href="https://regexr.com/4mgna" target="_blank"><code>\/m?t?v?</code></a> are all valid endings.",Kevin-Mok/weather,https://git.kevin-mok.com/Kevin-Mok/weather
short.khkm.dev,https://short.khkm.dev,"liteshort","URL shortener.",132ikl/liteshort,https://github.com/132ikl/liteshort
paste.khkm.dev,https://paste.khkm.dev,"Paste a password, confidential message, or private data.","Pastebin.",HemmeligOrg/Hemmelig.app,https://github.com/HemmeligOrg/Hemmelig.app

6
server-status.js

@ -9,6 +9,8 @@ const csvFilePath = 'server-pages.csv'
// consider webpage to be up if stored title matches fetched title
const checkIfTitleMatches = obj => {
// console.log(obj['url'])
// console.log(urlMetadata(obj['url']))
return urlMetadata(obj['url']).then(metadata => { // success handler
// log(metadata.title, obj['siteTitle'])
if (metadata.title == obj['siteTitle']) {
@ -19,9 +21,11 @@ const checkIfTitleMatches = obj => {
// return true
},
error => { // failure handler
// console.log(error)
console.log(error)
obj['status'] = 'down'
// return false
}).catch(function(err) {
console.log(err);
})
}

Loading…
Cancel
Save