Girish Ramakrishnan
d2f4b68c9f
Make certificate renewal a task
2018-12-10 20:48:10 -08:00
Girish Ramakrishnan
cfb68a0511
setAdmin -> setDashboardDomain
2018-12-08 18:19:49 -08:00
Girish Ramakrishnan
515ee891d3
refactor code to allow admin domain to be set
2018-12-07 16:15:21 -08:00
Johannes Zellner
cb6699eeed
Add api to check if the server needs a reboot
2018-11-26 08:19:24 +01:00
Girish Ramakrishnan
802011bb7e
Fix args to shell.sudo
2018-11-25 14:57:51 -08:00
Girish Ramakrishnan
e04b7b55b0
Remove upgrade flag
...
This is not used since ages since we changed our update methodology
2018-11-20 10:29:54 -08:00
Girish Ramakrishnan
305a3c94d0
Rework the progress API to use the task progress
2018-11-19 21:06:44 -08:00
Johannes Zellner
de44c63557
box now also logs to a a file instead of journald
2018-11-16 13:05:11 +01:00
Girish Ramakrishnan
1766c3f6d6
lint
2018-11-11 10:12:51 -08:00
Girish Ramakrishnan
aae259479f
move configure webadmin and status out of setup logic
2018-11-11 09:56:01 -08:00
Girish Ramakrishnan
b640a053e3
Always generate webadmin config on startup
2018-11-11 08:19:24 -08:00
Girish Ramakrishnan
6ec36c9605
Do not crash if platform.start fails
...
With this change, the box code always starts up even if nginx fails,
docker fails etc.
2018-11-10 18:34:37 -08:00
Girish Ramakrishnan
bd2b03876b
Add users.isActivated
...
it's easier to see where we do activation checks
2018-11-10 18:09:00 -08:00
Girish Ramakrishnan
0c5cb9c98f
Remove settings.initialize/uninitialize
...
this simplifies the startup sequence
2018-11-10 14:55:23 -08:00
Girish Ramakrishnan
42c1f8bb04
start most cron jobs only after activation
...
Importing the db might take some time. If a cron runs in the middle,
it crashes.
TypeError: Cannot read property 'domain' of undefined
at Object.fqdn (/home/yellowtent/box/src/domains.js:126:111)
at /home/yellowtent/box/src/apps.js:460:36
at /home/yellowtent/box/node_modules/async/dist/async.js:3110:16
at replenish (/home/yellowtent/box/node_modules/async/dist/async.js:1011:17)
at /home/yellowtent/box/node_modules/async/dist/async.js:1016:9
at eachLimit$1 (/home/yellowtent/box/node_modules/async/dist/async.js:3196:24)
at Object.<anonymous> (/home/yellowtent/box/node_modules/async/dist/async.js:1046:16)
at /home/yellowtent/box/src/apps.js:458:19
at /home/yellowtent/box/src/appdb.js:232:13
at Query.args.(anonymous function) [as _callback] (/home/yellowtent/box/src/database.js
2018-09-26 14:56:45 -07:00
Girish Ramakrishnan
e0cd7999eb
Make spaces an edition instead of setting
2018-08-28 18:31:48 -07:00
Johannes Zellner
964da5ee52
Send the edition in the config route
2018-08-28 18:05:45 -07:00
Girish Ramakrishnan
1cf5807fb9
Send spaces config in config route
...
This is here because normal users cannot access settings route
2018-08-03 18:26:16 -07:00
Girish Ramakrishnan
d8257c4745
refactor updater logic into updater.js
2018-07-31 20:20:10 -07:00
Girish Ramakrishnan
35c9e99102
Move the update info into separate route (since it is sensitive)
2018-06-28 17:50:27 -07:00
Girish Ramakrishnan
cab9bc3a61
Unify the config routes into /api/v1/config
...
No more separate config routes for different types of user
2018-06-28 17:40:57 -07:00
Girish Ramakrishnan
712c920b86
Move caas config to separate route
2018-06-28 17:28:46 -07:00
Girish Ramakrishnan
1c32224a8a
Move backup logs to make the REST API work
2018-06-15 09:47:34 -07:00
Girish Ramakrishnan
60bff95d9f
Add journalctl fallback for box logs
2018-06-12 14:39:33 -07:00
Girish Ramakrishnan
0cc2838b8b
lint
2018-06-12 13:49:52 -07:00
Johannes Zellner
177243b7f2
Support new platform/addon log style
2018-06-11 20:09:45 +02:00
Girish Ramakrishnan
4fd58fb46b
Rename user.js to users.js
2018-04-29 11:19:04 -07:00
Girish Ramakrishnan
4cc9818139
remove error prone short-circuit update
...
when we do pre-releases, there really is no way for us to update
all the cloudrons. this worked when everything was managed cloudron.
2018-03-13 00:36:03 -07:00
Girish Ramakrishnan
9ba830ab21
"installing" is easier to understand
2018-02-05 11:13:51 -08:00
Girish Ramakrishnan
f379724128
merge certificates.js and nginx.js to reverseproxy.js
...
when certs change, we have to call into nginx anyway. since they
go hand in hand, just merge those files. modern reverse proxies
do this job integrated already.
2018-01-30 12:26:09 -08:00
Girish Ramakrishnan
8e63d63509
Move configureDefaultServer to nginx.js
2018-01-30 12:01:53 -08:00
Girish Ramakrishnan
2c60c4eb82
move all setup logic to setup.js
2018-01-29 15:51:36 -08:00
Girish Ramakrishnan
1791617f33
typo
2018-01-29 15:11:43 -08:00
Girish Ramakrishnan
1f2cfc45b5
adminFqdn is only valid if we have a admin domain set
2018-01-29 15:11:43 -08:00
Girish Ramakrishnan
4c78a2933f
config.setZoneName is gone
2018-01-29 09:06:01 -08:00
Girish Ramakrishnan
b2363271aa
add config.adminDomain
2018-01-28 14:26:41 -08:00
Johannes Zellner
3b2f286ac5
certificates init/uninitialize are gone
2018-01-28 20:59:20 +01:00
Girish Ramakrishnan
9ff1b19c3f
Remove unused config.zoneName
2018-01-27 09:26:17 -08:00
Girish Ramakrishnan
64f90abac7
Remove onDomainConfigured
2018-01-26 22:56:15 -08:00
Girish Ramakrishnan
4d72dfd3da
remove ensureFallbackCertificate
2018-01-26 20:31:48 -08:00
Girish Ramakrishnan
de8f7415c3
use config.adminFqdn instead of config.fqdn
2018-01-26 12:12:22 -08:00
Girish Ramakrishnan
9059a30b89
refactor dns logic in cloudron.js
2018-01-25 14:46:48 -08:00
Girish Ramakrishnan
caf8da331c
Do not export configureWebadmin
2018-01-25 13:40:06 -08:00
Girish Ramakrishnan
af6d8f41ee
create dkim key when mail domain is added
2018-01-25 10:38:59 -08:00
Girish Ramakrishnan
2e05483d54
refactor: addDnsRecords now takes a domain
2018-01-24 14:08:25 -08:00
Girish Ramakrishnan
27dfd1d6c1
Set the dkim selector when generating keys
...
The box code owns the dkim dir and selector can change per domain
2018-01-18 21:49:45 -08:00
Girish Ramakrishnan
cef0cd4b25
config.token() and arg_token are not used anymore
2018-01-17 15:39:32 -08:00
Girish Ramakrishnan
fe0ff45c37
caas: autoprovision and use caas and appstore configs
2018-01-17 14:11:19 -08:00
Girish Ramakrishnan
337f919451
dnsConfig is unused
2018-01-17 12:25:33 -08:00
Girish Ramakrishnan
03d2e74e1d
use constants
2018-01-17 12:25:14 -08:00