Girish Ramakrishnan
890a06c4c5
Move admin related constants to separate file
...
Part of #199
2015-02-25 13:31:22 -08:00
Johannes Zellner
a19148447a
Add some more defaults for LOCAL development
...
Very useful for webadmin UI development
2015-02-24 18:29:40 +01:00
Girish Ramakrishnan
875f7d6c4a
Move code to use mysql
...
GLOB is not supported in mysql. So uses LIKE
password in users table needs 1024 (512 * 2 bytes since it's saved in hex)
just use drop column syntax to remove private/publicPem since the code was replacing with wrong schema for password
change collation to case sensitive
foreign key size must match size http://verysimple.com/2006/10/22/mysql-error-number-1005-cant-create-table-mydbsql-328_45frm-errno-150/
Part of #195
2015-02-24 00:27:22 -08:00
Girish Ramakrishnan
cc7970b441
Test postgresql and mysql addons
...
Fixes #173
2015-02-15 23:07:51 -08:00
Johannes Zellner
182f978f27
Replace isUpdating with a more generic progress API
...
/api/v1/cloudron/progress -> 200
{
update: null | { percent: 13, message: 'foobar' },
backup: null | { percent: 37, message: 'great' }
}
the start splash server also serves up that API endpoint,
by serving up the /progress.json file
Fixes #185
2015-02-15 19:47:11 +01:00
Girish Ramakrishnan
aa42067f9f
Track update status
...
After clicking update, the box webadmin returns to webadmin page. This is because the update has
started but the updater is busy download and building stuff for sometime before it sets up the
nginx to show upload progress.
Part of #140 . The UI doesn't work properly.
2015-02-12 20:42:17 -08:00
Girish Ramakrishnan
1ce5893a54
Add config.isUpdating
2015-02-12 19:53:57 -08:00
Girish Ramakrishnan
6218f251c0
Unify the admin and app nginx configs
...
In an ideal world, admin should have been like any other app
2015-02-11 16:09:22 -08:00
Girish Ramakrishnan
f7a562b07b
Use apiServerOrigin and webServerOrigin
...
Part of #171
2015-02-10 18:23:03 -08:00
Girish Ramakrishnan
11b56d9355
config.js values are not persisted by design
...
values in cloudron.conf are basically a cache. the code needs to
deal with it if the values are not present. for persistent config,
one has to use the sqlite db.
Fixes #139
2015-02-09 17:40:03 -08:00
Johannes Zellner
f22c8374fa
use ~/.cloudron[_test] as LOCAL and TEST config folder
2015-02-08 22:22:10 +01:00
Girish Ramakrishnan
585740a806
Move directory creation into setup script
...
test code now creates all dirs before the tests are run
run.sh creates all dirs before starting in local mode
2015-02-02 16:33:03 -08:00
Girish Ramakrishnan
7a89f38f8d
Add tests for custom domain processing in config.js
2015-01-27 10:49:56 -08:00
Girish Ramakrishnan
2bf481dcd0
When using custom domains, the zone name is the fqdn
2015-01-27 09:21:11 -08:00
Girish Ramakrishnan
09377062f8
Pass isCustomDomain in opaque data from update code
2015-01-25 19:13:45 -08:00
Girish Ramakrishnan
db12133592
Add support for custom domains
2015-01-24 09:36:55 -08:00
Girish Ramakrishnan
953ca61507
Move appFqdn to config.js
2015-01-24 08:26:04 -08:00
Girish Ramakrishnan
24abe44327
Remove version.json and store version in cloudron.conf
2015-01-22 06:57:09 -08:00
Johannes Zellner
402f9e44d7
Support three execution environments
...
They can be switched using NODE_ENV.
NODE_ENV="cloudron": config.CLOUDRON is true, we are running on a deployed cloudron
NODE_ENV="test": config.TEST is true, we are running unit tests
NODE_ENV="": config.LOCAL is true, we are running locally
2015-01-21 10:40:48 +01:00
Girish Ramakrishnan
4433857092
Write the installed version in data/version.json
...
The installed version is different from package.json because the version
is bumped for plain image changes as well
The updater is now simplified to only allow updates when there is a change
in versions file.
2015-01-11 18:36:29 -08:00
Girish Ramakrishnan
254cdcb147
Use safe.query to implement config.get
2014-11-29 13:08:06 -08:00
Girish Ramakrishnan
172f34ed39
Remove logApiRequests config option
2014-11-24 08:39:58 -08:00
Girish Ramakrishnan
01c19726f0
Make isDev a feature of the updater
...
Makes for one less provisioning parameter
2014-11-03 14:19:12 -08:00
Girish Ramakrishnan
2f8f3ee030
Get BOX_VERSIONS_JSON as provision parameter
2014-11-03 14:15:37 -08:00
Girish Ramakrishnan
743b40df8e
adminOrigin is not sent as part of provision anymore
...
It was redundant
2014-10-27 23:54:10 -07:00
Girish Ramakrishnan
09d24f687b
Cleanup config.js code
2014-10-24 18:42:55 -07:00
Girish Ramakrishnan
3e228eb995
Separate data part of config.js
2014-10-24 18:33:20 -07:00
Girish Ramakrishnan
7ec8b3f5ea
Make config.baseDir a function
2014-10-24 17:57:07 -07:00
Girish Ramakrishnan
15df364c91
Move all configs to configs/
...
This makes it easy to delete them in a single shot
2014-10-24 17:45:55 -07:00
Girish Ramakrishnan
624b4a03ca
Use package.json to determine the version
...
VERSIONS.json is really mean for the updater to get update changes.
Let's not mix the two.
2014-10-24 16:57:29 -07:00
Girish Ramakrishnan
5ec406bf4d
Remove version from cloudron.conf
...
The version and code move together, it's not really part of cloudron
configuration.
This can maybe even come from package.json later
2014-10-23 12:37:54 -07:00
Girish Ramakrishnan
2046ede44e
Send mail dns records registration across restarts
...
The registration id is saved in the config
2014-10-22 21:22:18 -07:00
Girish Ramakrishnan
defe6ad15c
Remove config.databaseFileName
2014-10-22 20:05:53 -07:00
Johannes Zellner
d7ff586b64
Remove unused requires from config.js
2014-10-22 10:18:26 -07:00
Girish Ramakrishnan
6864306562
Move naked domain config to settingsdb
2014-10-22 08:44:54 -07:00
Girish Ramakrishnan
93d3245b42
Clarify cloudron.conf vs cloudron.sqlite
2014-10-21 23:42:01 -07:00
Girish Ramakrishnan
9e81fbf05b
Move all path config to paths.js
...
I called it dirs.js first but that wouldn't allow filenames as
part of the API. stdpath.js seemed too 'standard'.
2014-10-21 23:34:23 -07:00
Girish Ramakrishnan
fe73fac628
Rework dir structure
...
data/ is backed up. Everything else is just configuration that does
not need to be backed up.
2014-10-21 22:26:12 -07:00
Girish Ramakrishnan
640b10bbb8
Move data and mount under volumes/
2014-10-21 22:15:00 -07:00
Girish Ramakrishnan
06465731eb
getUserHomeDir need not be a function
2014-10-21 22:04:36 -07:00
Girish Ramakrishnan
df26fe4845
configRoot is never used
2014-10-21 19:48:34 -07:00
Girish Ramakrishnan
775988ee7f
Run tests with base dir as ~/.yellowtenttest
...
Part of #112
2014-10-21 18:32:01 -07:00
Girish Ramakrishnan
3555c72f8d
env vars are strings
2014-10-21 11:17:54 -07:00
Girish Ramakrishnan
9f34ecdfa0
Store all data in data/ instead of .yellowtent/ in cloudrons
...
When run locally, it's still .yellowtent/
2014-10-20 16:44:14 -07:00
Girish Ramakrishnan
b1071790a6
Pretty print the config
2014-10-17 23:41:20 -07:00
Girish Ramakrishnan
a5cab916e2
Bump version to 0.5.0
2014-10-16 14:56:56 -07:00
Girish Ramakrishnan
c44779e639
Provision based on isDev value in provision call from app server
2014-10-16 14:29:41 -07:00
Girish Ramakrishnan
e72d2e1e4f
Move to cloudron.io domain
2014-10-15 19:27:04 -07:00
Girish Ramakrishnan
0efa500612
Use backup url api to backup and restore box data
...
Part of #60
2014-10-09 17:36:52 -07:00
Girish Ramakrishnan
e2342fc653
Send welcome email
2014-10-01 06:05:17 -07:00