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
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
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
8232d471a3
Add route to set/get sysinfo
2019-10-29 20:08:45 -07:00
Girish Ramakrishnan
7d987d7c79
make sysinfo provider a setting
2019-10-29 15:56:50 -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
db6404a7c6
SysInfo.EXTERNAL_ERROR is undefined
2019-01-24 14:58:28 -08:00
Girish Ramakrishnan
4b642a407f
remove caas dep from tests
2018-01-18 13:50:57 -08: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
f2948483df
rename eth0 to generic
...
sysinfo caters to more than IP...
2016-10-08 16:40:58 -07:00