Girish Ramakrishnan
c4f4f3e914
logs: use %o to format error
...
otherwise, they are printed as multi-line and this messes up tail+date formatting
2023-04-16 10:49:59 +02:00
Girish Ramakrishnan
ff3029f1fb
sysinfo: cache the ipv4/ipv6 for 5 mins
...
reduces burden on our api.cloudron.io servers
initially, i just implemented a simple value cache but the email UI, queries all the
domains in parallel. without the request caching, the cache is hardly ever used.
2023-03-26 19:59:48 +02:00
Girish Ramakrishnan
d326d05ad6
sysinfo: add noop provider
2022-03-01 12:05:01 -08:00
Girish Ramakrishnan
661799cd54
typo
2022-02-15 13:25:14 -08:00
Girish Ramakrishnan
c6da8c8167
make ipv4 and ipv6 settings separate
2022-02-15 12:36:05 -08:00
Girish Ramakrishnan
3b3b510343
Check if we get IPv6 when enabling
2022-02-04 11:15:53 -08:00
Girish Ramakrishnan
f4a21bdeb4
sysinfo: fixed provider now takes ipv6 optionally
...
part of #264
2022-01-06 21:39:28 -08:00
Girish Ramakrishnan
0654d549db
sysinfo: return the ipv4 and ipv6 address
2022-01-06 16:21:30 -08:00
Girish Ramakrishnan
2bc5c3cb6e
Fixes to getServerIPv6()
2022-01-06 12:22:16 -08:00
Girish Ramakrishnan
bbf1a5af3d
sysinfo: add interface to get IPv6 address
2022-01-05 18:08:15 -08:00
Girish Ramakrishnan
531a6fe0dc
Use ipv4.api.cloudron.io endpoint for IPv4 detection
2022-01-04 22:14:53 -08:00
Girish Ramakrishnan
013f5d359d
pass debug to promise-retry
2021-12-07 11:18:26 -08:00
Girish Ramakrishnan
e2cb0daec1
sysinfo: add missing return
2021-09-03 09:08:20 -07:00
Girish Ramakrishnan
51d067cbe3
sysinfo: async'ify
...
in the process, provision, dyndns, mail, dns also got further asyncified
2021-09-02 16:19:46 -07:00
Girish Ramakrishnan
1b307632ab
Use debug instead of console.* everywhere
...
No need to patch up console.* anymore
also removes supererror
2020-08-02 12:04:55 -07:00
Girish Ramakrishnan
3623831390
Typo
2019-12-04 10:23:16 -08:00
Johannes Zellner
3354cb8ebe
Add network interface check
2019-11-05 15:03:36 +01:00
Girish Ramakrishnan
a829ab44f1
sysinfo: remove the ec2 and scaleway providers
...
we can just use the generic one for those as well
2019-10-30 09:13:01 -07:00
Girish Ramakrishnan
82a7befb92
Fix crashes
2019-10-29 20:33:32 -07:00
Girish Ramakrishnan
8232d471a3
Add route to set/get sysinfo
2019-10-29 20:08:45 -07:00
Girish Ramakrishnan
813454ca82
sysinfo: Add static and network intf providers
2019-10-29 16:12:58 -07:00
Girish Ramakrishnan
7d987d7c79
make sysinfo provider a setting
2019-10-29 15:56:50 -07:00
Girish Ramakrishnan
ad9097d212
Remove various uses of INTERNAL_ERROR
...
INTERNAL_ERROR now means there really was some internal error
2019-10-24 18:32:36 -07:00
Girish Ramakrishnan
332f2e7c10
Move SysInfoError to BoxError
2019-10-22 14:09:44 -07:00
Girish Ramakrishnan
9b74bb73aa
config.js is dead, long live config.js
...
we use settings now
2019-07-26 14:51:51 -07:00
Girish Ramakrishnan
a2d8ef7c63
remove more caas related code
2019-05-08 15:36:34 -07:00
Girish Ramakrishnan
db6404a7c6
SysInfo.EXTERNAL_ERROR is undefined
2019-01-24 14:58:28 -08:00
Johannes Zellner
0cc3f08ae7
Add missing requires for scaleway sysinfo backend
2019-01-21 14:26:56 +01:00
Girish Ramakrishnan
4b642a407f
remove caas dep from tests
2018-01-18 13:50:57 -08:00
Girish Ramakrishnan
4d3c6f7caa
better error message
2017-05-09 11:24:47 -07:00
Girish Ramakrishnan
32e2377828
sysinfo: getIp -> getPublicIp
2017-02-23 22:03:48 -08:00
Johannes
756b36d227
Ask the api server for public ip instead of local interface
...
Part of #106 and #86
Might fix #115 pending testing
2016-11-29 16:20:56 +01:00
Girish Ramakrishnan
2be17eeb52
Add semi-tested scaleway backend
2016-10-11 19:47:27 -07:00
Girish Ramakrishnan
f2948483df
rename eth0 to generic
...
sysinfo caters to more than IP...
2016-10-08 16:40:58 -07:00
Girish Ramakrishnan
72f287c4e5
Fix typos
2016-10-07 14:19:44 -07:00
Girish Ramakrishnan
e456c4b39c
Add eth0 sysinfo backend
2016-10-07 14:09:20 -07:00
Girish Ramakrishnan
0ae1238233
Add sysinfo interface definition
2016-10-07 14:09:20 -07:00
Girish Ramakrishnan
28c8aa3222
Do not use Floating IP
...
We do not use a floating IP for 3 reasons:
1. The PTR record is not set to floating IP.
2. The outbound interface is not changeable to floating IP.
3. there are reports that port 25 on floating IP is blocked.
2016-09-15 22:14:21 -07:00
Girish Ramakrishnan
c1bb264065
Set a timeout for superagent
...
The default is 'no timeout' and it will wait for the response forever.
https://github.com/visionmedia/superagent/issues/17#issuecomment-207742985
2016-09-12 13:06:18 -07:00
Girish Ramakrishnan
375082c1ae
make tests pass
2016-09-06 13:33:12 -07:00
Johannes Zellner
1b54f5f797
Support both floating and non fixed ips
2016-09-06 15:43:43 +02:00
Johannes Zellner
9fcaebcf98
Return digitalocean floating ip for caas cloudrons in sysinfo
2016-09-06 15:43:43 +02:00
Johannes Zellner
3886006343
Implement ec2 sysinfo backend
2016-01-05 14:33:33 +01:00
Johannes Zellner
0319445888
Make sysinfo based on provider
2016-01-05 12:10:25 +01:00