Compare commits

..

2347 Commits

Author SHA1 Message Date
Johannes Zellner 1de93ab10e Poor man's quoting fix for auth proxy in french 2021-03-23 21:01:52 +01:00
Johannes Zellner 7e8381f2fa filemanager: Fix deep copying 2021-03-23 20:53:00 +01:00
Johannes Zellner e70ab4a4f2 Avoid rendering native select widget 2021-03-23 20:52:44 +01:00
Johannes Zellner 922c46e9be Fix radio button alignment like checkboxes 2021-03-23 20:52:42 +01:00
Johannes Zellner 9db128b5e2 filemanager: Fix state issue with editor 2021-03-23 20:51:37 +01:00
Johannes Zellner 46588c7cca filemanager: find a new unique name when file copy clashes 2021-03-23 20:50:49 +01:00
Johannes Zellner 59b37af931 filemanager: Skip keyboard actions if modal dialogs are open 2021-03-23 20:50:35 +01:00
Johannes Zellner 4221ac9595 filemanager: Select entry on context menu button clicked 2021-03-23 20:50:24 +01:00
Johannes Zellner 500da2df25 Some cleanups for showing popular and section names depending on category and search
(cherry picked from commit 5d5c712f1c)
2021-03-22 14:35:43 -07:00
Johannes Zellner 611462ffd7 Show popular apps first when no category is selected
(cherry picked from commit 050ea48e3e)
2021-03-22 14:35:36 -07:00
Girish Ramakrishnan d689066298 Fix display of user management/dashboard visiblity for email apps
(cherry picked from commit 613ac16601)
2021-03-22 14:35:15 -07:00
Girish Ramakrishnan 68b8d936e7 Do not show user management string for sogo
(cherry picked from commit 84cf5809a0)
2021-03-22 14:35:08 -07:00
Girish Ramakrishnan e8b985a266 renewCerts: do not pass domain
(cherry picked from commit 168636e493)
2021-03-22 14:34:52 -07:00
Johannes Zellner 4dffce0b71 Apply node module security updates 2021-03-10 10:40:55 +01:00
Johannes Zellner a547d0dc05 Update monaco editor 2021-03-10 10:38:12 +01:00
Johannes Zellner 19d0af9e71 Update xterm.js 2021-03-10 10:36:38 +01:00
Girish Ramakrishnan 14e1e2fc71 add note on ovh storage vs s3 subdomain usage 2021-03-05 10:31:20 -08:00
Girish Ramakrishnan 7e02996b28 Revert "ovh: storage URLs have changed"
This reverts commit 9e853c07eb.

The URL change is incorrect. storage subdomain is for openstack
2021-03-05 00:15:43 -08:00
Girish Ramakrishnan 68c67f351e add ionos to import and restore UI 2021-03-04 12:03:48 -08:00
Girish Ramakrishnan 818185bf5b DO: add SFO3 region 2021-03-03 08:53:27 -08:00
Johannes Zellner 26847d52f7 filemanager: implement direct entry and thus history support 2021-03-03 17:01:51 +01:00
Johannes Zellner f1625ed345 filemanager: Add explicit context-menu button 2021-03-03 14:22:21 +01:00
Girish Ramakrishnan 244d84e168 Add doc link for dashboard visiblity 2021-03-02 20:51:38 -08:00
Girish Ramakrishnan 6c01a5d9bb hide registy config with noop backend 2021-03-02 18:43:15 -08:00
Girish Ramakrishnan a1b6b20bdd there is a fake unset group 2021-03-02 17:44:36 -08:00
Girish Ramakrishnan 530bef34f0 translate group filter header 2021-03-02 17:34:06 -08:00
Johannes Zellner f85e787e01 We actually move files not copy 2021-03-02 16:54:14 +01:00
Johannes Zellner 44ce9024eb Do not show error if item is dropped on itself 2021-03-02 16:51:21 +01:00
Johannes Zellner a79c435bdc Better handle this ourselves instead of angular 2021-03-02 16:31:31 +01:00
Johannes Zellner 5f961bada4 Revert "encodeURI all REST api paths to preserve whitespaces"
This reverts commit a63e0ed287.
2021-03-02 16:24:15 +01:00
Johannes Zellner a63e0ed287 encodeURI all REST api paths to preserve whitespaces 2021-03-02 16:09:58 +01:00
Johannes Zellner 99f096c971 Make sure paths in request json bodies are not url encoded 2021-03-02 11:12:43 +01:00
Johannes Zellner 2ccbe61b27 Never pre-select any acl if at least one group exists 2021-03-02 09:47:24 +01:00
Girish Ramakrishnan 282edca008 Fix doc link 2021-03-01 11:36:07 -08:00
Johannes Zellner 09840df51a Also enable app visibility selector for email apps 2021-03-01 20:16:05 +01:00
Johannes Zellner 10a459726a Fix html rendering in translated email access string 2021-03-01 19:45:09 +01:00
Johannes Zellner b9501d69a5 Allow to select dashboard visibility during app installation also 2021-03-01 18:52:10 +01:00
Johannes Zellner 34cd750121 Update en translation to add default Spanish language 2021-03-01 10:03:55 +01:00
Johannes Zellner 8ccbb03d69 Add spanish translation 2021-03-01 09:58:48 +01:00
Johannes Zellner 16d209e0c8 Add french translation 2021-03-01 09:58:26 +01:00
Girish Ramakrishnan d61e3407b4 show the cancel task button sooner 2021-02-26 11:47:48 -08:00
Girish Ramakrishnan ca27288d43 update translations 2021-02-26 10:13:21 -08:00
Girish Ramakrishnan d787c430ce Better footnote for dry run 2021-02-25 10:53:32 -08:00
Girish Ramakrishnan 7fb4fbdaf3 update translations 2021-02-24 22:46:52 -08:00
Girish Ramakrishnan 8dc0236e89 Add UI to sync dns 2021-02-24 22:18:39 -08:00
Girish Ramakrishnan 5f0ff047d4 setDnsRecords API has changed 2021-02-24 22:00:05 -08:00
Girish Ramakrishnan bdbbc78497 2021 is here 2021-02-24 17:08:43 -08:00
Girish Ramakrishnan 0980a394b7 restore: skipDnsSetup flag 2021-02-24 15:54:11 -08:00
Girish Ramakrishnan 5cd23ff19f typo 2021-02-24 09:52:07 -08:00
Girish Ramakrishnan 79e4d6e317 remove untranslated string 2021-02-24 09:36:21 -08:00
Johannes Zellner 2ae80312ee Do not update task info for non-admins 2021-02-24 17:12:18 +01:00
Johannes Zellner cec4d51649 Allow portbindings to be below 1024
This is required for example for adguard using port 53
2021-02-19 17:34:05 +01:00
Johannes Zellner f39fd36b85 Ensure if no sso option is there we preset correctly 2021-02-19 17:02:03 +01:00
Johannes Zellner ad94b75607 Update translations and add vietnamese 2021-02-18 17:11:00 +01:00
Johannes Zellner 670f34fde6 Allow to set access to apps from groups edit form 2021-02-18 17:01:49 +01:00
Johannes Zellner bfb22c04b7 Make callback optional for refreshInstalledApps() 2021-02-18 17:01:35 +01:00
Johannes Zellner 550d6b9868 Fix linter issues 2021-02-18 16:16:42 +01:00
Johannes Zellner abb5a2c985 Move email logs button to the same place as system logs 2021-02-18 11:25:38 +01:00
Johannes Zellner d377a23ebc If groups are used, do not allow app installation without choosing the access settings 2021-02-17 17:10:39 +01:00
Girish Ramakrishnan 9ca6ac7080 mail: refresh config on location change 2021-02-16 12:40:36 -08:00
Johannes Zellner 3098917d55 Add access control group filter 2021-02-16 20:15:16 +01:00
Girish Ramakrishnan b7bc5d38bd services: add a refresh button 2021-02-15 11:38:51 -08:00
Johannes Zellner 891cb135f4 Update lock file 2021-02-15 17:42:11 +01:00
Johannes Zellner 6427f16743 Always show English versions of languages to avoid re-setting issues 2021-02-15 17:41:59 +01:00
Johannes Zellner 1efcfc69f4 Add netcup to dns setup screen 2021-02-11 17:01:37 +01:00
Girish Ramakrishnan 25e59adb2a Update translations 2021-02-09 15:39:56 -08:00
Girish Ramakrishnan eb7530b5fd add provider to registry config
this way there is a clear way to disable/remove config
2021-02-09 15:36:28 -08:00
Johannes Zellner 419e1d65e4 Ensure we always set the correct language 2021-02-08 21:36:22 +01:00
Girish Ramakrishnan bec228b854 ionos: add profit bricks object storage 2021-02-04 10:14:42 -08:00
Girish Ramakrishnan 9e853c07eb ovh: storage URLs have changed
https://forum.cloudron.io/topic/4362/possibly-needing-to-update-ovh-object-storage-url
2021-02-03 16:33:43 -08:00
Girish Ramakrishnan 4d2ba3b082 make it clear what app password gives access to 2021-02-03 13:15:38 -08:00
Johannes Zellner 5f0889c281 Remove duplicate string in terminal 2021-02-03 20:10:07 +01:00
Girish Ramakrishnan 36552f651d backups: fix broken UI in config page 2021-02-01 14:16:35 -08:00
Johannes Zellner 64ea5e827b filemanager: make copy of entries into select to avoid reference 2021-02-01 20:32:32 +01:00
Johannes Zellner da6ee44a2a filemanager: Give visual feedback on breadcrumb drop 2021-02-01 20:28:55 +01:00
Johannes Zellner cc34847de9 filemanager: allow drop on breadcrumbs 2021-02-01 20:19:54 +01:00
Johannes Zellner 567f430b7b filemanager: Prepare for multiselect drag'n'drop but don't use it yet 2021-02-01 19:59:45 +01:00
Johannes Zellner ccd481e64a filemanager: ensure files are refreshed on paste from copy 2021-02-01 18:20:48 +01:00
Johannes Zellner f420107704 filemanager: only call callback if it is a function 2021-02-01 18:20:25 +01:00
Johannes Zellner cd4b6c448c filemanager: Add select all and deselect on escape 2021-02-01 18:17:54 +01:00
Johannes Zellner 3e04da7062 Implement keyboard shortcuts for copy/cut/paste 2021-02-01 17:48:57 +01:00
Johannes Zellner f47015223c filemanager: recursive copy 2021-02-01 17:20:51 +01:00
Johannes Zellner 2935fa6a36 filemanager: implement copy for files 2021-02-01 16:45:55 +01:00
Girish Ramakrishnan 436c54b829 Update italian translation 2021-01-31 11:15:50 -08:00
Johannes Zellner 7e970a175d filemanager: Add more UI actions 2021-01-30 23:54:00 +01:00
Johannes Zellner e18b522ff3 Allow to paste into directory entry 2021-01-30 23:26:32 +01:00
Johannes Zellner 77cb64369b filemanager: add basic cut/paste 2021-01-30 23:23:34 +01:00
Johannes Zellner bd4423c9c6 filemanager: Remove individual action buttons 2021-01-30 22:21:19 +01:00
Johannes Zellner af390db21e filemanager: Add Edit menu item 2021-01-30 22:02:55 +01:00
Johannes Zellner 1f3eeb4f43 filemanager: make chown support multiple files 2021-01-30 18:20:06 +01:00
Johannes Zellner 778317aa8a Update translation 2021-01-30 17:16:22 +01:00
Johannes Zellner c12dfcef54 filemanager: allow to delete all selected files 2021-01-30 17:08:32 +01:00
Johannes Zellner 5880101d9a Update dependencies 2021-01-30 12:17:29 +01:00
Johannes Zellner 13cc4fb045 revision needs to be quoted to become a string 2021-01-30 11:55:21 +01:00
Johannes Zellner 66450913b5 filemanager: Implement multiselect with cmd/ctrl key 2021-01-29 18:35:35 +01:00
Johannes Zellner 3d55cfaaca filemanager: Use double click to open 2021-01-29 11:55:35 +01:00
Johannes Zellner c435d4d35a Add modified column to filemanager 2021-01-29 11:53:02 +01:00
Johannes Zellner 719b7485bd Move pretty date filter to shared client.js 2021-01-29 11:52:47 +01:00
Johannes Zellner 7d60ef5fd6 Bust translation cache on updates 2021-01-29 11:18:26 +01:00
Johannes Zellner 6820a3def1 Fixup linter issues 2021-01-29 11:15:33 +01:00
Girish Ramakrishnan 364fe2f29f $timeout is not used 2021-01-28 10:07:35 -08:00
Girish Ramakrishnan b146d78525 Fix disk usage graphs 2021-01-27 21:48:16 -08:00
Johannes Zellner 012968003f The progress callback already gives the whole uploaded size 2021-01-27 16:47:29 +01:00
Girish Ramakrishnan 0d9bc325fa Fix doc urls 2021-01-26 22:09:36 -08:00
Girish Ramakrishnan 3a26f63c2a fix reading matrix config 2021-01-26 22:07:21 -08:00
Johannes Zellner de74b05703 Update english translation 2021-01-26 19:32:39 +01:00
Girish Ramakrishnan df24a6ab32 update translations 2021-01-25 22:41:41 -08:00
Johannes Zellner 08e8ce4d75 Fix sfp docs link typo 2021-01-25 16:42:33 +01:00
Girish Ramakrishnan d627b6b0b0 add some space between image and description 2021-01-22 12:41:26 -08:00
Girish Ramakrishnan ed395d74bc rebuild if service not found 2021-01-21 17:41:16 -08:00
Girish Ramakrishnan 1c5d56c28f remove note on memory/swap split 2021-01-20 09:17:05 -08:00
Girish Ramakrishnan 370f8d7cad memorySwap/memory is now just a single memoryLimit 2021-01-19 19:48:33 -08:00
Johannes Zellner a33e662c47 Swap description and select in owner transfer dialog 2021-01-19 22:27:55 +01:00
Johannes Zellner d881dd6228 Update translations 2021-01-19 22:26:50 +01:00
Johannes Zellner 43c0cd034c revert owner transfer flow to avoid too many action buttons 2021-01-19 22:26:43 +01:00
Johannes Zellner 8fa890e0d0 Update translations 2021-01-19 16:13:30 +01:00
Johannes Zellner 98f6871d8b Add netcup dns provider 2021-01-19 10:53:05 +01:00
Girish Ramakrishnan fa1104fd75 update translations 2021-01-18 19:44:44 -08:00
Girish Ramakrishnan 2e17e444aa Add domain alias UI 2021-01-18 18:02:06 -08:00
Girish Ramakrishnan 7835785aac Fix incorrect app password filter 2021-01-17 18:17:54 -08:00
Johannes Zellner 3a031064fb Add italian and chinese translation, since they are over 60% done 2021-01-17 20:24:02 +01:00
Johannes Zellner 83e425dccc Update translations 2021-01-17 20:23:12 +01:00
Johannes Zellner 1b09a80caa Use new ownership transfer route 2021-01-15 14:28:52 +01:00
Johannes Zellner 32d7b2fe34 Only show transfer ownership button for owner 2021-01-14 21:16:28 +01:00
Johannes Zellner e0f6ddfcf7 Call rest api to transfer ownership 2021-01-14 20:47:30 +01:00
Johannes Zellner 2086444a9e Add dutch translation 2021-01-14 17:15:10 +01:00
Johannes Zellner 117b58fcbe Add initial UI for transferring ownership 2021-01-14 17:14:32 +01:00
Johannes Zellner 3d441748c4 Update translations 2021-01-14 17:14:12 +01:00
Johannes Zellner 7f3eae23a1 Add userRoles and userGroups comment for override 2021-01-14 16:49:26 +01:00
Girish Ramakrishnan 8392642f5f catch exception for custom hour 2021-01-13 17:09:55 -08:00
Girish Ramakrishnan e15639583d ensure box.update is actually valid 2021-01-13 17:09:55 -08:00
Johannes Zellner 2ae62957d4 Do not translate subscription strings in user view 2021-01-13 16:54:25 +01:00
Johannes Zellner 9678b7d966 Restrict user roles 2021-01-13 16:19:14 +01:00
Johannes Zellner 896f55f6d3 Add user group subscription dialog 2021-01-13 15:03:26 +01:00
Johannes Zellner 74faa29012 Restrict user groups 2021-01-13 14:49:23 +01:00
Girish Ramakrishnan 5fc8a50ae1 more caas code removal 2021-01-12 19:49:20 -08:00
Girish Ramakrishnan ee68315e70 make email view content larger 2021-01-12 19:38:35 -08:00
Girish Ramakrishnan d16d8729c0 Add refresh button in mail eventlog 2021-01-12 19:30:30 -08:00
Girish Ramakrishnan b28fb72670 function name has changed 2021-01-12 19:22:18 -08:00
Girish Ramakrishnan 1b6e157525 Add federated section 2021-01-12 09:25:52 -08:00
Johannes Zellner 383147b26a Fixup linter issues in filemanager.js 2021-01-12 14:29:04 +01:00
Johannes Zellner 6ede67512d Add .jshintrc 2021-01-12 14:28:54 +01:00
Johannes Zellner 57b19457e4 Handle ctrl/cmd + s for saving in filemanager editor 2021-01-11 16:15:01 +01:00
Girish Ramakrishnan 9a41594ec3 rename splash to notfound.html
part of cloudron/box#755
2021-01-08 09:37:38 -08:00
Girish Ramakrishnan b5ef4e0e6d make copy of aliases array 2021-01-07 22:07:20 -08:00
Girish Ramakrishnan d7a2732dc6 use the new mailbox API that has aliases
part of cloudron/box#738
2021-01-07 22:02:26 -08:00
Girish Ramakrishnan f594abaa71 domains: add wellknown ui
fixes cloudron/box#703
2021-01-07 19:54:51 -08:00
Girish Ramakrishnan 9c35be2fdc updated translations 2021-01-07 19:32:04 -08:00
Johannes Zellner 79bd284179 Ensure cloudron name cannot be longer than 64 2021-01-07 22:52:57 +01:00
Johannes Zellner 8e6ceb2e66 Add sshfs/cifs/nfs to restore ui 2021-01-07 19:41:39 +01:00
Johannes Zellner 07c9699895 Fix syntax error in angular template 2021-01-07 19:16:34 +01:00
Johannes Zellner af0d78e720 Do not error on form itself 2021-01-07 18:40:51 +01:00
Johannes Zellner 46dabee6ee Add sshfs/cifs/nfs backup storage to app import 2021-01-07 18:28:32 +01:00
Girish Ramakrishnan a723cee47f Add @ symbol 2021-01-06 22:20:09 -08:00
Girish Ramakrishnan bbf71d8e88 eventlog: logout event 2021-01-06 21:59:17 -08:00
Girish Ramakrishnan 0867924a01 graphs: show the volume usage
part of cloudron/box#756
2021-01-04 15:14:30 -08:00
Girish Ramakrishnan 26662b9ed9 dashboard: if access_token is provided, automatically attempt login
fixes cloudron/box#747
2020-12-22 10:04:37 -08:00
Girish Ramakrishnan 29f7b771a1 add setup_token to setup and restore
part of cloudron/box#751
2020-12-21 23:59:30 -08:00
Girish Ramakrishnan de5c1ca1cf update object has changed
part of cloudron/box#749
2020-12-21 12:49:21 -08:00
Girish Ramakrishnan 94040cf3f9 proxyauth: Enable 2fa
part of cloudron/box#748
2020-12-20 13:25:42 -08:00
Girish Ramakrishnan 2e187ce012 Fix the for 2020-12-20 13:03:51 -08:00
Girish Ramakrishnan 71e4b687b9 lint 2020-12-20 13:02:58 -08:00
Girish Ramakrishnan dd3522a34c filemanager: show host path for volumes as root label 2020-12-20 12:58:09 -08:00
Johannes Zellner 0bed8c89f6 Ensure catchall uses the same origin array as the dropdown model
Otherwise angular would not reliably detect the same objects
2020-12-18 16:56:11 +01:00
Johannes Zellner 98ac637ada Add one more missing translation 2020-12-16 17:31:24 +01:00
Girish Ramakrishnan 82e77d36a6 make it 12 for aesthetics 2020-12-15 13:49:05 -08:00
Johannes Zellner b0f9ba5483 Fix missing network view translations 2020-12-15 17:31:03 +01:00
Johannes Zellner 39b50b2aa9 Make category button translatable in appstore 2020-12-15 15:58:13 +01:00
Johannes Zellner 4170bf3a7a Add dutch language name 2020-12-15 15:51:10 +01:00
Johannes Zellner 632bb64b96 Add missing translations for apps grid 2020-12-15 15:48:25 +01:00
Johannes Zellner a33760a688 Show actual real /app/data/ path in filemanger 2020-12-15 10:39:19 +01:00
Johannes Zellner 0abddd8665 Improve some elements in darkmode 2020-12-10 17:10:27 +01:00
Girish Ramakrishnan 1dc1cb92b9 Display the appstore id 2020-12-09 17:27:22 -08:00
Johannes Zellner 0adcc2af4f Do not follow redirects in authproxy login
Since we redirect on the server already on success, the fetch() would
follow that and handle whatever response from the upstream app is
delivered.
2020-12-09 14:11:27 +01:00
Johannes Zellner 24397aa25e Fix appstore category icon padding 2020-12-09 12:16:00 +01:00
Johannes Zellner fbaa3ad15f Add appstore category translations 2020-12-09 12:15:08 +01:00
Girish Ramakrishnan aa2d357de5 Add media category 2020-12-08 10:58:22 -08:00
Johannes Zellner 397a2b8803 Always prepend the version to assets when sourcing to avoid cache hits on update 2020-12-08 15:38:02 +01:00
Johannes Zellner b63d1fa8e1 List volumes of the app in filemanager 2020-12-08 13:02:14 +01:00
Johannes Zellner 6590c06f5b Display upload size and size progress 2020-12-08 12:01:47 +01:00
Johannes Zellner b608859ef9 Avoid flickering of app actions when cursor is between grid items 2020-12-08 11:36:59 +01:00
Johannes Zellner c9ae24cf62 Show app restart status as a banner in filemanager 2020-12-07 20:13:05 +01:00
Johannes Zellner e1f5fea303 Add logs, terminal and restart action to filemanager 2020-12-07 19:49:53 +01:00
Girish Ramakrishnan 8ef05c850d mail: Do not query settings per domain 2020-12-06 23:31:29 -08:00
Girish Ramakrishnan 05a558165a missing space 2020-12-06 11:32:09 -08:00
Girish Ramakrishnan 68c36ca353 add note on the ts/creationDate fields 2020-12-06 11:32:05 -08:00
Girish Ramakrishnan 6c79aaae49 fts: immediately show status in ui 2020-12-04 15:51:36 -08:00
Girish Ramakrishnan 35ba5fc766 show spinner for some time 2020-12-04 10:23:29 -08:00
Johannes Zellner 6d32ab6095 Rework the filemanager toolbar to not overflow with long paths 2020-12-04 19:06:08 +01:00
Johannes Zellner ed96c83953 decode foldernames in breadcrumb 2020-12-04 18:39:10 +01:00
Johannes Zellner 7108d0fe31 Pull in solr related German translation updates 2020-12-04 17:41:13 +01:00
Johannes Zellner bc4bce6db5 Put services reset to standard memory where it belongs 2020-12-04 17:36:38 +01:00
Johannes Zellner c9fd832af1 Use the same icon for filemanager buttons 2020-12-04 13:58:46 +01:00
Johannes Zellner fa54de2960 Update file size after save in filemanager 2020-12-04 13:53:08 +01:00
Johannes Zellner 58a60d3bd5 Set filemanager document title dynamically to indicate open app 2020-12-04 12:08:42 +01:00
Johannes Zellner 3dd8642a60 Do not show hostpath in volume mount dropdown 2020-12-04 11:35:01 +01:00
Girish Ramakrishnan 734542b3c4 redis: logs 2020-12-04 00:45:53 -08:00
Girish Ramakrishnan 89e62541b5 Link back to our docs and not to some github page 2020-12-03 21:57:41 -08:00
Girish Ramakrishnan cf620ee355 Disable solr if not enough memory 2020-12-02 17:45:24 -08:00
Girish Ramakrishnan 7269e2c64f Display solr status 2020-12-02 17:16:59 -08:00
Girish Ramakrishnan 357d4d72d7 Update solr text 2020-12-02 16:56:17 -08:00
Girish Ramakrishnan cd3fbda09c Show spinner when solr config is toggled 2020-12-02 16:48:20 -08:00
Johannes Zellner 9b8d8ed544 And more overflow fixes 2020-12-02 18:32:49 +01:00
Johannes Zellner 424f6b2b1b Fix more overflow issues in settings view 2020-12-02 18:29:02 +01:00
Johannes Zellner 709a12e74c Add china S3 regions 2020-12-02 18:20:58 +01:00
Johannes Zellner 46ffcdbf75 Fix overflow issue 2020-12-02 17:57:15 +01:00
Johannes Zellner 847751e3e0 Update german translation 2020-12-01 16:50:55 +01:00
Johannes Zellner 54724e209a Do not add basically empty french and italien translation by default for now 2020-12-01 16:50:33 +01:00
Girish Ramakrishnan d5ab13a00e Enable download for directories
downloads as zip
2020-11-30 10:27:45 -08:00
Johannes Zellner 529d445d06 Make reboot dialog translatable 2020-11-30 10:57:42 +01:00
Johannes Zellner 72f6a3213e Fixup some translation issues in the backups view 2020-11-25 18:29:15 +01:00
Johannes Zellner ec32711e7e Ensure backup settings don't overflow in the info box 2020-11-25 16:36:55 +01:00
Johannes Zellner 764fe92f1b translatable proxyauth login page 2020-11-24 20:58:10 +01:00
Johannes Zellner 68a9170251 One more dialog cancel translation missing 2020-11-24 19:52:24 +01:00
Johannes Zellner 1581b5bbfd Add missing app listing action tooltips 2020-11-24 19:08:17 +01:00
Johannes Zellner 7e0bd28bc2 Add missing translation for task rety and fix an issue in the retry button 2020-11-24 19:00:16 +01:00
Johannes Zellner 06b25501a0 German volume translation 2020-11-24 15:12:01 +01:00
Girish Ramakrishnan 6be1d3bacb mailbox: disable save button with no owner 2020-11-23 21:22:15 -08:00
Girish Ramakrishnan c211428897 add info on where volume is mounted 2020-11-23 17:25:13 -08:00
Girish Ramakrishnan 786a1d0c2a move volume description from apps to volumes view 2020-11-23 17:10:40 -08:00
Johannes Zellner dcecd166d0 Translate the volume view 2020-11-23 22:13:54 +01:00
Johannes Zellner ba59fbac48 Fix typo in translation id 2020-11-23 18:03:26 +01:00
Johannes Zellner c704129975 Fix translation for user roles 2020-11-23 17:25:47 +01:00
Johannes Zellner 259d70c63e Fixup translation if disk info is not yet available 2020-11-23 16:47:09 +01:00
Johannes Zellner e438e8e9ac Make user search translatable 2020-11-23 16:34:48 +01:00
Johannes Zellner e8091cb5f3 robots indexing action was not translated 2020-11-23 16:29:48 +01:00
Johannes Zellner 949ec91cc8 Fix overlooked save buttons for translation 2020-11-23 16:27:51 +01:00
Johannes Zellner bc62eaef90 Try to not overflow as quickly 2020-11-23 16:24:55 +01:00
Johannes Zellner 6e1b5cacd6 Move some input errors below the input field 2020-11-23 12:54:34 +01:00
Johannes Zellner 7f57c18444 Fix app location overflow in header 2020-11-23 12:34:19 +01:00
Johannes Zellner 3579992f62 Fix overflow on app task error 2020-11-23 12:30:39 +01:00
Johannes Zellner 3b7ec409e9 Add volume description and warning text 2020-11-23 11:53:20 +01:00
Johannes Zellner d885bfa93f German translation is now mostly done 2020-11-23 11:36:40 +01:00
Johannes Zellner c0f4f8979a Pull in more german translations 2020-11-22 10:58:47 +01:00
Johannes Zellner 728aa9dc35 Pull in some more German translations 2020-11-20 22:46:45 +01:00
Johannes Zellner 38fc329b9f Use language names for selectors 2020-11-20 18:09:09 +01:00
Johannes Zellner f252b01ae2 Add password reset mail translations 2020-11-20 16:23:13 +01:00
Johannes Zellner 2c29eecc22 Add welcome mail translations 2020-11-20 16:10:36 +01:00
Girish Ramakrishnan 3125e1b386 get/set solr config 2020-11-19 20:05:13 -08:00
Girish Ramakrishnan cac8659fbd Add elasticemail 2020-11-19 11:12:46 -08:00
Johannes Zellner 1230a7bb3c Update some translations 2020-11-19 12:25:11 +01:00
Johannes Zellner 1d57d4d9a4 Translate setupAccount view 2020-11-19 11:33:46 +01:00
Johannes Zellner 2e12d1765a Use system language to translate login screen 2020-11-19 00:31:45 +01:00
Johannes Zellner fb03e34765 Fix license term checkbox
input elements don't have an innerHtml
2020-11-18 09:35:23 +01:00
Girish Ramakrishnan b1addd05dc backup: make password and passwordRepeat the same when not set 2020-11-17 21:12:27 -08:00
Johannes Zellner 5c636cca0b Use availalbe languages in profile 2020-11-18 00:48:55 +01:00
Johannes Zellner c4d8699f91 Fix typo 2020-11-18 00:45:19 +01:00
Johannes Zellner 8bbcb119ce Avoid having two red action buttons in the uninstall view 2020-11-18 00:40:15 +01:00
Johannes Zellner 15b9ce0ee3 add ability to set cloudron language for admins 2020-11-18 00:28:10 +01:00
Johannes Zellner fd8077d9f5 Add language settings UI 2020-11-18 00:10:45 +01:00
Johannes Zellner 360e6e36cd use consistent styling of automatic backups and updates 2020-11-17 23:37:58 +01:00
Johannes Zellner 51b0f603c5 Only preset skip backup on update if autoupdates are also disabled 2020-11-17 23:31:16 +01:00
Johannes Zellner 01de0250ac Set skip backup on update based on backup config 2020-11-17 22:56:36 +01:00
Johannes Zellner e43160f972 Add missing translations 2020-11-17 16:29:53 +01:00
Johannes Zellner 74a65946b4 Remove unused additional postinstall dialog code 2020-11-17 16:24:43 +01:00
Johannes Zellner a46f7341e7 Add translation for app configure dialogs 2020-11-17 13:59:01 +01:00
Girish Ramakrishnan e6814ca4d2 linode: remove dns warnings
they propagate fine now
2020-11-16 22:50:35 -08:00
Girish Ramakrishnan 3fdbcb436b if provider is linode, set the default dns to linode 2020-11-16 21:04:18 -08:00
Johannes Zellner 6f12fb200c First bunch of app configure translations 2020-11-16 16:52:51 +01:00
Johannes Zellner 04456e2d8c Remove leftover debug log 2020-11-16 14:45:42 +01:00
Johannes Zellner 0dcf82a120 Remove console view in app configure screen 2020-11-16 14:42:55 +01:00
Johannes Zellner 5435f3f9c1 Move app start/stop to uninstall 2020-11-16 14:42:02 +01:00
Johannes Zellner 5d2f3d51bf Make user repeat the backup encryption password 2020-11-14 11:01:46 +01:00
Johannes Zellner 5ee64c827a Allow up to 4 appstore columns 2020-11-13 22:32:09 +01:00
Johannes Zellner a0e7cf59b6 Add appstore translations 2020-11-13 22:25:55 +01:00
Girish Ramakrishnan 722f45050a Translate the strings 2020-11-13 13:24:11 -08:00
Girish Ramakrishnan 7f3732d43c Add divider for users and groups 2020-11-13 13:09:59 -08:00
Girish Ramakrishnan 9ac5889262 Make it user/group listing searchable 2020-11-13 09:59:53 -08:00
Johannes Zellner 4fd1f31ab7 Translate users view 2020-11-13 16:44:39 +01:00
Girish Ramakrishnan 42d8dae900 mailbox: select group as owner 2020-11-13 00:21:20 -08:00
Johannes Zellner c2799658ba Creating new file or folder is no danger 2020-11-12 23:16:34 +01:00
Johannes Zellner bf2965dba0 Use new translation argument passing 2020-11-12 23:13:52 +01:00
Johannes Zellner 50433206a3 Do not use ng-href in translation strings 2020-11-12 22:23:39 +01:00
Johannes Zellner b9b31afeca Translate mail view 2020-11-12 22:18:30 +01:00
Johannes Zellner 29f7478d86 Translate paginator in emails view 2020-11-12 16:38:48 +01:00
Johannes Zellner 47de719fc8 Translate mails view 2020-11-12 11:42:11 +01:00
Johannes Zellner 5f716669fe Translate table actions 2020-11-11 22:50:57 +01:00
Johannes Zellner 302a45d6e0 Save some space use 2 space indent like the rest of the file 2020-11-11 22:00:00 +01:00
Johannes Zellner 9becad268d Fixup some profile translations 2020-11-11 21:14:53 +01:00
Johannes Zellner 017e8bf0e5 Finish settings translation 2020-11-11 21:10:43 +01:00
Johannes Zellner 5617e19e7c Ensure we reset the days and hours when schedule is disabled 2020-11-11 20:00:55 +01:00
Johannes Zellner 2a14f6c441 Ensure we don't throw for disabled update checks 2020-11-11 19:42:03 +01:00
Johannes Zellner b7e235b727 Translate the support view 2020-11-11 18:27:43 +01:00
Johannes Zellner bc6ff607ce Translate domains view 2020-11-11 17:39:19 +01:00
Johannes Zellner bbd6b47015 Better style auth proxy login 2020-11-11 14:05:15 +01:00
Girish Ramakrishnan fb4025812a proxyauth: render login as ejs 2020-11-11 00:36:56 -08:00
Girish Ramakrishnan 13ab5c1345 proxyauth: Use ajax instead of form submit 2020-11-11 00:02:02 -08:00
Girish Ramakrishnan 4cebc58576 Handle proxyAuth addon 2020-11-10 20:12:51 -08:00
Johannes Zellner a80ddc17a7 The translation key is called 'filemanager.title' 2020-11-10 01:23:09 +01:00
Johannes Zellner e50ff5e364 We need to use the translate promise for the window titles 2020-11-10 01:22:01 +01:00
Johannes Zellner ec00eecab3 Translate the filemanager 2020-11-10 01:21:44 +01:00
Johannes Zellner 89cde563f6 We use 2 space indent in html 2020-11-09 23:49:22 +01:00
Johannes Zellner a809d3fecb Set logs, filemanager and terminal title programmatically to avoid angular template leaks 2020-11-09 23:32:47 +01:00
Johannes Zellner 2ddb26761a Add terminal translations 2020-11-09 11:23:07 +01:00
Johannes Zellner f8229ba53b Ensure all views using client.js have required dependencies 2020-11-08 10:48:30 +01:00
Johannes Zellner f0a5796f2e Move translation provider setup into shared client.js 2020-11-08 10:41:42 +01:00
Johannes Zellner 5f6344f400 Translate logviewer 2020-11-08 10:40:08 +01:00
Johannes Zellner 8550b88dfe add quick action for logs/terminal/filemanager in the app config header 2020-11-08 09:54:21 +01:00
Johannes Zellner 85ff6a02bf Always show filelist header and give scroll top indicator 2020-11-08 00:46:34 +01:00
Johannes Zellner b5fa60235d Skip file moving if location unchanged 2020-11-07 23:00:08 +01:00
Johannes Zellner 6a43e184e8 Fix breadcrumbs in filemanager 2020-11-07 22:58:37 +01:00
Johannes Zellner 8b67b3b884 Add initial drag'n'drop within the filemanager 2020-11-07 22:43:24 +01:00
Johannes Zellner df20ac9190 Init filemanager cwd with explicit null 2020-11-07 11:35:22 +01:00
Johannes Zellner b6ef7cbb96 Translate systeminformation view 2020-11-06 15:32:49 +01:00
Girish Ramakrishnan 1236b64081 Also search by app id 2020-11-05 10:14:46 -08:00
Johannes Zellner c15a8dba6c Add translation for notification view 2020-11-05 16:51:41 +01:00
Johannes Zellner 93a7137d10 Move reboot server dialog and logic to main view 2020-11-05 16:45:45 +01:00
Johannes Zellner 61c1622cbf Add services view translation 2020-11-05 14:48:36 +01:00
Johannes Zellner 6298479e17 Add network view translation 2020-11-05 14:27:07 +01:00
Johannes Zellner 3bd55bbeba Add translation for eventlog 2020-11-05 13:13:57 +01:00
Johannes Zellner cf1311fe90 add 'npm run update-translations' command 2020-11-05 13:13:17 +01:00
Johannes Zellner d56653d946 Translate branding 2020-11-05 12:46:24 +01:00
Johannes Zellner 0b919bfd13 filemanager paths should not start with / 2020-11-04 13:41:29 +01:00
Johannes Zellner 1d7921a760 slightly improve the media viewer widget 2020-11-04 13:03:36 +01:00
Johannes Zellner 20af9ed911 Fix a link targets to not overwrite the hash in the url bar 2020-11-03 21:35:48 +01:00
Johannes Zellner 849ddd39e0 Finish backups view translation 2020-11-03 16:58:11 +01:00
Johannes Zellner a83dcb7c75 Add more backup view translations 2020-11-03 12:58:33 +01:00
Johannes Zellner 8ef96aefac Finish all profile translation hooks 2020-11-02 14:59:39 +01:00
Johannes Zellner 7bad9f3e3e Translate the profile main view 2020-10-31 12:24:35 +01:00
Girish Ramakrishnan f2aade3b36 Add file browser button to volume listing 2020-10-30 11:32:22 -07:00
Johannes Zellner c668b9274a Add more profile translations 2020-10-30 18:12:18 +01:00
Johannes Zellner beec65bdb6 Add all main view titles and navbar translation keys 2020-10-30 18:12:18 +01:00
Johannes Zellner b71e68581d Start using tr filter 2020-10-30 18:12:18 +01:00
Johannes Zellner 7a207650d3 Add shorthand 'tr' filter for translation 2020-10-30 18:12:18 +01:00
Johannes Zellner 53d39608b8 Change to lowercase and scoped translation keys 2020-10-30 18:12:18 +01:00
Johannes Zellner 9912698a71 Add language selector with english as fallback 2020-10-30 18:12:18 +01:00
Johannes Zellner be45a75e4d Add showcase for first string translation 2020-10-30 18:12:18 +01:00
Johannes Zellner 73c43b350a Add initial code to do basic translation 2020-10-30 18:12:18 +01:00
Johannes Zellner 75ad644769 Also show hostPath in select 2020-10-30 15:14:59 +01:00
Johannes Zellner 04299a7436 Fixup mounts ui layout in app configuration 2020-10-30 12:37:32 +01:00
Girish Ramakrishnan da726872ef Fix mounting UI 2020-10-29 22:04:29 -07:00
Girish Ramakrishnan 68f3441fbc Fix display of sso message
regression from 57e8faa8ab
2020-10-29 21:38:00 -07:00
Girish Ramakrishnan 671b9f235b add storage section in app view 2020-10-28 22:51:16 -07:00
Girish Ramakrishnan 377c2f678e Add volume UI 2020-10-28 17:17:23 -07:00
Johannes Zellner f8f0c50ed8 Change Univention name for external LDAP 2020-10-27 19:43:12 +01:00
Johannes Zellner 23592e19ad Add learning app category 2020-10-27 08:48:48 +01:00
Girish Ramakrishnan 409e4beaaa rsync: Add warning to remove s3 life cycle rules 2020-10-26 10:04:19 -07:00
Girish Ramakrishnan 62b369ff8a users: show error if update failed 2020-10-23 11:47:37 -07:00
Girish Ramakrishnan d557c8d9eb Show why the setting exists 2020-10-23 11:47:23 -07:00
Johannes Zellner 4457b5879b Support retry with optional overwrite 2020-10-22 12:45:05 +02:00
Johannes Zellner f586791c71 Add new file creation action and collapse new and upload actions 2020-10-22 10:25:54 +02:00
Girish Ramakrishnan 210d522ec3 sftp: add checkbox for non-admin access 2020-10-21 23:38:19 -07:00
Johannes Zellner e54c8bbf99 Handle memory limit errors 2020-10-21 13:27:31 +02:00
Johannes Zellner bd96073429 Move domain in use error below the input field 2020-10-21 13:11:00 +02:00
Johannes Zellner 3ebf250ad9 Use displayed instead of enabled in filemanager context-menu 2020-10-20 13:49:46 +02:00
Johannes Zellner 920181752d Add link which context-menu lib we are using 2020-10-20 13:46:29 +02:00
Johannes Zellner 660b92cd3b Support more tar and zip formats 2020-10-20 12:31:48 +02:00
Girish Ramakrishnan c7c16ee167 Add extract progress bar 2020-10-19 21:45:13 -07:00
Girish Ramakrishnan 1e6ea77a8f Add extract context menu item 2020-10-19 19:31:37 -07:00
Girish Ramakrishnan 58e4bd1077 Fix various linter issues 2020-10-19 15:54:26 -07:00
Girish Ramakrishnan 2c53dc9514 Change button color when update available 2020-10-17 08:50:48 -07:00
Girish Ramakrishnan ecf1852367 better filenames for backup configs 2020-10-15 16:44:26 -07:00
Johannes Zellner 57e8faa8ab Also fixup sso message display in app configuration 2020-10-15 16:51:17 +02:00
Johannes Zellner 7948d68ac7 Fixup sso message display in postinstall and info dialogs 2020-10-15 16:49:49 +02:00
Johannes Zellner 48f089e136 Reword the password/invite link UI bits 2020-10-14 11:28:28 +02:00
Girish Ramakrishnan 4432e65e8a Move the tips to be tooltips like the other buttons 2020-10-09 17:23:17 -07:00
Girish Ramakrishnan 10aded5de4 Fix typo 2020-10-09 17:14:56 -07:00
Johannes Zellner 5481a65ab1 Add refresh button to eventlog 2020-10-09 12:31:25 +02:00
Girish Ramakrishnan 75b867550b Run ack code 20 in parallel
only trigger refresh at the end of it all
2020-10-08 17:56:06 -07:00
Girish Ramakrishnan 23f1b0f584 Missed this wording 2020-10-08 11:16:40 -07:00
Girish Ramakrishnan 790b8bed42 Fix redirection wording 2020-10-08 11:15:42 -07:00
Johannes Zellner 1e35b621eb Show error in filemanager if upload fails 2020-10-08 16:05:24 +02:00
Girish Ramakrishnan b14828e8e1 Add stopped state 2020-10-06 13:02:33 -07:00
Johannes Zellner 4274b8f459 Immediately indicate if remote ssh is now enabled 2020-10-06 16:21:38 +02:00
Johannes Zellner 41e8bcd02f Add enableSshSupport option to support tickets 2020-10-06 16:02:02 +02:00
Girish Ramakrishnan 2fe86f9b8a robots: ensure trailing and leading whitespaces are preserved 2020-10-05 21:31:30 -07:00
Johannes Zellner 589f19f370 Make app bug report the default, this is what mostly happens 2020-10-05 15:10:23 +02:00
Girish Ramakrishnan 8e20db664f Pre-select app domain by default in redirection dropdown 2020-10-04 16:39:59 -07:00
Girish Ramakrishnan fdcd457ce1 Add link to forum 2020-09-30 09:41:20 -07:00
Girish Ramakrishnan 95516a2383 Update readme 2020-09-30 09:40:18 -07:00
Girish Ramakrishnan ba92b1e667 Keep things alphabetical 2020-09-29 14:52:11 -07:00
Johannes Zellner f3a159823a Mention why an app update cannot be applied and provide shortcut to start the app if stopped 2020-09-29 17:32:25 +02:00
Johannes Zellner 8388491e58 Remove version from footer 2020-09-29 16:41:00 +02:00
Johannes Zellner e87d206dda Show Cloudron version in settings -> updates 2020-09-29 16:38:31 +02:00
Johannes Zellner db4c8d92da Make the autoupdate disabled text explicit 2020-09-29 16:34:49 +02:00
Johannes Zellner daab4a95c2 Move services menu entry up 2020-09-29 15:24:24 +02:00
Girish Ramakrishnan 22b8b9b9bd lint 2020-09-28 16:10:55 -07:00
Johannes Zellner c87f3a8cb4 Give services panel a separate top-level view 2020-09-28 15:16:02 +02:00
Johannes Zellner 72118a0b66 Add app state filter 2020-09-26 17:50:23 +02:00
Girish Ramakrishnan 68573ceb18 unhide the volume UI 2020-09-24 14:38:34 -07:00
Johannes Zellner 510b88cd68 Make the splash default more fun, needs a minigame 2020-09-24 13:25:34 +02:00
Girish Ramakrishnan 490720e6a7 Add a splash page
part of cloudron/box#739
2020-09-23 22:14:29 -07:00
Girish Ramakrishnan 990f75dddc import: when importing filesystem backups, the input box is a path 2020-09-21 21:58:11 -07:00
Girish Ramakrishnan a3c6b82283 Fix exception when getStatus errored 2020-09-21 21:48:22 -07:00
Girish Ramakrishnan f5e0ff51f2 preserve sorting order when doing async queries 2020-09-16 16:03:14 -07:00
Girish Ramakrishnan f114a629f3 stash the length separately 2020-09-14 12:12:39 -07:00
Girish Ramakrishnan 5fca372ddf blocklist is now a text file in the backend 2020-09-14 12:00:47 -07:00
Johannes Zellner d9d1f13bf9 Ensure blocked ips are deduped and empty strings removed 2020-09-12 20:53:12 +02:00
Johannes Zellner 63b212bea5 Fix blocklist error form state handling 2020-09-12 19:13:10 +02:00
Girish Ramakrishnan 5a1e09936f Change step size to 1MB 2020-09-11 09:48:22 -07:00
Girish Ramakrishnan e21a504c35 we upload 3 parts in parallel 2020-09-10 08:30:59 -07:00
Johannes Zellner 3ba6c387e9 Update dependencies and xtermjs 2020-09-10 15:37:05 +02:00
Johannes Zellner 2c7238b2c9 Make logviewer timestamp sticky 2020-09-10 15:31:19 +02:00
Girish Ramakrishnan 92b9fc02fa Fix memory slider 2020-09-10 00:07:12 -07:00
Girish Ramakrishnan 576281990b Link to our docs and not external 2020-09-09 23:19:37 -07:00
Girish Ramakrishnan 6b7570df4e just call it re-configured 2020-09-09 22:36:57 -07:00
Girish Ramakrishnan b141db4776 mail location audit log 2020-09-09 22:31:57 -07:00
Girish Ramakrishnan 4cffcfff03 mail: move config eventlogs to box code 2020-09-09 22:24:38 -07:00
Girish Ramakrishnan 59ea292263 only reconfigure email apps when mail server relocated 2020-09-09 21:44:14 -07:00
Girish Ramakrishnan e0ca52b1da Disable changing location when task is active 2020-09-09 21:44:11 -07:00
Girish Ramakrishnan 0c9ea1e0f0 blocklist is only for owner 2020-09-09 20:28:26 -07:00
Girish Ramakrishnan c02cf0f5dc Fix doc links 2020-09-09 10:14:35 -07:00
Girish Ramakrishnan d0e2df5166 re-configure mail apps on mail fqdn change 2020-09-08 19:34:27 -07:00
Girish Ramakrishnan b9cda71413 adminFqdn -> mailFqdn 2020-09-08 15:18:46 -07:00
Johannes Zellner e008e44566 No need to mention logs in logviewer 2020-09-06 10:16:59 +02:00
Johannes Zellner c100539736 button group in logviewer looks wrong 2020-09-06 10:16:18 +02:00
Johannes Zellner 32aa3febf9 Do not linebreak loglines 2020-09-06 10:15:41 +02:00
Girish Ramakrishnan 1249b3b3e8 Put save and close together 2020-09-05 23:04:51 -07:00
Girish Ramakrishnan 18ba66afcc add linode singapore region 2020-09-02 19:35:02 -07:00
Girish Ramakrishnan 1000d88508 ovh: add sydney region 2020-09-02 19:30:55 -07:00
Girish Ramakrishnan e13cb1debd Fix placeholder text 2020-09-02 14:27:09 -07:00
Johannes Zellner 2c3c8f8c4a Show graph labels based on locale 2020-09-02 18:53:46 +02:00
Johannes Zellner b81196fa87 Update Chart.js to v2.9.3 2020-09-02 17:57:01 +02:00
Johannes Zellner c7291af970 Instead of random string for app icon invalidation use app version
This still leaves a potential issue, where an app gets updated using the
cli while not bumping the version and changing the icon, but maybe we
can ignore that for now in favor of the browser cache for 99% of the
cases
2020-09-02 15:14:46 +02:00
Johannes Zellner 92c3237552 Ensure mail location progress starts at 0 2020-09-02 14:12:38 +02:00
Girish Ramakrishnan 848e446b93 Explain what domain is 2020-09-01 21:49:38 -07:00
Johannes Zellner 2f96f565eb Use TASK_TYPES in backup view 2020-09-01 16:36:07 +02:00
Johannes Zellner 8fa58eb108 Show mail domain change task progress 2020-09-01 16:31:23 +02:00
Johannes Zellner 31947127d9 Add TASK_TYPE definitions to client.js 2020-09-01 16:31:09 +02:00
Johannes Zellner 2c7cfa1a93 Also add Filemanager button to logviewer 2020-09-01 15:18:42 +02:00
Johannes Zellner b856c4f995 Indent logviewer with 2 spaces since html 2020-09-01 15:17:33 +02:00
Johannes Zellner 497be710a7 Only provide save for filemanager editor 2020-09-01 12:39:02 +02:00
Girish Ramakrishnan d7287b5c3c require owner for firewall config 2020-08-31 22:55:30 -07:00
Girish Ramakrishnan 854010b823 warn user about block list 2020-08-31 22:12:33 -07:00
Girish Ramakrishnan 39f7a5be70 Add firewall UI 2020-08-31 21:45:56 -07:00
Girish Ramakrishnan dbc53b8d09 Remove blocked IPs
This will be implemented in the firewall level for now
2020-08-31 17:57:45 -07:00
Girish Ramakrishnan c4fe362a08 Typo 2020-08-31 15:28:28 -07:00
Girish Ramakrishnan f55ec5de9b Add note on backups in initial screen 2020-08-31 11:37:29 -07:00
Johannes Zellner b2279c9acc Make texteditor fullscreen and add saving without closing action 2020-08-31 17:46:26 +02:00
Girish Ramakrishnan b420d054ae show ldap login into in all the post install dialogs 2020-08-28 17:08:18 -07:00
Girish Ramakrishnan 566f0f7783 mail: add banner ui
part of cloudron/box#341
2020-08-24 10:36:24 -07:00
Girish Ramakrishnan ae24c1d968 Move the refresh functions 2020-08-22 19:34:06 -07:00
Girish Ramakrishnan 8ca344e3bf Various text changes 2020-08-22 16:43:17 -07:00
Girish Ramakrishnan 0458d2cb90 Fix mail eventlog to show the new events 2020-08-22 13:08:05 -07:00
Girish Ramakrishnan 7c2322e6e0 Fixup spam configuration UI 2020-08-22 13:01:25 -07:00
Girish Ramakrishnan 08abe4bff2 Add note on restart 2020-08-20 23:28:43 -07:00
Girish Ramakrishnan eb69c365fc Fix mail server location UI 2020-08-20 23:23:43 -07:00
Girish Ramakrishnan f6fef21bf7 Fixup route for setting max email size 2020-08-20 22:28:58 -07:00
Girish Ramakrishnan 4a1f8457cf Switch to the merged automatic update route 2020-08-19 22:30:48 -07:00
Girish Ramakrishnan 5eb5b952d5 Further clarification 2020-08-19 15:01:39 -07:00
Girish Ramakrishnan 8a375c6363 Add note on part size concurrency 2020-08-19 14:59:27 -07:00
Girish Ramakrishnan ac23b610bc Add upload part size slider 2020-08-19 14:56:41 -07:00
Johannes Zellner 5f8b141f62 Add stub mail settings section 2020-08-17 22:38:11 -07:00
Girish Ramakrishnan 517db50712 Hide concurrency settings for non-s3/gcs backup storage 2020-08-15 23:09:21 -07:00
Girish Ramakrishnan 6310a431dd caas: remove hyphenatedSubdomains support
this is not used since ages now
2020-08-15 18:35:51 -07:00
Girish Ramakrishnan 9996e9a6d7 Add help text for ptr record 2020-08-14 10:24:21 -07:00
Girish Ramakrishnan ddc211a8ea Looks for search string in app title as well 2020-08-14 09:39:39 -07:00
Girish Ramakrishnan 32f4f88b88 help text everywhere 2020-08-11 17:03:49 -07:00
Girish Ramakrishnan 45b3062ac6 Always init the concurrency values 2020-08-11 16:51:02 -07:00
Girish Ramakrishnan 03296b3195 Fix padding of sliders 2020-08-11 12:07:57 -07:00
Girish Ramakrishnan 97df39a16f add advanced section to tune backup settings 2020-08-11 09:16:09 -07:00
Girish Ramakrishnan 59cd6f6e93 Fix groups code to use listing API
the listing API now returns the members
2020-08-10 13:59:46 -07:00
Girish Ramakrishnan d4312507e2 Simplify wording 2020-08-10 13:11:10 -07:00
Girish Ramakrishnan 76950bdada remove superfluous wording 2020-08-10 13:08:53 -07:00
Girish Ramakrishnan 01b7bc96fa Fix layout of backup retention dialog 2020-08-10 13:03:59 -07:00
Girish Ramakrishnan efde15b848 backup: remind to not overlap with update schedule 2020-08-10 12:58:19 -07:00
Girish Ramakrishnan 941e0ba6c8 This deletes filters as well 2020-08-10 12:19:20 -07:00
Girish Ramakrishnan 3b818855dc Fix broken help link 2020-08-10 12:02:53 -07:00
Girish Ramakrishnan f73c8b00d4 global replace 2020-08-08 22:02:31 -07:00
Girish Ramakrishnan 08f116486a update showndown to 1.9.1
this has openLinksInNewWindow which is smart enough that internal links
open in same tab and external links open in new tab
2020-08-08 21:58:44 -07:00
Girish Ramakrishnan f6f5ae8578 show users name 2020-08-08 19:15:21 -07:00
Girish Ramakrishnan d82dde4b7f Add some $variables to the post install message
This way the post install messages can be better.

Removed it as a filter because I cannot figure how to pass args to it
2020-08-08 19:12:16 -07:00
Girish Ramakrishnan 91d4d95cb4 linter says the escapes are not needed 2020-08-08 17:58:48 -07:00
Girish Ramakrishnan b9973d69c3 SSO_MARKER is now standardized 2020-08-08 17:58:04 -07:00
Girish Ramakrishnan 8c8e363abc atleast is not a real word
thanks @rob
2020-08-05 10:12:13 -07:00
Girish Ramakrishnan aa240e8ee3 Remove "old" 2020-08-03 21:00:20 -07:00
Johannes Zellner cdaf9e1876 Fix typo for notification bell icon change 2020-07-31 09:25:40 +02:00
Johannes Zellner 1c8352ec56 Fontawesome SVG fonts don't play well with angular1
Essentially SVG fonts use JS to inject elements.
This does not work with ng-show/hide
2020-07-31 09:17:55 +02:00
Johannes Zellner 43ef7f088d Improve multiselect padding when item is not selected 2020-07-31 09:17:34 +02:00
Girish Ramakrishnan 28b4f66f86 wording 2020-07-30 11:48:40 -07:00
Johannes Zellner 4fb94ea162 Update xtermjs to latest v4.8.1 2020-07-30 14:39:30 +02:00
Johannes Zellner d24340f221 Update to fontawesome 5.14.0 and use svg fonts 2020-07-30 13:20:28 +02:00
Johannes Zellner 482cd123c0 Make notification a separate navbar item 2020-07-30 13:19:03 +02:00
Girish Ramakrishnan ab3abe7e5e Add a way to disable auto updates 2020-07-29 20:14:30 -07:00
Girish Ramakrishnan 31fbffb435 better wording 2020-07-29 16:51:12 -07:00
Girish Ramakrishnan 9a7f8bd861 Allow days/hours to be selected for auto update schedule 2020-07-29 16:10:29 -07:00
Girish Ramakrishnan 29c20cfcc4 rename variable 2020-07-29 15:24:10 -07:00
Girish Ramakrishnan b5c25bcaaa Fix typo in pattern 2020-07-29 12:01:00 -07:00
Girish Ramakrishnan 8abe0a174a Handle case where all days are to be selected 2020-07-29 09:27:55 -07:00
Girish Ramakrishnan 692abcd6de show backup days and hours 2020-07-28 23:09:25 -07:00
Johannes Zellner 03bdcc786e Show critical backup config warning directly in backup ui instead of notification 2020-07-28 18:08:57 +02:00
Johannes Zellner 6df2985e2a Remove wrong hand css class 2020-07-28 12:24:21 +02:00
Girish Ramakrishnan 05de8b54ec Add option to delete mails
Part of cloudron/box#720
2020-07-27 22:55:25 -07:00
Dustin Dauncey c0dad4f5a0 Update system.html 2020-07-27 22:29:22 -07:00
Dustin Dauncey 7ad425e399 Update system.html with a more accurate message on when to use the reboot function. 2020-07-27 22:29:22 -07:00
Johannes Zellner 836a3784cb Add missing mimer dependeny files 2020-07-27 11:48:00 +02:00
Girish Ramakrishnan 06d4aec850 Fix various links in README 2020-07-24 15:05:49 -07:00
Johannes Zellner 614674563a Show folders first 2020-07-23 15:01:50 +02:00
Johannes Zellner 349633c8da Better icon handling in filemanager 2020-07-23 12:22:00 +02:00
Johannes Zellner 7d4f617757 Support moving files across folders when renaming 2020-07-23 12:07:24 +02:00
Girish Ramakrishnan e82f17ab06 Show any settings save error 2020-07-22 18:09:44 -07:00
Johannes Zellner cb14592705 Make filemanager reload pickup the directory from hash 2020-07-22 21:41:32 +02:00
Johannes Zellner 77300d6858 Add burger button to also open context-menu 2020-07-22 21:38:39 +02:00
Johannes Zellner 38682e48d4 Open different mimetypes differently in filemanager 2020-07-21 16:27:51 +02:00
Johannes Zellner 1e5d28e2a2 Fix nav-bar in dark mode 2020-07-21 10:18:50 +02:00
Johannes Zellner ad86b4b1eb Fix mail domain listing in dark mode 2020-07-21 09:26:44 +02:00
Johannes Zellner 99927df991 Also ensure the admin link is not active if it shouldn't 2020-07-20 23:41:00 +02:00
Johannes Zellner 6661f21e2f Handle symlinks in filemanager 2020-07-18 19:26:18 +02:00
Girish Ramakrishnan 4ef963fe54 Don't let the user bypass 2FA by removing the 'setup2FA' in the url 2020-07-17 14:46:58 -07:00
Girish Ramakrishnan c87ddd5116 Use prettyByteSize instead of prettyDiskSize
this prevents 'not available yet' string for 0 size files
2020-07-17 14:25:00 -07:00
Girish Ramakrishnan 4f4df7d9fe appstore: fix ordering of apps
all apps: alphabetical
popular: based on ranking instead of installCount
New Apps: based on time only
Category: tag and then ranking
2020-07-17 14:22:47 -07:00
Girish Ramakrishnan 0043b3690a Make directory config UI consistent 2020-07-17 10:17:46 -07:00
Girish Ramakrishnan be6c34386d Always show the catch-all description text 2020-07-17 09:51:37 -07:00
Girish Ramakrishnan a8e9a71489 Add missing break 2020-07-17 09:32:32 -07:00
Girish Ramakrishnan 90f42fe6cd Fixup text in postinstall and info dialog 2020-07-16 15:43:30 -07:00
Johannes Zellner 6dd414fe7e Add mailbox restriction code 2020-07-16 18:51:29 +02:00
Johannes Zellner 4cb5e66ccb Make catchall premium 2020-07-16 18:14:42 +02:00
Girish Ramakrishnan 1fd4d772e4 Fixup mailbox count 2020-07-15 15:47:58 -07:00
Girish Ramakrishnan 3abdbdc7c9 Add info on what cleanup backups does 2020-07-15 15:10:44 -07:00
Johannes Zellner 6d6fba873f Use browser history to allow navigation 2020-07-15 14:48:29 +02:00
Johannes Zellner 6aa8602b96 Replace action buttons with context menu 2020-07-14 23:49:14 +02:00
Johannes Zellner 240272f7ce Cleanup console.log()s 2020-07-14 19:26:24 +02:00
Johannes Zellner 3d17a33c43 Do not rely on angular trying to parse everything in the response for filemanager GET 2020-07-14 17:17:43 +02:00
Johannes Zellner 6956cfa32d Try to figure out the file language for monaco 2020-07-14 16:41:40 +02:00
Johannes Zellner 3a54e662c2 Give monaco some time to settle the ui and add tooltips 2020-07-14 16:28:46 +02:00
Johannes Zellner 823cfca3c3 Support download links 2020-07-14 16:28:18 +02:00
Johannes Zellner 9da2484bab Chrome does not have dragexit event :-/ 2020-07-14 15:32:31 +02:00
Johannes Zellner 0b50d62ef3 Fix filedrop highlight for current folder 2020-07-14 15:28:08 +02:00
Johannes Zellner 343e8e90ba Scroll file lists inside the card 2020-07-14 14:03:40 +02:00
Johannes Zellner 02dcb013ef Clear drop target highlight 2020-07-14 00:53:11 +02:00
Girish Ramakrishnan e77d3f4fcc import and restore: add b2 provider
part of cloudron/box#508
2020-07-13 15:36:44 -07:00
Girish Ramakrishnan 7aff747b1c backups: add b2 provider
part of cloudron/box#508
2020-07-13 14:58:14 -07:00
Johannes Zellner e97f3032cc Make monaco work 2020-07-13 23:35:49 +02:00
Johannes Zellner ebabe29d8e Add monaco-editor resources 2020-07-13 18:58:22 +02:00
Johannes Zellner b690c9bc95 Add filemanager chown dialog 2020-07-13 18:30:29 +02:00
Johannes Zellner fd3034bacc Make normal files downloadable 2020-07-13 17:48:53 +02:00
Johannes Zellner 3bcef3d9c3 Fix file rename focus and initial selection 2020-07-13 17:05:01 +02:00
Johannes Zellner da54699815 Add drag'n'drop to filemanager 2020-07-13 15:41:10 +02:00
Johannes Zellner 6b64dd52b9 Remove console.log()s 2020-07-13 12:59:50 +02:00
Girish Ramakrishnan fb07dc2294 implement mandatory 2fa
part of #716
2020-07-10 13:10:07 -07:00
Johannes Zellner 779c3ba75b Add upload progress dialog 2020-07-10 19:15:33 +02:00
Johannes Zellner 4564e501d3 Add basic upload progress bar 2020-07-10 19:15:33 +02:00
Girish Ramakrishnan d271d2db57 Allow users to change avatar even if profile is locked 2020-07-10 09:45:02 -07:00
Johannes Zellner 46ed0ab49e For now just add a filemanager button in console section 2020-07-10 16:19:01 +02:00
Johannes Zellner 35dfea03da Show hint if folder is empty 2020-07-10 16:12:34 +02:00
Johannes Zellner ff5036a55b Handle filemanager error if app does not exist 2020-07-10 16:10:49 +02:00
Johannes Zellner 799892c220 Add footer and fixup main layout 2020-07-10 15:27:44 +02:00
Johannes Zellner 8b160cbbfd Share markdown angular filter via client.js 2020-07-10 15:20:53 +02:00
Johannes Zellner 48983879ab Improve new folder dialog 2020-07-10 15:11:09 +02:00
Johannes Zellner 2cecdd7f01 Add breadcrumb to filemanager 2020-07-10 15:01:56 +02:00
Johannes Zellner 4ebaa674c3 root is uid 0 2020-07-10 14:17:30 +02:00
Johannes Zellner fb637f61f3 Add folder upload hooks 2020-07-10 14:06:32 +02:00
Johannes Zellner 805e07e65f entry.filePath -> entry.fileName 2020-07-10 14:06:32 +02:00
Johannes Zellner 049a488e08 Implement file upload 2020-07-10 14:06:32 +02:00
Johannes Zellner afc90817cf Add file rename 2020-07-10 14:06:32 +02:00
Johannes Zellner 38f3e39258 Add directory creation 2020-07-10 14:06:32 +02:00
Johannes Zellner c674d679bd Add file removal functionality 2020-07-10 14:06:32 +02:00
Johannes Zellner 7c2ab4e5bd Initial filemanager view 2020-07-10 14:06:32 +02:00
Girish Ramakrishnan b86dff8601 Clarify what profile means 2020-07-09 21:56:01 -07:00
Girish Ramakrishnan a725fc7a0b Add directory config ui 2020-07-09 21:51:51 -07:00
Girish Ramakrishnan fbe3545153 disable profile editing based on directory config
part of cloudron/box#704
2020-07-09 17:18:41 -07:00
Girish Ramakrishnan 50b528260c account setup: Make fields readonly when profile is locked
part of cloudron/box#704
2020-07-09 15:36:52 -07:00
Girish Ramakrishnan d2ece2b7f9 email is not used in setup account 2020-07-09 14:53:14 -07:00
Girish Ramakrishnan f71e47aac7 Update license year 2020-07-09 09:02:26 -07:00
Johannes Zellner 8d9c4b0476 Fix eventlog crash 2020-07-06 14:53:52 +02:00
Johannes Zellner ea1a62c3ef Finish initial round of dark moder overrides 2020-07-06 12:31:15 +02:00
Girish Ramakrishnan 2e5e459094 mail: add pagination to mailboxes UI 2020-07-05 18:21:52 -07:00
Girish Ramakrishnan f51eccdef7 mail: Add pagination to lists UI 2020-07-05 11:55:17 -07:00
Girish Ramakrishnan a9a9af9ef7 s3: add region field to import and restore UI
for s3 v4 compat providers like yandex

fixes cloudron/box#713
2020-07-05 10:58:20 -07:00
Girish Ramakrishnan 200122deee get all mailing lists in a single shot for now 2020-07-05 10:49:30 -07:00
Johannes Zellner 4170be7f34 Also add dark mode to modals and appstore view 2020-07-02 23:22:14 +02:00
Johannes Zellner 0be5a292c4 Initial css overrides for dark mode 2020-07-02 23:15:14 +02:00
Girish Ramakrishnan 4555586254 Login Page -> Admin Page 2020-07-01 17:05:15 -07:00
Girish Ramakrishnan 173531b767 Add note on updates 2020-07-01 14:29:02 -07:00
Johannes Zellner 412082d3ef Add univention external ldap provider to selection 2020-07-01 16:11:34 +02:00
Johannes Zellner 3b51b84308 Fix typo to show correct self signed cert support for external ldap 2020-07-01 14:59:50 +02:00
Johannes Zellner d6d1ad98e4 Ensure info dialog collapse starts with the closed stated 2020-06-30 10:34:07 +02:00
Johannes Zellner e8560e6905 Ensure we always order apps by fqdn 2020-06-30 10:26:00 +02:00
Girish Ramakrishnan ccaabd6f06 Fix text for custom apps 2020-06-29 19:43:45 -07:00
Girish Ramakrishnan 9ba79cfb32 Fix infinite loop when postinstall has <br/> in it 2020-06-29 19:39:26 -07:00
Johannes Zellner 62e0e34e12 Do not hide info button for custom apps but show note about that in the dialog 2020-06-29 16:27:50 +02:00
Johannes Zellner 2d50ae4b00 Show self-signed error for external ldap setup 2020-06-26 15:18:25 +02:00
Johannes Zellner 11b567391c Allow self-signed cert for external ldap 2020-06-25 17:54:55 +02:00
Johannes Zellner e50e488c8a Improve how sftp is mentioned in access controls 2020-06-25 10:36:25 +02:00
Girish Ramakrishnan 2a9d32309e Fix the app info dialog 2020-06-24 23:06:12 -07:00
Johannes Zellner de0370011c Support old default autoupdate pattern 2020-06-24 12:21:27 +02:00
Girish Ramakrishnan 4a844e582e Fix wording of subscription dialog 2020-06-23 17:25:27 -07:00
Girish Ramakrishnan d36aad4adc polish the wording 2020-06-23 09:49:11 -07:00
Girish Ramakrishnan 11240b6bbb improve wording a bit 2020-06-23 09:06:47 -07:00
Johannes Zellner b52d3231e4 Add support for special app login page like wordpress has 2020-06-23 12:50:44 +02:00
Johannes Zellner c9ba4ba50a Add nfs storage provider 2020-06-22 15:51:18 +02:00
Johannes Zellner 4db07b5254 Fix form error handling for mount points 2020-06-22 15:44:59 +02:00
Johannes Zellner 83688f9fd8 Add link to cifs/sshfs docs 2020-06-22 15:43:19 +02:00
Johannes Zellner 7a384846f8 Add MSP as purpose option 2020-06-19 22:04:41 +02:00
Girish Ramakrishnan 923f7f3aa8 Do not count stopped apps for memory use 2020-06-18 10:25:21 -07:00
Johannes Zellner 8e0cfcda88 Keep subscription setup screens consistent 2020-06-18 17:59:59 +02:00
Johannes Zellner cd90af35a1 Fix active category selection if appstore search is empty 2020-06-18 17:13:20 +02:00
Johannes Zellner d2ac8536b3 402 is a license error and also returned if no appstore account setup 2020-06-18 14:50:24 +02:00
Johannes Zellner 5100a28ff1 Remove unused features 2020-06-18 14:34:06 +02:00
Johannes Zellner 0830e9293d Disable domain remove button for dashboard domain 2020-06-18 14:06:34 +02:00
Johannes Zellner 4a981cd2e2 Show subscription setup for domain adding 2020-06-18 13:56:37 +02:00
Johannes Zellner b1d956f7bf Show subscription setup dialog for more users 2020-06-18 12:57:12 +02:00
Johannes Zellner 75b2c7236a Use the same pattern for subscription setup in settings and users view 2020-06-18 12:29:25 +02:00
Johannes Zellner c8278e7b24 Add subscription setup link to paid branding feature 2020-06-18 12:16:16 +02:00
Girish Ramakrishnan dbf6520860 more newlines 2020-06-17 20:37:28 -07:00
Johannes Zellner e593e48d40 Remove debug console.log 2020-06-17 13:16:27 +02:00
Johannes Zellner 39bccea953 Simplify footer branding html 2020-06-17 13:15:52 +02:00
Johannes Zellner 98f62eba9d Improve error case layout in setup 2020-06-17 12:43:04 +02:00
Girish Ramakrishnan 4e65728979 Better text 2020-06-16 12:31:29 -07:00
Johannes Zellner b58ca1506e Add more information to dnssetup screen 2020-06-16 15:28:58 +02:00
Johannes Zellner e0334b3ac8 Fix oversight to set correct view after admin setup 2020-06-16 13:23:32 +02:00
Johannes Zellner 0fa230527c Improve text layout in setupdns 2020-06-16 13:14:56 +02:00
Johannes Zellner 13c5085cb1 Fix scroll position in appstore when switching categories 2020-06-16 11:37:10 +02:00
Johannes Zellner 300a3919ab Fix appstore case without apps listed 2020-06-16 11:20:28 +02:00
Johannes Zellner e65d946633 Swap logs and info button 2020-06-16 11:08:37 +02:00
Johannes Zellner 412bd1c1f4 Make nginx logs available in log viewer 2020-06-15 17:30:32 +02:00
Johannes Zellner 1d15fd3178 Allow to specify region for custom s3 v4 compat 2020-06-15 16:51:56 +02:00
Johannes Zellner cb94737519 Fix bug where location change makes the app temporarily disappear 2020-06-14 16:31:06 +02:00
Johannes Zellner 01683e9383 Another attempt to fix app polling
Using taskId only to update app info leads to various outdated states if
an app task has finished. We need to also update once the task has
finished at least once. So instead of individual app polling, we can
simply rely on the all apps listing api, which we poll anyways and not
rely on the restricted properties in the main apps view.

The app configure will fetch the updated full properties now, not
relying on the Clients internal caching
2020-06-14 13:35:30 +02:00
Johannes Zellner 1960969325 Fix scrollbar quirk for chrome 2020-06-13 23:11:49 +02:00
Johannes Zellner b49721f514 Fix toolbar with layout 2020-06-13 23:11:17 +02:00
Johannes Zellner 6876e82d64 Highligh currently selected category button instead of showing the title 2020-06-13 23:01:48 +02:00
Johannes Zellner 15a7beae57 Show selected category in dropdown button 2020-06-13 22:56:24 +02:00
Johannes Zellner 297a635613 'Recently updated' becomes 'popular' used to be 'featured' 2020-06-13 22:47:10 +02:00
Johannes Zellner e0778c52e8 Fix appstore search margin on mobile 2020-06-13 22:43:35 +02:00
Johannes Zellner e09b9964be Do not overlay the scrollbar 2020-06-13 22:39:37 +02:00
Johannes Zellner 1d27926220 Shorten the appstore search placeholder text 2020-06-13 22:22:44 +02:00
Johannes Zellner 7427d549cc Make the appstore view not so wide 2020-06-13 22:22:25 +02:00
Johannes Zellner 37aeb3f713 Fix border radius in dropdown 2020-06-13 22:17:38 +02:00
Johannes Zellner 7bf06da9f8 Don't add 1sec delay for search input focus 2020-06-13 22:16:16 +02:00
Johannes Zellner b6157d58c8 Show if no app passwords are created 2020-06-12 15:46:34 +02:00
Johannes Zellner 4767fe5515 Fix z-index of appstore view to not overlay the menu 2020-06-12 15:44:13 +02:00
Johannes Zellner 750acdbcd7 Swap navbar icons to make sense 2020-06-12 15:41:23 +02:00
Johannes Zellner 29543fbc85 Use 'My Apps' everywhere 2020-06-12 15:34:54 +02:00
Johannes Zellner 05913d0ae0 Rename owner role to superadmin in UI bits 2020-06-12 15:20:18 +02:00
Johannes Zellner a31617fcb0 Rework the appstore view 2020-06-12 15:02:41 +02:00
Johannes Zellner ec71b622fc Ensure action items are aligned on mobile 2020-06-11 19:33:59 +02:00
Johannes Zellner 3dd659639d Add action item tooltips 2020-06-11 19:32:23 +02:00
Johannes Zellner 4aca2b64b9 Just show the rendered postinstall message as docs in info dialog 2020-06-11 15:32:24 +02:00
Johannes Zellner 4c2c27c686 move logs button into app grid 2020-06-11 15:24:18 +02:00
Johannes Zellner 429f45a09a add info dialog for apps 2020-06-10 18:00:50 +02:00
Johannes Zellner 886c668107 Show default memory requirement in app install 2020-06-10 11:31:29 +02:00
Johannes Zellner c0df62cd5b Give more info in dns setup what is happening with the domain 2020-06-10 11:28:47 +02:00
Johannes Zellner a8e6d727fa Add logic for email setup and invite setup forms 2020-06-09 15:39:27 +02:00
Johannes Zellner ccf1c78cbb Add ability to develop the setup screen more easily 2020-06-09 15:03:35 +02:00
Johannes Zellner 4e25688dd9 We always require owner email 2020-06-09 14:58:03 +02:00
Johannes Zellner 3378bf7a1e Remove provider from setup 2020-06-09 14:53:43 +02:00
Johannes Zellner 2bbafb5604 Remove unused pre-fill logic in setup 2020-06-09 14:53:19 +02:00
Girish Ramakrishnan 1e82774460 set poll frequency same as the apps.js 2020-06-08 20:26:25 -07:00
Girish Ramakrishnan dce865c3cb only fetch app when there is an active task
fixes cloudron/box#677
2020-06-08 18:01:19 -07:00
Girish Ramakrishnan 81bf84b50a re-use existing progress and message properties
now, when we go back to the app grid, it reflects immediately
2020-06-08 17:54:50 -07:00
Girish Ramakrishnan 94b6f5bffd Call postProcess in getApps 2020-06-08 17:20:18 -07:00
Johannes Zellner 5440a3b62b Ensure we send the info also for cifs 2020-06-08 18:00:04 +02:00
Johannes Zellner 24737382f9 Add CIFS storage backend 2020-06-08 17:52:56 +02:00
Johannes Zellner 5fa3215a4d Ensure additional group ldap settings are shown 2020-06-08 14:50:32 +02:00
Girish Ramakrishnan 105141be53 show warning for unstable updates
part of cloudron/box#698
2020-06-05 17:07:33 -07:00
Johannes Zellner e19edcb67a Do not crash when retention policy is unknown to the dashboard code 2020-06-05 14:35:34 +02:00
Johannes Zellner be0b61a628 Fix backup location display for sshfs 2020-06-05 13:03:16 +02:00
Johannes Zellner 8d79244068 Reorder backup provider list 2020-06-05 12:48:27 +02:00
Johannes Zellner 8ee66d3abf Add sshfs backup configuration 2020-06-05 12:47:33 +02:00
Johannes Zellner fb94416b1b Give more information about ldap sync 2020-06-05 08:59:04 +02:00
Johannes Zellner 70a925b416 Handle ldap groups in group edit form 2020-06-05 08:18:40 +02:00
Johannes Zellner 959f245ce4 Show ldap indicator for groups 2020-06-04 14:11:05 +02:00
Johannes Zellner b3eb650315 Allow to enable/disable group sync 2020-06-04 12:30:31 +02:00
Johannes Zellner bdf7da6ef6 Mention that ldap sync is not automatic 2020-06-04 11:01:18 +02:00
Johannes Zellner 36d49b8217 Refresh 20 apps in parallel 2020-06-03 23:38:00 +02:00
Johannes Zellner 18ac61e8ab custom asyncForEach() is gone 2020-06-03 23:17:06 +02:00
Johannes Zellner b524da23d5 custom asyncForEachParallel() is gone 2020-06-03 23:11:44 +02:00
Johannes Zellner eeac846f5a custom asyncSeries() is gone 2020-06-03 23:08:05 +02:00
Johannes Zellner 0410ba51ca Add a proper async library 2020-06-03 22:59:17 +02:00
Johannes Zellner ca3bf6fe5c Add a way to specify LDAP group related configs 2020-06-03 22:12:50 +02:00
Johannes Zellner 4353a05350 Just accept all image types for profile pictures
This works as we render things on the browser into a canvas which will
be stored as png on the server
2020-06-02 15:25:29 +02:00
Johannes Zellner d2a3bb7339 Accept all image types for cloudron avatar 2020-06-02 15:14:36 +02:00
Johannes Zellner 589ee2d0c5 Always use binary byte units 2020-06-02 14:34:38 +02:00
Girish Ramakrishnan 2178dcc963 Handle already exists
part of cloudron/box#688
2020-05-30 13:33:17 -07:00
Girish Ramakrishnan f18fdd4a46 Match default app auto-update pattern with box code 2020-05-30 10:47:00 -07:00
Girish Ramakrishnan 4352d9c698 Add note about triggering backup before stopping 2020-05-28 13:19:33 -07:00
Girish Ramakrishnan 494884595c do not allow backup, import, update in stopped state 2020-05-28 12:15:29 -07:00
Girish Ramakrishnan b17db02f9d Remove duplicate taskId check 2020-05-28 11:54:56 -07:00
Girish Ramakrishnan 0f33a6b34b Fix display of non-appstore apps 2020-05-27 22:31:10 -07:00
Girish Ramakrishnan 231dfe70d0 remove broken disk graphs 2020-05-27 22:24:10 -07:00
Girish Ramakrishnan 79eecd8b3e OVH requires region to be set
https://docs.ovh.com/gb/en/public-cloud/getting_started_with_the_swift_S3_API/#configure-aws-client
2020-05-27 18:11:28 -07:00
Girish Ramakrishnan ca09f64c12 force path style to true for minio
part of cloudron/box#680
2020-05-27 17:50:23 -07:00
Girish Ramakrishnan dea1f01998 Put some ordering 2020-05-27 09:34:04 -07:00
Girish Ramakrishnan 8cfae92c24 Keep the app backup list concise
if you have even more than 10 apps, the dialog overflows and makes for bad
screenshots...
2020-05-27 09:21:16 -07:00
Johannes Zellner 989a5ba685 Fix docs link to resurrect uninstalled apps 2020-05-27 13:38:43 +02:00
Girish Ramakrishnan a9e49d98fd Wait for sometime to refresh mail domains 2020-05-26 17:02:01 -07:00
Johannes Zellner f66d4e34d6 Bring back backupId clipboard logic 2020-05-25 21:47:58 +02:00
Johannes Zellner 989820183c Remove unused clipboard function 2020-05-25 21:47:10 +02:00
Girish Ramakrishnan 53f0e6c7d3 Fix regression in import UI 2020-05-24 18:44:42 -07:00
Girish Ramakrishnan 1608faecea Make min period as 12 hours
because we only collect disk data twice a day
2020-05-23 12:40:41 -07:00
Girish Ramakrishnan 4260082726 rename variable to avoid name conflict 2020-05-22 14:52:23 -07:00
Girish Ramakrishnan ca573dec91 hide the ruler 2020-05-22 12:05:23 -07:00
Johannes Zellner 3e252e1fd8 app disk usage is only collected twice a day 2020-05-22 19:48:18 +02:00
Johannes Zellner 7adc153e57 Also add swap to apps memory graph 2020-05-22 18:04:33 +02:00
Johannes Zellner ae105d9f83 Fixup app disk usage graphs 2020-05-22 17:16:37 +02:00
Johannes Zellner 87c895bd76 Show graph minutes, since we now have a smaller resolution 2020-05-22 16:33:27 +02:00
Johannes Zellner 034b2b2ddd Add backup details dialog
When a backup contains many apps, displaying them in the main backup
list is confusing and hides most apps
2020-05-22 13:48:29 +02:00
Girish Ramakrishnan fb5a789f55 1 monthly does not make much sense 2020-05-21 14:09:06 -07:00
Johannes Zellner 2b36a2f8cb Fix busy state for automatic updates and backups 2020-05-20 12:16:35 +02:00
Johannes Zellner d2a81ce907 Move retention and backup schedule interval into a separate settings dialog 2020-05-19 16:13:20 +02:00
Johannes Zellner 1f0b0d7bd1 Add all wasabi regions 2020-05-19 14:52:42 +02:00
Girish Ramakrishnan 735527a0f0 rework the updates ui to show the app id
browser are hiding the URL bar and it's becoming harder to get to that id
2020-05-18 14:57:24 -07:00
Girish Ramakrishnan 4dc034dd5e better redis label 2020-05-18 14:57:13 -07:00
Girish Ramakrishnan 4bfe4079cc Show enabled/disabled with appropriate class 2020-05-17 09:11:19 -07:00
Girish Ramakrishnan 66eff3a020 Add save/restore backup config to app view 2020-05-16 11:19:47 -07:00
Girish Ramakrishnan 401c561238 Fix spacing in restore view 2020-05-16 10:32:33 -07:00
Girish Ramakrishnan 606fe87ca0 backups: show the app info in contents 2020-05-16 09:47:00 -07:00
Girish Ramakrishnan f4775cc17c eventlog: handle update error 2020-05-15 21:37:27 -07:00
Girish Ramakrishnan a2e941970a Show endpoint 2020-05-15 16:05:30 -07:00
Girish Ramakrishnan c2ed909818 fixes to backups view 2020-05-15 12:48:54 -07:00
Johannes Zellner c38c440e63 Do not throw exception if no app graph data is yet available 2020-05-15 11:49:02 +02:00
Johannes Zellner 29b0785594 Fix cleanup backup button style
Sorry for messing with the btn style names, this grew
2020-05-15 11:41:55 +02:00
Johannes Zellner e15dcd41db Fix documentation links in restore view 2020-05-15 11:40:41 +02:00
Girish Ramakrishnan 6528461873 Add backup listing UI 2020-05-14 22:42:41 -07:00
Girish Ramakrishnan a8f5b5d4e4 Change label to MB 2020-05-14 21:56:22 -07:00
Girish Ramakrishnan be489744c9 Add some retention policies 2020-05-14 21:36:22 -07:00
Girish Ramakrishnan cd0b7ed3d2 rename to keepWithinSecs 2020-05-14 16:45:52 -07:00
Girish Ramakrishnan 3ebc5c6b9d retentionSecs is now retentionPolicy 2020-05-14 16:41:55 -07:00
Girish Ramakrishnan 66ada600b7 rename retentionSecs to retentionPolicy 2020-05-14 16:27:06 -07:00
Girish Ramakrishnan 4871d5df9d hide the binds ui for this release 2020-05-14 16:09:59 -07:00
Johannes Zellner 7088e6682b Add button to upload and pre-fill backup config 2020-05-15 00:32:49 +02:00
Johannes Zellner babe0adffb Remove secret values and add encryption flag in restore config json 2020-05-14 23:19:17 +02:00
Johannes Zellner 8f0a76ecef Make SECRET_PLACEHOLDER available globally 2020-05-14 23:04:19 +02:00
Girish Ramakrishnan 23607c303c typo 2020-05-13 22:37:11 -07:00
Girish Ramakrishnan 884b7062c9 rename version to packageVersion 2020-05-13 21:54:52 -07:00
Johannes Zellner 07650d424a Show a bit more explanation on the system memory graph 2020-05-14 00:01:42 +02:00
Johannes Zellner 218ec9c678 Plot app memory against the apps memory limit 2020-05-13 23:38:32 +02:00
Johannes Zellner 8b7c3308b3 Remove noisy dots in graphs 2020-05-13 23:35:14 +02:00
Johannes Zellner ca9528fa4e Show app memory in system view 2020-05-13 23:34:14 +02:00
Johannes Zellner aef625ba31 Make it explicit what the graphs show in which units 2020-05-13 23:11:30 +02:00
Johannes Zellner e5c8f2caec Fixup disk graph summary 2020-05-13 22:53:51 +02:00
Johannes Zellner 5c06305f85 Remove unnecessary graphs header and dim top actions 2020-05-13 21:44:26 +02:00
Johannes Zellner 428893d5c5 Actually use cpu values in system graphs 2020-05-13 21:41:16 +02:00
Johannes Zellner fc7277a542 Only show redis services line if we even have a redis 2020-05-13 20:45:03 +02:00
Johannes Zellner c8c6b15285 Rework the system view layout 2020-05-13 20:41:56 +02:00
Girish Ramakrishnan 0a987bdec9 show lock for encrypted backups 2020-05-13 00:03:54 -07:00
Girish Ramakrishnan ecc4fee84e restore UI fixes for encrypted backups 2020-05-12 22:30:43 -07:00
Girish Ramakrishnan 4802ecfc29 Move the download config down 2020-05-12 21:59:01 -07:00
Girish Ramakrishnan 436f415d9f Add space in save button 2020-05-12 21:43:35 -07:00
Girish Ramakrishnan 164480834a do not reset password and other settings on provider change 2020-05-12 21:41:35 -07:00
Girish Ramakrishnan 68642e056c Show error message in app view 2020-05-12 21:34:44 -07:00
Girish Ramakrishnan 9033c6e1d4 user param is not needed 2020-05-12 21:30:57 -07:00
Girish Ramakrishnan 89fc6feb5f password is not stored 2020-05-12 21:30:52 -07:00
Johannes Zellner 80dc9568ce Remove graphs page 2020-05-13 01:15:04 +02:00
Johannes Zellner 5774a7893f Improve app graph layout 2020-05-13 01:12:13 +02:00
Johannes Zellner abd9ea9ec5 Add memory and disk graphs to app view 2020-05-13 00:42:34 +02:00
Girish Ramakrishnan 8799882f09 show warning only if location or format changed 2020-05-12 14:59:06 -07:00
Girish Ramakrishnan f85a4878de rename backup key to password 2020-05-12 14:53:37 -07:00
Johannes Zellner ae87213105 Show hint about required subscription for app update 2020-05-11 23:14:19 +02:00
Johannes Zellner 33bd86a2c7 Show larger app configure icon on mobile 2020-05-11 12:01:01 +02:00
Girish Ramakrishnan 2092ae22dc redis: show app fqdn instead of location 2020-05-07 09:31:31 -07:00
Johannes Zellner aa9317069a Group redis services and have them collapsed 2020-05-05 16:36:52 +02:00
Girish Ramakrishnan a31ea92649 Add a UI for binds 2020-05-02 11:07:36 -07:00
Girish Ramakrishnan b8f18bdec2 Add OVH Object Storage regions 2020-04-29 13:13:01 -07:00
Johannes Zellner 704977d5f6 Avoid some flickering of apps ui while loading 2020-04-28 15:52:04 +02:00
Johannes Zellner 0757c20d59 Show inline text with backup config downlaod link to avoid prominent button 2020-04-21 11:26:52 +02:00
Girish Ramakrishnan fa08847d6d Query aliases for each mailbox 2020-04-20 19:18:11 -07:00
Girish Ramakrishnan f91f08628a Better variable name 2020-04-20 16:35:52 -07:00
Girish Ramakrishnan 9ebf6b06dd mail: implement aliases across domains
Part of #577
2020-04-20 16:07:23 -07:00
Johannes Zellner 357d5e46a3 Add backup config download button 2020-04-20 18:21:35 +02:00
Girish Ramakrishnan c0f5526801 Simple add a used label for disks that contains nothing we monitor 2020-04-18 23:02:16 -07:00
Girish Ramakrishnan 861204e442 sort returns compare value and not bool 2020-04-18 22:56:12 -07:00
Girish Ramakrishnan eb90b614ea disks: busy flag 2020-04-18 22:48:09 -07:00
Girish Ramakrishnan d087ed2349 graph query exceeeds param limit
node.js has some built-in http header limit. when this gets exceeded,
it terminates the connection and all the queued queries fail as well
2020-04-18 21:25:10 -07:00
Girish Ramakrishnan 6ee7e75465 do not popup error dialogs 2020-04-18 18:09:54 -07:00
Girish Ramakrishnan c2b80d7aba show icon for list 2020-04-18 17:39:13 -07:00
Girish Ramakrishnan a95e8633cd mail list: add members only checkbox 2020-04-17 17:55:07 -07:00
Johannes Zellner e3adbbe000 Only show subscription setup dialog when coming from free 2020-04-14 18:38:59 +02:00
Johannes Zellner eef360673b Also hide the app header bits to avoid empty ui fragments while loading 2020-04-12 13:20:01 +02:00
Girish Ramakrishnan 36e298c758 check for updates wants more space 2020-04-11 17:46:19 -07:00
Girish Ramakrishnan 275157f27b Show logs link when updater has error 2020-04-11 17:44:04 -07:00
Girish Ramakrishnan e776deaa3f Add note on Ext4/NFS mounts only 2020-04-09 15:49:47 -07:00
Johannes Zellner 4fc8e9b45e Ensure disable state for all form elements in backup import 2020-04-09 13:15:26 +02:00
Johannes Zellner fe41eec7c5 Fix spacing on import button in app view 2020-04-09 13:13:14 +02:00
Johannes Zellner d1d1d22734 Ensure we only show the tabs and content when app is loaded 2020-04-08 12:56:57 +02:00
Girish Ramakrishnan da8b76957a sort disk contents by usage 2020-04-03 10:41:04 -07:00
Girish Ramakrishnan 305f9fd1cf show apps with automatic backups disabled 2020-04-03 10:36:51 -07:00
Girish Ramakrishnan cd2a94ddb8 typo in variable name 2020-04-03 09:56:38 -07:00
Johannes Zellner a2df4db504 Parse task creationTime also as utc 2020-04-02 12:19:42 +02:00
Girish Ramakrishnan b7740a4758 do not count reserved as used 2020-04-01 22:15:03 -07:00
Girish Ramakrishnan 62c24de5c4 don't say ubuntu
https://forum.cloudron.io/topic/2228/what-type-area-of-data-makes-up-other-in-disk-usage/4
2020-04-01 18:39:05 -07:00
Girish Ramakrishnan 5ed3e67b76 graphs: ubuntu is only on the root mount point 2020-04-01 16:56:56 -07:00
Girish Ramakrishnan c7f2314a15 add note that memory is 1024 based 2020-04-01 16:42:20 -07:00
Girish Ramakrishnan 420c7ebd67 Fixup mail sizes to be 1000 and not 1024 2020-04-01 16:29:10 -07:00
Girish Ramakrishnan b93b1a6eec Fix prettyDiskSize to use 1000 instead of 1024 2020-04-01 16:26:47 -07:00
Girish Ramakrishnan 7d52be6e99 system: setError is not defined 2020-03-31 18:47:19 -07:00
Girish Ramakrishnan 9b1f0e394a set busy to false on error 2020-03-31 17:45:34 -07:00
Girish Ramakrishnan 1b0cb5d455 remove API calls to add/remove mail domain separately
part of cloudron/box#669
2020-03-31 10:59:01 -07:00
Girish Ramakrishnan 9b79d59d93 Add API token note 2020-03-30 22:37:25 -07:00
Girish Ramakrishnan 3e12316ea1 better wording from rob 2020-03-30 22:34:47 -07:00
Johannes Zellner 1b38c0111f Add turn to logviewer 2020-03-30 18:43:43 +02:00
Girish Ramakrishnan 5542393eb5 branding: fix login page title 2020-03-28 22:59:07 -07:00
Girish Ramakrishnan ad48bc0ee8 mail: refresh in the background 2020-03-28 17:48:11 -07:00
Girish Ramakrishnan ba0e5d0b59 query 1000 aliases and mailboxes
we don't handle pagination yet. it's not needed
2020-03-28 17:35:53 -07:00
Girish Ramakrishnan 1c5ff88e3c Use space instead of command for tag-input
this makes sure that email aliases wrap. if we used comma, it does not wrap
2020-03-28 16:46:19 -07:00
Girish Ramakrishnan bf7d4a550e ftp apps can be set a per-app password
this is useful for use in ftp clients
2020-03-26 21:50:44 -07:00
Girish Ramakrishnan 324bc763fc mail eventlog is owner only 2020-03-26 18:56:32 -07:00
Girish Ramakrishnan f9fb2ca3a1 Fixup users filter 2020-03-26 18:32:49 -07:00
Girish Ramakrishnan b5eac7c91b email: add type filter to eventlog 2020-03-25 22:07:01 -07:00
Johannes Zellner 3c858ca0fd Only show the progress bar when task is actually active 2020-03-26 00:22:46 +01:00
Johannes Zellner da9d634b83 Remove already hidden task stop button 2020-03-26 00:19:50 +01:00
Johannes Zellner 128704400f Hook up task cancel action 2020-03-26 00:19:06 +01:00
Johannes Zellner a3594322bd Show task cancel button after 5min 2020-03-26 00:16:23 +01:00
Girish Ramakrishnan fe4b3d5f1d branding: use separate css 2020-03-25 08:56:56 -07:00
Johannes Zellner da08da2b54 Use footer info from settings to show empty on default 2020-03-25 07:00:53 +01:00
Johannes Zellner 5deb5f79bd Ensure textareas don't overflow horizontally on resize 2020-03-25 06:58:38 +01:00
Johannes Zellner 9f0d694f0a Prevent angular crash when adding already existing tag 2020-03-25 06:51:42 +01:00
Johannes Zellner 4153fb7d1e Use theme for tag-input tags 2020-03-25 06:51:42 +01:00
Johannes Zellner 6994ec0f03 Allow to click anywhere in tag-input for focus 2020-03-25 06:51:42 +01:00
Johannes Zellner e1af60cfa9 Fix tag-input with flex layout to better overflow 2020-03-25 06:51:42 +01:00
Johannes Zellner 7bcec61e6d Make tag-input support dirty handling on tag deletion 2020-03-25 06:51:42 +01:00
Girish Ramakrishnan dde287f05d avatar size is 128px 2020-03-24 13:04:12 -07:00
Girish Ramakrishnan 27fc37e55c descriptive mail eventlog 2020-03-20 13:05:58 -07:00
Girish Ramakrishnan ad901760f6 move footer to separate section 2020-03-19 23:28:22 -07:00
Girish Ramakrishnan 973029865e Branding UI changes 2020-03-19 22:59:30 -07:00
Girish Ramakrishnan 52e4fedd16 fieldset must be inside form 2020-03-19 19:26:19 -07:00
Girish Ramakrishnan b81ba49370 CPU shares is a percent 2020-03-19 17:15:08 -07:00
Girish Ramakrishnan 39a0f93f69 add cpuShares 2020-03-19 17:11:51 -07:00
Girish Ramakrishnan 53cb83eacc eventlog: add start/stop/restart logs 2020-03-19 17:05:50 -07:00
Girish Ramakrishnan b307d278b0 mailboxName should have lower priority than location change 2020-03-19 16:48:46 -07:00
Girish Ramakrishnan 14348eba38 Move name and logo into branding page 2020-03-18 22:11:33 -07:00
Girish Ramakrishnan cead5b74ae if ldap is noop, show a message 2020-03-18 21:44:55 -07:00
Girish Ramakrishnan 2e2a945f7c add custom apps link 2020-03-18 21:25:19 -07:00
Girish Ramakrishnan 0e3ae2b450 add new branding view 2020-03-18 17:53:50 -07:00
Girish Ramakrishnan 19e2df65ca backups: hide configure button for non-owners 2020-03-18 17:24:20 -07:00
Girish Ramakrishnan 565d715a66 remove extra break 2020-03-18 13:43:15 -07:00
Girish Ramakrishnan abe6f55aa6 gcdns: fix add/save 2020-03-17 22:51:47 -07:00
Girish Ramakrishnan c278d0c5d4 bring back reboot button 2020-03-17 22:26:01 -07:00
Girish Ramakrishnan a7e2c74158 more linode warnings 2020-03-13 12:05:47 -07:00
Girish Ramakrishnan d84900d601 linode: dns frontend 2020-03-13 11:32:30 -07:00
Girish Ramakrishnan fdda28d67f lint 2020-03-12 17:07:17 -07:00
Johannes Zellner e00dccaa7c Set autofocus in setupdns view 2020-03-09 16:08:55 -07:00
Johannes Zellner 08c1a33362 Ensure tabindex works better in setupdns 2020-03-09 16:07:10 -07:00
Johannes Zellner 31e3c8da30 Update feature test comments 2020-03-09 14:19:12 -07:00
Girish Ramakrishnan 62a6095ed7 remove obsolete mail events 2020-03-09 13:49:22 -07:00
Johannes Zellner 4c2c0e2b95 Fix login footer 2020-03-09 13:32:49 -07:00
Johannes Zellner d36e4937d4 Mark backup folder in backup config as required 2020-03-09 13:28:06 -07:00
Johannes Zellner fea48e8220 Do not show noop provider for external ldap 2020-03-09 13:04:44 -07:00
Girish Ramakrishnan 637a59136b email size can be 0 unlike disk size 2020-03-07 16:09:44 -08:00
Johannes Zellner 385d275f59 Another attempt on fixing the user edit with roles business 2020-03-07 14:05:58 -08:00
Johannes Zellner e240ac1fa5 Disable subscription UI in demo mode 2020-03-07 10:00:32 -08:00
Johannes Zellner 4f020c1ec7 Do not allow the admin to edit the owner 2020-03-07 02:25:57 -08:00
Johannes Zellner 237decb81e Dont not show all those mail events 2020-03-07 02:21:21 -08:00
Johannes Zellner 1c98cba36d Show busy state on webtoken logout 2020-03-07 01:59:38 -08:00
Girish Ramakrishnan 21fb815adc inform user that it takes a while 2020-03-07 00:15:19 -08:00
Girish Ramakrishnan 6b729bd9b5 typo 2020-03-07 00:07:36 -08:00
Girish Ramakrishnan a7ee869c8e Remove the source from eventlog 2020-03-06 23:11:26 -08:00
Girish Ramakrishnan bbbe3cc92f spam-selectdb is only new users now 2020-03-06 22:56:00 -08:00
Girish Ramakrishnan c1770c8d90 spam filter seeding begin/end 2020-03-06 22:44:30 -08:00
Girish Ramakrishnan 71b7e68937 5 rows 2020-03-06 20:43:57 -08:00
Girish Ramakrishnan dbca88829a Just put a hyphen 2020-03-06 20:38:48 -08:00
Girish Ramakrishnan ebd365a156 Alt message for spam-selectdb when users is empty 2020-03-06 19:34:51 -08:00
Johannes Zellner 698a20396c Always open markdown links in new tab 2020-03-06 19:11:39 -08:00
Johannes Zellner ffc2507362 Ensure we trim the footer content 2020-03-06 18:21:34 -08:00
Johannes Zellner 038d6fe2c3 For immediate update of the footer and cloudron name we have to rely on config here 2020-03-06 17:57:38 -08:00
Johannes Zellner 34c8baa744 Pick public info from status object 2020-03-06 17:57:38 -08:00
Girish Ramakrishnan 52a8081d0f no padding for footer links 2020-03-06 17:28:14 -08:00
Johannes Zellner 23813aa346 Make admins got to app configure when app task is active 2020-03-06 16:41:17 -08:00
Johannes Zellner 7d034a4b0b Show apptask progress label directly 2020-03-06 16:25:21 -08:00
Johannes Zellner 7e41f2ef35 Further improve email eventlog 2020-03-06 14:42:08 -08:00
Johannes Zellner f49dd31804 Reduce columns in mail event log 2020-03-06 13:35:34 -08:00
Johannes Zellner cf9e116388 Pipe backend error message on user deletion 2020-03-06 13:15:57 -08:00
Johannes Zellner 2a8d6f37c4 Disable roles the current user cannot assign 2020-03-06 12:33:36 -08:00
Johannes Zellner d5930fd859 Show error on user deletion if not allowed 2020-03-06 12:23:50 -08:00
Johannes Zellner f1e0167e1b Only fetch subscription for owners 2020-03-06 11:42:27 -08:00
Johannes Zellner 2d74c62054 Hide subscription status display for non-owners 2020-03-06 11:40:30 -08:00
Johannes Zellner 9249f28e68 Replace default logos with our own icon in colors 2020-03-06 11:21:32 -08:00
Girish Ramakrishnan 1273dbde76 Better icon for owner 2020-03-06 11:14:25 -08:00
Girish Ramakrishnan 966960c64b cpu share: add step and better ticks 2020-03-06 10:40:21 -08:00
Johannes Zellner 19e2919d5b Add reconnect handler and make reboot state better reflected in the notfications 2020-03-06 02:38:21 -08:00
Girish Ramakrishnan 1555b143a9 strip .tar.gz/.tar.gz.enc ending for all backup ids 2020-03-06 02:31:26 -08:00
Girish Ramakrishnan f1c2679137 typo 2020-03-06 02:09:44 -08:00
Girish Ramakrishnan 49e9bd3ca6 Add linode to restore UI 2020-03-06 01:47:07 -08:00
Johannes Zellner 6d9fe0410d Use branded footer in login and account setup pages 2020-03-06 01:44:08 -08:00
Girish Ramakrishnan 11419365ca Move help text after footer heading 2020-03-06 01:18:51 -08:00
Johannes Zellner a9767ac29a Make use of new support feature flag 2020-03-06 01:08:55 -08:00
Johannes Zellner efbf78ed00 Improve notification dismiss action button 2020-03-05 21:14:19 -08:00
Johannes Zellner 1f0965fdf6 Implement specific reboot notification action 2020-03-05 21:14:19 -08:00
Johannes Zellner 0ea2f48d94 Avoid tooltip flickering on mouse events 2020-03-05 21:14:19 -08:00
Johannes Zellner 547b351f40 Move setup subscription button in app install dialog to the right 2020-03-05 21:14:19 -08:00
Girish Ramakrishnan c9f0166c3d Other -> Ubuntu 2020-03-05 21:05:31 -08:00
Johannes Zellner 0de106f23d Disable app access submit when no group or user is selected 2020-03-05 20:15:17 -08:00
Girish Ramakrishnan 854281417d various app password ui fixes 2020-03-05 20:11:07 -08:00
Johannes Zellner 4d35fde8ba remove extra br for normal users in profile page 2020-03-05 20:10:01 -08:00
Johannes Zellner 754c9eff9e Rename system to system info 2020-03-05 18:28:11 -08:00
Johannes Zellner aca5a876d8 Move disk usage to system 2020-03-05 18:28:11 -08:00
Girish Ramakrishnan 7a817319ba Better text for password 2020-03-05 17:52:28 -08:00
Johannes Zellner f01ed81472 Remove feature to show old notifications 2020-03-05 17:31:03 -08:00
Johannes Zellner 942c755a5b Some better avatar overlay 2020-03-05 17:28:25 -08:00
Johannes Zellner 392da50f2c Show cloudron name in account setup view 2020-03-05 17:08:10 -08:00
Johannes Zellner dffaaf067d Show cloudron name in login view 2020-03-05 17:03:32 -08:00
Girish Ramakrishnan d663930d66 Fix casing of password changed 2020-03-05 17:02:52 -08:00
Girish Ramakrishnan 9291b6a489 Fixup text 2020-03-05 16:54:39 -08:00
Johannes Zellner 53abc1171e Remove toplevel doc links 2020-03-05 16:31:41 -08:00
Johannes Zellner 7f95e11af1 Do not send active or role attributes for own user while edit 2020-03-05 16:23:27 -08:00
Johannes Zellner 256676cb9d Allow to refresh users without showing busy state 2020-03-05 16:14:03 -08:00
Johannes Zellner 6180c0dc69 Add help button for user roles 2020-03-05 16:05:11 -08:00
Johannes Zellner e44ae4a0a0 Swap role and group in user add dialog 2020-03-05 16:04:05 -08:00
Johannes Zellner 8221e6a148 User permissions property is gone 2020-03-05 15:57:42 -08:00
Girish Ramakrishnan 6603c48fd9 Fixup text 2020-03-05 15:49:43 -08:00
Girish Ramakrishnan 3665d7cab7 Add linode to import UI 2020-03-05 11:24:42 -08:00
Johannes Zellner 27da68dc4b Fix gcdns provider configuration 2020-03-04 18:53:53 -08:00
Johannes Zellner 5695d555e5 Prevent eventlog filter from crashing 2020-03-04 15:07:35 -08:00
Johannes Zellner 08a6ad8bd3 Fix long-term hover bug in cog icon 2020-03-04 14:33:33 -08:00
Johannes Zellner 66a95fb130 Eventlog is available to all again
This is not actually the same as a business type audit log
2020-03-04 14:17:31 -08:00
Johannes Zellner 6eca1dfb83 Revert "Rename eventlog to audit trail"
This reverts commit fef854580d.
2020-03-04 14:15:32 -08:00
Girish Ramakrishnan fb5e2ef671 Throw error object and not a string 2020-03-03 11:07:56 -08:00
Girish Ramakrishnan 3cb15f0097 linode: add frankfurt 2020-03-02 20:03:02 -08:00
Johannes Zellner 7367932f2c Reword tooltip when adding users is blocked 2020-02-28 20:51:56 +01:00
Johannes Zellner fef854580d Rename eventlog to audit trail 2020-02-28 19:43:09 +01:00
Johannes Zellner 102a0a40a6 Make all only in paid version displays the same 2020-02-28 19:27:19 +01:00
Girish Ramakrishnan 0515b650ca mail from validation: add busy indicator 2020-02-27 10:47:14 -08:00
Girish Ramakrishnan 3c7e28c768 mail relay: wait for mail container to restart 2020-02-27 10:42:33 -08:00
Girish Ramakrishnan e528cf5692 Fix crash in statusOk computation 2020-02-27 10:37:21 -08:00
Girish Ramakrishnan dfe2eee0b9 Fix crash when no mailbox usage present 2020-02-27 10:11:00 -08:00
Girish Ramakrishnan 60f42e342b better message 2020-02-27 10:08:41 -08:00
Johannes Zellner 958f738820 Fix app mailbox form state 2020-02-27 16:04:11 +01:00
Johannes Zellner 2d2989a425 Fix add user button state 2020-02-27 15:10:56 +01:00
Johannes Zellner 3c3370b929 Check mail state depending on relay used or not 2020-02-27 13:27:45 +01:00
Girish Ramakrishnan 90b22196b1 add linode objectstorage backend 2020-02-26 10:12:26 -08:00
Johannes Zellner e7b9c2d294 Disable role selection for Cloudrons with user restriction 2020-02-26 16:48:51 +01:00
Johannes Zellner a3830d23e8 Move Email menu entry back to old place 2020-02-26 15:03:17 +01:00
Johannes Zellner d83eb32b6e Remove code for now dead spaces feature 2020-02-26 13:51:00 +01:00
Girish Ramakrishnan 303c55dbba Show busy indicator in reboot button 2020-02-25 14:58:29 -08:00
Girish Ramakrishnan afde058a85 capitalize 2020-02-24 11:58:25 -08:00
Johannes Zellner 14397cab96 Hide external ldap view for non-admins 2020-02-24 18:01:42 +01:00
Johannes Zellner a78eec79a8 Fix users view for user manager role 2020-02-24 17:49:36 +01:00
Johannes Zellner 7ce4effc2d Remove all .admin usage 2020-02-24 17:29:20 +01:00
Johannes Zellner 2674160acc Fix error form state when adding a new domain 2020-02-24 17:29:10 +01:00
Johannes Zellner f1c951c997 User creation and edit apis don't take admin flag anymore 2020-02-24 17:15:50 +01:00
Johannes Zellner a17d810fea Only auto-login the owner for subscription setup 2020-02-24 15:10:21 +01:00
Johannes Zellner 4b1cb76eaf Remove unused angular filter for oauth clients 2020-02-24 14:36:52 +01:00
Johannes Zellner 6b89b2be5e Remove tokens view for good 2020-02-24 14:36:35 +01:00
Johannes Zellner 92bfda9028 Remove admin usage in main view 2020-02-24 14:34:12 +01:00
Johannes Zellner 728d50461f Fix app password usage for non-admins 2020-02-24 13:29:47 +01:00
Johannes Zellner 3f92204de5 Fix indentation 2020-02-24 13:23:47 +01:00
Johannes Zellner 0e6c9177f0 Migrate most of .admin usage 2020-02-24 12:56:13 +01:00
Johannes Zellner 3c0e674ee5 Fixup user list icons and set default add to 'user' 2020-02-24 12:22:07 +01:00
Johannes Zellner 15c9052912 Move role selector up 2020-02-22 17:51:30 +01:00
Girish Ramakrishnan 7061880104 derive admin flag from roles 2020-02-21 16:55:39 -08:00
Johannes Zellner 6f12cde2e8 Add user role dropdown
Also pass `role` instead of `permissions`
Once done ng-disable/ng-hide based on userInfo.role
2020-02-21 21:15:54 +01:00
Johannes Zellner 52d454276d Use new subscription setup flow for app install dialog 2020-02-21 14:07:46 +01:00
Johannes Zellner 81fb4ab435 Add appstore accessToken to subscription setup links 2020-02-21 13:08:20 +01:00
Girish Ramakrishnan af8bb1f0e8 Add email view summary 2020-02-20 12:36:05 -08:00
Girish Ramakrishnan 5fd575a217 display usage info 2020-02-20 12:36:05 -08:00
Johannes Zellner 1ef5fd1a0f Only show support ticket and remote support UI for paid plans 2020-02-19 14:19:46 +01:00
Girish Ramakrishnan 932de7dba7 mail: display source 2020-02-18 21:31:35 -08:00
Girish Ramakrishnan 84310336bd Add search param 2020-02-18 09:46:52 -08:00
Johannes Zellner aba233c74a Add permissions UI 2020-02-17 14:05:26 +01:00
Johannes Zellner 016e2b375d Add commented test block for features 2020-02-14 20:45:23 +01:00
Johannes Zellner 732b1ae0de Improve business plan placeholders 2020-02-14 20:45:23 +01:00
Girish Ramakrishnan ae0c0f957e Show 20 per page by default 2020-02-14 09:04:57 -08:00
Johannes Zellner 4283046e76 Add footer branding configuration 2020-02-14 15:34:44 +01:00
Johannes Zellner 0a126a15ba Add branding section with footer configuration 2020-02-14 15:22:16 +01:00
Johannes Zellner 21e7190b72 Remove subscription setup modal, instead open cloudron.io directly 2020-02-14 14:16:04 +01:00
Girish Ramakrishnan 9fcd049bdc domain.locked is gone 2020-02-13 21:15:09 -08:00
Girish Ramakrishnan bc31ea5eb7 mail: move the next/prev page buttons to header
aligns with other ui like activity and mailbox
2020-02-13 09:12:59 -08:00
Johannes Zellner 35dd92f54e If maxUserCount is not set allow all 2020-02-13 17:09:42 +01:00
Johannes Zellner 0a29f92384 Use features from config object 2020-02-13 16:34:37 +01:00
Johannes Zellner a13414ddb9 Add feature object and show/hide elements accordingly 2020-02-13 15:30:31 +01:00
Johannes Zellner 3dd0566f48 fix empty eventlog label display 2020-02-13 13:03:57 +01:00
Johannes Zellner 8b3bc28120 add eventlog refresh button 2020-02-13 12:01:47 +01:00
Johannes Zellner 8051d6ba48 Add pagination to eventlog 2020-02-13 12:01:47 +01:00
Girish Ramakrishnan 43b49ef4c9 cleanup mail eventlog ui 2020-02-12 23:30:15 -08:00
Johannes Zellner 8ca51f1877 Show last 5 new apps 2020-02-12 23:24:33 +01:00
Johannes Zellner 59c5f22dbd Show mail eventlog type also as icon 2020-02-12 15:52:39 +01:00
Johannes Zellner a92dc1ad73 Make eventlog display work 2020-02-12 15:37:05 +01:00
Johannes Zellner fd72a00cfb Fixup raw email logs button layout 2020-02-12 14:52:38 +01:00
Johannes Zellner e9d10d6f2f Add action button to send test mail in global mail view 2020-02-12 14:51:06 +01:00
Johannes Zellner fa630a6cb5 Show mail status per domain in overview 2020-02-12 14:10:21 +01:00
Girish Ramakrishnan 135548a03b mail: add js code to get eventlog 2020-02-11 22:07:58 -08:00
Girish Ramakrishnan 304c930f95 Fix comment 2020-02-11 21:27:16 -08:00
Johannes Zellner 48991e22b1 Move Email menu entry toplevel
Not sure about that, but lets see until we make a release
2020-02-11 21:10:36 +01:00
Johannes Zellner 132a375347 Separate emails and email view 2020-02-11 21:06:34 +01:00
Johannes Zellner 1392abe2c0 Fix password length error message 2020-02-11 16:45:20 +01:00
Johannes Zellner fde07fda55 Passwords must be between 8 and 256 characters 2020-02-11 15:33:40 +01:00
Johannes Zellner b9c4928949 Add missing token description 2020-02-11 09:54:57 +01:00
Girish Ramakrishnan d2025d5ddf Show logs in browser timezone 2020-02-10 14:13:26 -08:00
Girish Ramakrishnan 113ae1cfa5 add note on utc to tz conversion 2020-02-10 13:49:59 -08:00
Girish Ramakrishnan a0f2039fd4 eventlog: wrong tooltip 2020-02-10 13:49:59 -08:00
Johannes Zellner 8442f80641 Ensure app password and api token tables have same layout 2020-02-08 01:25:05 +01:00
Johannes Zellner f10fafd038 Fix token expiration display 2020-02-08 01:23:29 +01:00
Johannes Zellner c85f48a9e9 Remove console.log() 2020-02-07 22:38:51 +01:00
Girish Ramakrishnan a1c487b29d Add note that old backups have to be cleaned up manually 2020-02-07 13:20:19 -08:00
Johannes Zellner 62562f051c Add token add api and separate api tokens from rest 2020-02-07 21:40:55 +01:00
Girish Ramakrishnan 467edb6b32 Error handing fixes for import 2020-02-07 11:23:34 -08:00
Johannes Zellner 1970641001 Implement revoke tokens 2020-02-07 20:00:10 +01:00
Girish Ramakrishnan 72b9384902 Use tooltips instead of overlays as hint when app is busy 2020-02-07 10:43:00 -08:00
Girish Ramakrishnan 8600019079 Fixes to import UI 2020-02-07 10:22:52 -08:00
Girish Ramakrishnan 49975a521b Add UI to import backup 2020-02-07 09:42:27 -08:00
Johannes Zellner b289db6879 Actually fix deployment tarball apiOrigin 2020-02-07 18:27:39 +01:00
Johannes Zellner 8ae6bf832a List all tokens in profile 2020-02-07 17:03:14 +01:00
Johannes Zellner 3efe7eb85d Add token route wrapper 2020-02-07 16:42:35 +01:00
Johannes Zellner 46635e1992 Remove oauth client wrapper 2020-02-07 16:36:10 +01:00
Johannes Zellner e8abe35bc5 Fix gulpfile for release tarball creation 2020-02-07 16:31:35 +01:00
Johannes Zellner 7596881464 Remove oauth from gulp and ejs templates 2020-02-07 13:41:10 +01:00
Girish Ramakrishnan ba36f05182 Just hide the table altogether when no backup 2020-02-06 16:11:25 -08:00
Girish Ramakrishnan be1874839e get support configuration via REST API 2020-02-05 14:15:46 -08:00
Johannes Zellner 5996ea1ba3 Remove unused code 2020-02-05 17:26:48 +01:00
Johannes Zellner 9283537efc Implement account setup view logic 2020-02-05 16:34:15 +01:00
Johannes Zellner 9dbdad324a Use invite link generated on the server to stay in sync 2020-02-05 15:53:19 +01:00
Johannes Zellner 39faf2e55c Add new account setup page 2020-02-05 15:05:34 +01:00
Johannes Zellner 19b5253708 Remove now unused login callback 2020-02-05 12:54:14 +01:00
Johannes Zellner 3f2b59e67f Ensure we have proper login app entry points 2020-02-05 11:54:31 +01:00
Girish Ramakrishnan 4bc1d5cd4a uiSpec is dead 2020-02-04 13:17:26 -08:00
Girish Ramakrishnan 689349887d custom: remove support section 2020-02-04 13:07:20 -08:00
Girish Ramakrishnan e7a1b5d40b custom: remove subscription.configurable 2020-02-04 12:59:16 -08:00
Girish Ramakrishnan 8f997ee724 Remove usage of config.uiSpec.domains 2020-02-04 12:55:51 -08:00
Girish Ramakrishnan 99bce50b4d custom: remove backups.configurable 2020-02-04 12:49:36 -08:00
Johannes Zellner db166c4f29 Be at least consistent with casing 2020-02-04 18:41:53 +01:00
Johannes Zellner 4a8a52a0c7 Implement setting new password 2020-02-04 18:36:24 +01:00
Johannes Zellner 0762b337b8 Fixup password reset page 2020-02-04 15:53:56 +01:00
Johannes Zellner a50fa9bcf4 Add password reset feature in login view 2020-02-04 15:27:35 +01:00
Johannes Zellner 1b0c5f8771 Remove unnecessary login page navbar 2020-02-04 15:00:56 +01:00
Johannes Zellner 92be875a2f Use standalone login screen instead of OAuth 2020-02-04 14:46:19 +01:00
Girish Ramakrishnan d5e4453f15 app passwords: add ui 2020-02-01 18:49:29 -08:00
Johannes Zellner c9e43ed295 Add basic ticks to cpu share slider 2020-02-01 16:30:32 +01:00
Girish Ramakrishnan 63610f04ec Show backup disk usage 2020-01-31 14:47:04 -08:00
Girish Ramakrishnan e0db4fce6e Better purpose 2020-01-30 21:53:43 -08:00
Johannes Zellner 1f4b6f4a42 Update purpose list 2020-01-30 18:33:44 +01:00
Johannes Zellner 300ab191fe Add cloudron purpose to appstore login/signup flow 2020-01-30 15:36:05 +01:00
Girish Ramakrishnan 0315ae511b do not allows < 2 2020-01-28 22:44:08 -08:00
Girish Ramakrishnan e336c4405d Rename Custom data dir to Storage 2020-01-28 22:33:38 -08:00
Girish Ramakrishnan 2a4d9c0ba6 ui for cpu shares 2020-01-28 22:32:58 -08:00
Girish Ramakrishnan 4a29fa93c5 services: use memorySwap to be consistent with the app memory UI
the memory limit sliders take the total memory (memory + swap).
2020-01-28 13:38:05 -08:00
Girish Ramakrishnan c5d14195d6 Remove broken help link and add explanation 2020-01-28 10:09:25 -08:00
Girish Ramakrishnan 09d34f5843 service: fix broken memory sliders 2020-01-28 09:37:25 -08:00
Girish Ramakrishnan 7432610629 lint 2020-01-24 17:18:00 -08:00
Girish Ramakrishnan d50d555372 eventlog: mailbox and list update events 2020-01-24 17:18:00 -08:00
Johannes Zellner f0859291fc Actually shorten the memory limit description 2020-01-23 08:10:33 +01:00
Johannes Zellner 1eeba899f0 Mention how memory limit is allocated inline 2020-01-23 08:08:03 +01:00
Johannes Zellner 36653c10dc Fixup profile picture selection to only allow really changed pictures to be submitted 2020-01-20 19:01:41 +01:00
Johannes Zellner 008ac68ecb Also search within app label if any 2020-01-20 14:38:41 +01:00
Johannes Zellner 36b8b0e6a1 Fix user select in group add/edit dialogs
We have to depend on all users not just the paginated ones
The selection does not need all information from the user so we are good
2020-01-09 16:21:22 +01:00
Johannes Zellner 42066e20ed Make timezone settings much beautiful 2020-01-08 21:41:06 +01:00
Johannes Zellner 57aa93eb84 Do not show UTC offset in select 2020-01-08 20:35:00 +01:00
Johannes Zellner c6c51bd319 Generate timezones.js with gulp 2020-01-08 17:22:07 +01:00
Johannes Zellner 2fa9c89246 Show UTC time offset and use better dropdown with search 2020-01-08 13:01:31 +01:00
Girish Ramakrishnan 840b326187 Reword 2020-01-07 18:30:54 -08:00
Johannes Zellner 1fef7130fb Add time zone settings ui 2020-01-07 21:41:45 +01:00
Johannes Zellner 2328dd1d58 Ensure outdated selected app tags are cleared if not available anymore 2020-01-07 12:17:40 +01:00
Johannes Zellner dbba99eee5 Only show app search field if more than 10 apps are installed 2020-01-07 11:13:22 +01:00
Johannes Zellner f07e0bf967 Fix typo to actually restart an app 2020-01-06 16:38:48 +01:00
Johannes Zellner c548f572df fixup linter errors 2020-01-06 16:38:33 +01:00
Johannes Zellner 129f67c9f8 Make app view tags and domain filter persistent
This is only stored in the browser's localStorage to survive a reload,
but is not stored on the server to be preserved across different clients
2020-01-06 16:23:33 +01:00
Johannes Zellner bc75a8e7b8 Add search field in apps view 2020-01-06 15:27:31 +01:00
Girish Ramakrishnan e4f16ae520 2020: happy new year 2020-01-02 16:56:42 -08:00
Girish Ramakrishnan 4df34c724e cloudflare: add token type selector 2020-01-01 16:49:17 -08:00
Girish Ramakrishnan 1960fc8606 cloudflare: send tokenType 2019-12-31 17:03:29 -08:00
Girish Ramakrishnan aaae8a84f6 show warning when enabling email with cloudflare 2019-12-31 17:03:25 -08:00
Girish Ramakrishnan 1dca3c17a4 debug mode apps skip the health check 2019-12-24 11:08:17 -08:00
Johannes Zellner dfd31722fc Ensure webServerOrigin is actually set 2019-12-23 17:20:28 +01:00
Girish Ramakrishnan f5fd75f4fa Set busy indicator to false in refresh callbacks 2019-12-22 17:10:04 -08:00
Girish Ramakrishnan 24d1c2d63a Fix error state handling
Do not disable views in error state. Many actions like display work just fine.
Also, people want to restore etc but all this is disabled.
2019-12-20 19:04:51 -08:00
Girish Ramakrishnan da191d62cc Show console view in error state for the logs
disable the terminal button accordingly
2019-12-20 15:55:57 -08:00
Girish Ramakrishnan e8bc6e564d Rename the repair button 2019-12-20 15:38:40 -08:00
Girish Ramakrishnan 95f3158bb4 Rename paused to recovery mode 2019-12-20 11:53:06 -08:00
Girish Ramakrishnan f7cc5be173 Wrap the tooltip 2019-12-20 11:42:41 -08:00
Girish Ramakrishnan adc078a5cb Add a restart button in recovery section 2019-12-20 11:27:32 -08:00
Girish Ramakrishnan 3f3ec9ef9a Fix usage of config.memory 2019-12-20 10:02:01 -08:00
Girish Ramakrishnan 7d70060962 debug view is now called repair 2019-12-19 21:53:53 -08:00
Girish Ramakrishnan 4507496d3d Show endpoint for minio 2019-12-19 11:05:40 -08:00
Girish Ramakrishnan 445dcc24df Fix documentation links 2019-12-18 14:29:42 -08:00
Girish Ramakrishnan 78205c9a13 Add gravatar link 2019-12-17 15:05:01 -08:00
Girish Ramakrishnan 3a0f7e0602 Disable console view when app is in error state 2019-12-17 10:24:42 -08:00
Girish Ramakrishnan fab23ee595 backup: compact the view 2019-12-17 10:15:38 -08:00
Girish Ramakrishnan d285c5a679 Make the buttons primary instead of success 2019-12-17 10:03:04 -08:00
Girish Ramakrishnan 6d079b9349 hide the cancel task button
we considered putting it in the progress bar, but we don't want to
encourage it's use
2019-12-17 09:43:40 -08:00
Johannes Zellner c291f744e7 Ensure min-height for app view tabs matches the tabs 2019-12-17 14:56:15 +01:00
Girish Ramakrishnan f0730f595f rework the repair view 2019-12-16 19:24:32 -08:00
Girish Ramakrishnan d175d06b35 debug is now repair 2019-12-16 17:45:40 -08:00
Girish Ramakrishnan 119969634e Fix display of start/stop button 2019-12-16 16:27:24 -08:00
Girish Ramakrishnan b67c09a4c1 Use refreshApp in onReady 2019-12-16 16:22:29 -08:00
Girish Ramakrishnan 8a850ecc5b Remove usage of trackBackupTask 2019-12-16 16:17:54 -08:00
Girish Ramakrishnan f752ed3927 remove superfluous trackBackuptask 2019-12-16 16:17:13 -08:00
Girish Ramakrishnan 866a7480bc make refreshApp take appId 2019-12-16 16:08:49 -08:00
Girish Ramakrishnan 55ae8404cd remove duplicate show call
this is already done in $scope.setView
2019-12-16 15:54:03 -08:00
Girish Ramakrishnan 71e9d7c4af evenlog: ssh and ticket 2019-12-16 14:12:59 -08:00
Girish Ramakrishnan 580556cab6 app: add console section 2019-12-16 13:34:21 -08:00
Girish Ramakrishnan bcb6182be3 lint: indent 2019-12-16 12:54:24 -08:00
Girish Ramakrishnan c865aaed6f remove unused cert code 2019-12-16 12:53:51 -08:00
Girish Ramakrishnan 37c23fa187 avatar: fix broken image for emails with no gravatar
this was because we blindly add ? to a url which already has query params
2019-12-13 13:50:50 -08:00
Johannes Zellner 2eeb99e869 Improve avatar settings dialog 2019-12-12 15:34:26 +01:00
Johannes Zellner fd528edfed Use cloudron/memory api instead of removed config.memory 2019-12-12 12:13:06 +01:00
Girish Ramakrishnan df6a645600 typo 2019-12-11 15:13:46 -08:00
Girish Ramakrishnan d1515f8f64 Handle 422 for invalid provider token 2019-12-11 15:01:51 -08:00
Girish Ramakrishnan 9fb85311b9 Various spacing issues 2019-12-11 14:43:54 -08:00
Girish Ramakrishnan aed949e221 Fix layout of instance id 2019-12-11 14:18:12 -08:00
Girish Ramakrishnan 5b29f48bfd Fix bug where providerToken is sent in config 2019-12-11 13:58:29 -08:00
Girish Ramakrishnan 5bfb48b863 ami: set default to route53 2019-12-11 12:57:46 -08:00
Girish Ramakrishnan 9536fafd53 eventlog: mail list removal typo 2019-12-11 10:00:00 -08:00
Johannes Zellner 4434d59b09 Remove dns setup Cloudron logo 2019-12-10 17:44:22 +01:00
Girish Ramakrishnan 060fe39f2e Fix repair route path 2019-12-06 11:44:33 -08:00
Girish Ramakrishnan a5b14e8d68 Fix repair
Call appropriate routes based on the error state
2019-12-06 10:13:30 -08:00
Johannes Zellner 165ad229e2 Add support to upload custom profile avatar 2019-12-02 18:03:41 +01:00
Girish Ramakrishnan beb3117bfc Remove dead certificate code 2019-11-23 17:50:54 -08:00
Girish Ramakrishnan e1d462aa42 Fix taskName 2019-11-23 17:49:13 -08:00
Girish Ramakrishnan bd15ef7768 @ sign missing for email address 2019-11-22 14:41:17 -08:00
Girish Ramakrishnan 646f669c14 Display swap 2019-11-21 14:00:37 -08:00
Johannes Zellner 682eb8d6e5 Improve external ldap auto creation text and move to bottom 2019-11-20 22:42:32 +01:00
Johannes Zellner 00b0a21c78 Add ldap user autocreate settings 2019-11-20 10:46:26 +01:00
Johannes Zellner c7a5d295ec Add new apps category in appstore view 2019-11-18 22:43:33 +01:00
Girish Ramakrishnan bcb055ed05 Show slash only with prefix 2019-11-18 11:04:06 -08:00
Girish Ramakrishnan 983b1e3656 index.docker.io is legacy
https://github.com/docker/distribution/blob/release/2.7/reference/normalize.go#L13
2019-11-17 11:39:42 -08:00
Girish Ramakrishnan 3c4dbe2558 Disable update view for custom apps 2019-11-16 10:53:15 -08:00
Girish Ramakrishnan 80b931ca9e email domain can be selected 2019-11-15 09:41:09 -08:00
Girish Ramakrishnan 200a234469 ldap: use separate objects for current config and user config 2019-11-14 17:30:23 -08:00
Girish Ramakrishnan 24ef877bfe website/description is optional for dev apps 2019-11-12 17:12:57 -08:00
Girish Ramakrishnan 602244b53f Must contain since it is a path 2019-11-11 16:26:01 -08:00
Girish Ramakrishnan 97b2a6eea0 typo 2019-11-11 16:06:46 -08:00
Girish Ramakrishnan e20d09cfee Pass syinfoConfig properly 2019-11-11 15:15:50 -08:00
Girish Ramakrishnan 7e2ae8e87c add sysinfo to setup & restore 2019-11-11 12:27:44 -08:00
Girish Ramakrishnan a868766a65 lint 2019-11-11 09:49:41 -08:00
Girish Ramakrishnan 7f1c505303 Add check for backupId to start with "box" 2019-11-11 09:46:47 -08:00
Girish Ramakrishnan f679746e63 pass clientId instead of client object to revoke 2019-11-11 09:20:42 -08:00
Girish Ramakrishnan 40b75c6ac8 Always enable unstable app listing 2019-11-11 08:41:12 -08:00
Johannes Zellner c5fc4db980 Align appstatus page style with other dashboard pages 2019-11-10 16:33:15 +01:00
Johannes Zellner f6b88518a2 Add option to logout to destroy all sessions by this user 2019-11-08 21:33:29 +01:00
Girish Ramakrishnan 3fecb777e8 make token ui work again 2019-11-08 12:24:26 -08:00
Girish Ramakrishnan 3d2914da94 remove extra break 2019-11-08 11:10:26 -08:00
Johannes Zellner 52e1ce5237 Actually destroy the OAuth session on token revokation 2019-11-08 17:31:19 +01:00
Girish Ramakrishnan b6b5875786 track current config separately 2019-11-07 23:08:42 -08:00
Girish Ramakrishnan 97782d29cc move tokens entirely into token page 2019-11-07 14:41:28 -08:00
Girish Ramakrishnan 0c5930d5cf simplify the sessions UI 2019-11-07 14:28:52 -08:00
Girish Ramakrishnan 836a3659b6 Add external ldap progress bar 2019-11-07 11:39:02 -08:00
Girish Ramakrishnan 2e6e320bd9 Make sysinfo page show detected ip 2019-11-07 10:47:40 -08:00
Girish Ramakrishnan c26597cf02 Various network page improvements 2019-11-07 10:20:34 -08:00
Girish Ramakrishnan 9a0cc4a717 Various minor UI fixes 2019-11-07 09:40:49 -08:00
Girish Ramakrishnan 81aa94c8df chrome: groups buttons were wrapping 2019-11-07 09:40:49 -08:00
Johannes Zellner ff30d6d23a Move sysinfo and dyndns settings to new network view 2019-11-07 15:26:18 +01:00
Johannes Zellner 30769b5992 We now always show the external ldap settings 2019-11-07 12:11:48 +01:00
Johannes Zellner c6d2e6cda3 Hide api token ui behind 'tokens' query and ensure button sizes are consistent 2019-11-07 12:08:51 +01:00
Johannes Zellner 3a0c29988e Update package-lock file 2019-11-07 11:10:00 +01:00
Johannes Zellner 85f1c3816b Rename account to profile 2019-11-07 11:07:57 +01:00
Johannes Zellner 7040bb01f4 Ensure groups configure dialogs have all users available 2019-11-05 22:08:48 +01:00
Johannes Zellner 71f1304606 Make all multiselect search and scrollable if more than 10 items are available 2019-11-05 19:45:59 +01:00
Johannes Zellner 90d242b784 Add helper scripts to add/remove many users for testing purpose 2019-11-05 19:24:08 +01:00
Johannes Zellner b520b6dc13 Add sysinfo configuration 2019-11-05 15:19:48 +01:00
Johannes Zellner 82b2b0b334 Simply mention available disk space in graphs 2019-11-05 12:04:19 +01:00
Girish Ramakrishnan 6463b84952 Add get/setSysinfoConfig 2019-10-31 19:33:05 -07:00
Girish Ramakrishnan 34cedbdadc Fill the usernameField 2019-10-31 11:39:42 -07:00
Girish Ramakrishnan 44cf25b447 bind dn can also be username 2019-10-30 09:36:02 -07:00
Johannes Zellner 94c7638c96 Mark external users with an icon 2019-10-29 13:04:44 +01:00
Johannes Zellner 6cf0727bd5 Ensure admin tooltip is fully visible 2019-10-29 12:58:54 +01:00
Johannes Zellner 561301bd28 Always show user actions, only disable them 2019-10-29 12:49:21 +01:00
Johannes Zellner 9039be8e39 Fix error reporting on password change 2019-10-29 12:39:39 +01:00
Johannes Zellner c42292d546 Also ensure the progressbar is full width 2019-10-27 22:52:12 +01:00
Johannes Zellner e21d17f6b8 Only adjust card margin on mobile 2019-10-27 22:52:12 +01:00
Girish Ramakrishnan ca2eacdd82 the v2 is implied it seems 2019-10-27 13:13:41 -07:00
Girish Ramakrishnan af9f2794be Remove error suggestion for now 2019-10-27 12:01:53 -07:00
Girish Ramakrishnan ff84149623 ldap: add username field 2019-10-25 16:38:59 -07:00
Girish Ramakrishnan 99aea3ed60 ldap: move error to top 2019-10-25 16:13:52 -07:00
Girish Ramakrishnan 9528db700a ldap: add provider field 2019-10-25 15:42:51 -07:00
Girish Ramakrishnan 106187e2f4 Make ldap users have disabled input instead 2019-10-25 15:25:46 -07:00
Girish Ramakrishnan e412aa9a3d Various fixes to ldap view
also, keep it enabled for all for now
2019-10-25 15:19:57 -07:00
Johannes Zellner 0a8fa40b6b Fixup various mobile view issues in the app configure view 2019-10-25 12:10:08 +02:00
Girish Ramakrishnan 8a84fa5cdd fix comment 2019-10-24 18:09:48 -07:00
Girish Ramakrishnan 1e8fb61abf Add warning on data loss 2019-10-24 10:07:34 -07:00
Girish Ramakrishnan ee4e90deb5 Add modal restore dialog 2019-10-24 10:01:23 -07:00
Girish Ramakrishnan e2124bac5a Add tooltip to show the raw time 2019-10-24 09:40:11 -07:00
Girish Ramakrishnan c1b95547d7 This can also be a token
https://www.docker.com/blog/docker-hub-new-personal-access-tokens/
2019-10-23 06:51:12 -07:00
Girish Ramakrishnan 28025cfb44 Add email field to registry config 2019-10-23 06:48:34 -07:00
Girish Ramakrishnan 7c978f6c1c Add ui to configure registry 2019-10-22 22:42:55 -07:00
Girish Ramakrishnan 470936476e Move buttons to right 2019-10-22 10:49:57 -07:00
Girish Ramakrishnan 9c418e110f Make unstable apps a normal button 2019-10-22 10:06:32 -07:00
Johannes Zellner 499cb76492 Add app listing filter for recently updated apps 2019-10-22 17:51:09 +02:00
Johannes Zellner bb00327e81 Ensure we don't cut off tooltips in apps view 2019-10-22 15:56:53 +02:00
Johannes Zellner e79dec3c2b sort mailinglists by name 2019-10-22 12:52:03 +02:00
Johannes Zellner ab23882c27 Add basic search filter for mailboxes and mailinglists 2019-10-22 12:47:32 +02:00
Johannes Zellner a22602f6d1 Always mention how mailinglist addresses should be separated
The placeholder is not shown once anything is typed
2019-10-21 13:02:45 +02:00
Girish Ramakrishnan c1ba1014c3 support: allow input of additional email 2019-10-18 18:23:58 -07:00
Johannes Zellner f393f58bce Source the dns setup image from the api server 2019-10-18 21:54:59 +02:00
Johannes Zellner b06d1fd293 Add server provider query argument to dns setup 2019-10-17 13:25:25 +02:00
Johannes Zellner ac32e76eec Add dns setup logo 2019-10-16 14:16:54 +02:00
Girish Ramakrishnan 420fe0df0d Only required for email_error 2019-10-15 12:00:37 -07:00
Girish Ramakrishnan b035030867 Add altEmail to support ticket (when mail is down) 2019-10-15 11:39:57 -07:00
Girish Ramakrishnan a641fec3ae Set CSP instead of frameAncestors 2019-10-14 17:20:35 -07:00
Girish Ramakrishnan 13c3624025 Add ui for frame-ancestors 2019-10-14 16:04:41 -07:00
Girish Ramakrishnan 16728ab51c Fix wrong icons for non-admins 2019-10-11 18:35:09 -07:00
Girish Ramakrishnan 247eea1a0c Remove unused function 2019-10-11 15:24:25 -07:00
Girish Ramakrishnan bf454816ea On error, reset the busy flag
this happens when icon is too large, for example
2019-10-11 15:18:52 -07:00
Girish Ramakrishnan 36028632ac simplify 2019-10-11 14:59:12 -07:00
Girish Ramakrishnan 0e386d33b0 Remove dead code 2019-10-11 14:53:44 -07:00
Girish Ramakrishnan 4f9d8915fb Hide progress bar for normal users
They cannot get the progress information anyway
2019-10-11 14:50:50 -07:00
Girish Ramakrishnan 0d94e4290b Remove the "v" from the version 2019-10-11 10:58:06 -07:00
Johannes Zellner a1426bc81b Fix copy and paste error for namecheap input label 2019-10-06 16:20:40 +02:00
Johannes Zellner d98d36d97b Disable documentation url is not set in app manifest 2019-10-06 16:20:40 +02:00
Girish Ramakrishnan bf930d2ae0 Fix email reconfigure 2019-10-04 11:20:27 -07:00
Girish Ramakrishnan 631730bf3a repair can always be called
this is because sometimes cloudron thinks there is no error, but there is
2019-10-03 12:23:36 -07:00
Johannes Zellner 8d34a4c5a1 Ensure the notification badge has its place in the layout calculation
The float property makes it overflow on high notification numbers
2019-10-03 13:32:43 +02:00
Johannes Zellner c8f50fc117 If app is not found while app view is visible, go back 2019-10-01 20:04:28 +02:00
Johannes Zellner cfdb7b32fc Fix basic layout issues on small screens for app view 2019-09-30 15:19:48 +02:00
Girish Ramakrishnan cc833f0b73 Stop any active app task on uninstall 2019-09-29 16:55:03 -07:00
Girish Ramakrishnan 47282afa22 Overwrite existing DNS records in repair 2019-09-29 16:37:38 -07:00
Girish Ramakrishnan 417640cfbe Fix hyphenation of alt domains in repair dialog 2019-09-29 16:37:35 -07:00
Johannes Zellner 8df1690d5d Fix yet another layout issue with long fqdn's 2019-09-28 15:49:35 +02:00
Girish Ramakrishnan 461d1bcd5b Add note about pause in the repair section 2019-09-27 15:25:46 -07:00
Girish Ramakrishnan 8b5e164291 Fix login eventlog 2019-09-27 15:07:37 -07:00
Girish Ramakrishnan 2644f56755 Show portBinding conflicts properly 2019-09-27 14:47:49 -07:00
Girish Ramakrishnan 437e6baeba eventlog: Add icon set/reset 2019-09-27 13:44:57 -07:00
Girish Ramakrishnan 6788d37b6f Configure label and tags only if changed 2019-09-27 13:38:30 -07:00
Girish Ramakrishnan b90550d6ba Fix display of alt domains 2019-09-27 12:58:39 -07:00
Johannes Zellner c068deb47e Avoid some text decoration on app title in various states 2019-09-27 19:55:45 +02:00
Johannes Zellner 2ce5b28048 Fixup postinstall message if app link is clicked 2019-09-27 19:43:03 +02:00
Johannes Zellner 57f1751309 Fix terminal restart and other state issues 2019-09-27 19:13:08 +02:00
Girish Ramakrishnan 2d8dc36f28 Elaborate what kind of backup 2019-09-27 09:34:01 -07:00
Johannes Zellner 077a717525 Move all STATEs to client.js so we can use them in other angular apps like terminal 2019-09-27 18:11:48 +02:00
Johannes Zellner 8795493462 Fixup linter issues in terminal view 2019-09-27 17:43:33 +02:00
Johannes Zellner af532bae8f Make app main header the open app action instead of the button 2019-09-27 16:35:43 +02:00
Girish Ramakrishnan c07b3e2d3c lint 2019-09-26 22:23:08 -07:00
Girish Ramakrishnan 6b1a9fa837 just return 'paused' 2019-09-26 22:16:37 -07:00
Girish Ramakrishnan 24888dfad5 terminal: repair -> pause 2019-09-26 22:16:37 -07:00
Girish Ramakrishnan 4d4c8638ca eventlog: Fix display of app.repair 2019-09-26 21:36:11 -07:00
Girish Ramakrishnan 9fd983abfb Make eventlog filter as functions
Some of the events requires access to domains and apps, making it hard
unsuitable for filters
2019-09-26 21:27:18 -07:00
Girish Ramakrishnan 637839ee14 remove unused filter 2019-09-26 21:10:26 -07:00
Girish Ramakrishnan 9b2578665f Add finish events to the filter 2019-09-26 20:13:24 -07:00
Girish Ramakrishnan ee05e109c8 Add checkbox to skip backup for app update 2019-09-26 20:10:25 -07:00
Girish Ramakrishnan a905e32cde eventlog: fix text of update events 2019-09-26 19:04:28 -07:00
Girish Ramakrishnan fb5cec0d38 eventlog: Make next button disabled in last page 2019-09-26 18:27:00 -07:00
Girish Ramakrishnan 1a4f490fb5 Display the backupId 2019-09-26 18:23:13 -07:00
Johannes Zellner 4518c2c4c0 Use img tag instead of background-image for custom icon to avoid flickering 2019-09-26 21:12:14 +02:00
Johannes Zellner 17771ccecd Make app documentation a dropdown to show postinstall and upstream project link 2019-09-26 21:12:14 +02:00
Girish Ramakrishnan f3c2a3c025 Remove the 'Daily' 2019-09-26 10:07:15 -07:00
Johannes Zellner 2aa919b444 Fix update error overflow in settings view 2019-09-25 11:49:09 +02:00
Johannes Zellner 408987ee30 avoid task progress flickering 2019-09-24 21:27:49 +02:00
Johannes Zellner fe04ad9940 Show task progress as progress bar instead of indicator 2019-09-24 21:08:42 +02:00
Johannes Zellner 1b03e750a2 Remove unnecessary retry to fetch domains in apps view 2019-09-24 19:56:31 +02:00
Johannes Zellner 3ff781139e Add pre-flight and fix clone dialog 2019-09-24 18:50:52 +02:00
Johannes Zellner 2ea3ba492e Prevent angular from throwing exceptions if error is null 2019-09-24 18:46:07 +02:00
Girish Ramakrishnan 89d3228077 Do not show overwrite when creds are invalid 2019-09-24 01:03:57 -07:00
Girish Ramakrishnan 7946f5ee81 Rename func and put error below the control label 2019-09-24 00:04:31 -07:00
Girish Ramakrishnan 44f62eac9a Add error suggestion 2019-09-23 23:51:15 -07:00
Girish Ramakrishnan 47725e57b0 Fixup repair text 2019-09-23 23:28:14 -07:00
Girish Ramakrishnan aac2aaa999 Make repair always visible 2019-09-23 22:03:54 -07:00
Girish Ramakrishnan 6ac1160bf2 Make stop/start work again 2019-09-23 15:50:41 -07:00
Johannes Zellner 70fae41042 Handle dns overwrite in appstore view 2019-09-24 00:21:12 +02:00
Johannes Zellner 07f5bfe3dc Provide appstore install overwrite checkbox 2019-09-24 00:21:12 +02:00
Girish Ramakrishnan 93a88a22b9 Move the collision list to the top 2019-09-23 15:13:50 -07:00
Girish Ramakrishnan 792faa1176 remove extra arg 2019-09-23 14:57:37 -07:00
Johannes Zellner 66900d594f Add app install dns preflight check 2019-09-23 23:47:33 +02:00
Johannes Zellner 9555f3c853 Adjust to new dns_check api 2019-09-23 23:47:12 +02:00
Johannes Zellner 9ed2fa734a Add location and domain selector to repair dialog 2019-09-23 22:45:45 +02:00
Johannes Zellner db83508920 Remove ... from installation state label
Makes the filter not useful in sentences
2019-09-23 22:45:16 +02:00
Johannes Zellner d72a6585d4 Handle pre-flight domain check api access issue 2019-09-23 21:38:35 +02:00
Girish Ramakrishnan 74fc8c9cf7 Add repair state 2019-09-23 12:34:47 -07:00
Johannes Zellner f3440f3c01 Show debug view if app errors while having some other view open 2019-09-23 19:37:40 +02:00
Girish Ramakrishnan b01799c606 Move help text down 2019-09-23 10:25:12 -07:00
Johannes Zellner 3cbb4e3f43 Handle location change api key invalid error 2019-09-23 19:23:06 +02:00
Girish Ramakrishnan 36299acbfb lint 2019-09-23 10:16:19 -07:00
Girish Ramakrishnan acc20af2d9 Fix text 2019-09-23 09:56:31 -07:00
Girish Ramakrishnan 077ce5b521 Fixup text 2019-09-23 09:54:40 -07:00
Johannes Zellner 1efe82dda2 Remove debug code and fixup ISTATE usage 2019-09-23 16:53:48 +02:00
Johannes Zellner f283618209 Only show error message if also set 2019-09-23 16:27:05 +02:00
Johannes Zellner fe6baf8dba Attempt to cover most repair cases 2019-09-23 15:32:38 +02:00
Johannes Zellner b742dc51fb Ensure we can start a stopped app 2019-09-22 12:21:39 +02:00
Johannes Zellner c8ea649afc Display error message in debug view 2019-09-22 12:16:20 +02:00
Johannes Zellner a27e94f694 Only allow debug and uninstall views on app error 2019-09-22 12:10:44 +02:00
Girish Ramakrishnan 25f9e7829f Fix run state handling 2019-09-22 01:02:39 -07:00
Johannes Zellner 85be7acab2 add initial repair dialog with domain/backup selection 2019-09-21 22:45:26 +02:00
Johannes Zellner 36c23227e5 Fix location form submission bug on enter 2019-09-21 11:07:20 +02:00
Johannes Zellner 0b6f68e190 Fix layout issue if app domain is too long 2019-09-21 11:02:00 +02:00
Girish Ramakrishnan 6c90fc2764 add app creation time 2019-09-20 09:20:41 -07:00
Johannes Zellner 4fd1e55ae8 Add pre-flight check for domain collision 2019-09-20 11:32:15 +02:00
Girish Ramakrishnan 9672f7e3da Remove "App" 2019-09-19 18:01:12 -07:00
Girish Ramakrishnan 50d29f8ef0 Use simple input field for custom data dir instead of checkbox (email) 2019-09-19 18:00:18 -07:00
Girish Ramakrishnan 6ffa00026e pending_configure is dead 2019-09-19 17:36:31 -07:00
Girish Ramakrishnan c4677505ac Fix debug_mode route 2019-09-19 17:30:24 -07:00
Girish Ramakrishnan bac6d7cf3c Revert "Add repair state"
This reverts commit 85ea91e0e3.
2019-09-19 17:15:43 -07:00
Girish Ramakrishnan 85ea91e0e3 Add repair state 2019-09-19 17:03:52 -07:00
Johannes Zellner 09b09086ce Use simple input field for custom data dir instead of checkbox 2019-09-20 01:22:10 +02:00
Johannes Zellner 8fbfa86a7f Do not randomly throw unhandled error notifications 2019-09-20 00:51:16 +02:00
Johannes Zellner 6224e942dc Track backup progress 2019-09-20 00:05:17 +02:00
Johannes Zellner ab5edbdd41 Add postinstall message to app view 2019-09-20 00:03:58 +02:00
Girish Ramakrishnan 7825d10f18 Move the error down 2019-09-19 14:51:32 -07:00
Johannes Zellner 8c1988e480 handle reserved domain errors 2019-09-19 22:02:37 +02:00
Girish Ramakrishnan 8403b811d8 Fix font size 2019-09-19 12:50:55 -07:00
Girish Ramakrishnan 1c797505ae Fixup debug tab 2019-09-19 12:50:06 -07:00
Girish Ramakrishnan 466086b509 Fixup backup tab 2019-09-19 12:24:22 -07:00
Girish Ramakrishnan 221f7247e6 rename title 2019-09-19 12:00:35 -07:00
Girish Ramakrishnan 624bc88f74 Make separate section in updates view 2019-09-19 11:58:11 -07:00
Johannes Zellner d6ca4458e4 Make active task overlay less verbose 2019-09-19 20:43:58 +02:00
Girish Ramakrishnan 1fe3e60468 Merge the email explanation 2019-09-19 11:30:30 -07:00
Girish Ramakrishnan aa65b2b97c dataDir explanation 2019-09-19 11:22:57 -07:00
Johannes Zellner 6dea2475c7 Prevent some more angular warnings if app object isn't set yet 2019-09-19 19:46:20 +02:00
Girish Ramakrishnan a666cb00eb Fixup uninstall UI 2019-09-19 10:28:19 -07:00
Johannes Zellner f0fac9165c Fix open app button in app view 2019-09-19 19:19:51 +02:00
Johannes Zellner e51eb8a9c1 Ensure back button from apps grid into app view works no first usage 2019-09-19 19:19:36 +02:00
Johannes Zellner 4822984e34 Some code cleanup 2019-09-19 18:41:08 +02:00
Johannes Zellner 4a558a7f65 Enabling backups and auto updates is not a danger action 2019-09-19 18:41:08 +02:00
Johannes Zellner 48d4935c7d Ensure error states are cleared 2019-09-19 18:41:08 +02:00
Girish Ramakrishnan 506accfe9b Show hr only when we have sftp section 2019-09-19 09:35:25 -07:00
Girish Ramakrishnan c15aba47f5 Fix installation state label text to have ... 2019-09-19 09:28:33 -07:00
Johannes Zellner fdafa8adf6 Only allow to open app when runState is also running 2019-09-19 18:27:02 +02:00
Johannes Zellner 23e15581f3 Make sure we cleanup polling timers on view switch 2019-09-18 18:18:43 +02:00
Johannes Zellner 1621f866a8 Cleanup apps view while removing update modal 2019-09-18 18:10:51 +02:00
Johannes Zellner f03fe33b1f Prevent angular erros if app is null in some filter 2019-09-18 18:06:03 +02:00
Johannes Zellner 6ec2a5ea35 If app is in error state directly go to debug view 2019-09-18 17:48:07 +02:00
Johannes Zellner 0ae4d323f7 Allow deep linking into the app configure views 2019-09-18 17:45:13 +02:00
Johannes Zellner 930404e482 Ensure we use the same danger color also in form validations 2019-09-18 17:17:36 +02:00
Johannes Zellner 92257afdab Enable custom app data dir setting 2019-09-18 17:12:10 +02:00
Johannes Zellner 300ff09a47 Move app error handling to simply show the app configure view 2019-09-18 15:54:19 +02:00
Johannes Zellner 14dd1103eb Fix angular interval usage 2019-09-18 15:53:57 +02:00
Johannes Zellner ff07eb1de0 Always poll for app status updates when an app configure view is open 2019-09-17 22:38:11 +02:00
Johannes Zellner b81f45bf47 Selectively show the email configure view 2019-09-17 22:05:32 +02:00
Johannes Zellner eb3232e049 Add update check and apply buttons in app view 2019-09-17 17:14:40 +02:00
Johannes Zellner 752f653f82 Improve the tab view 2019-09-17 16:19:43 +02:00
Johannes Zellner ed90dbe7b7 Improve app backup view 2019-09-17 16:16:54 +02:00
Johannes Zellner e1e0f2944b Make uninstall a separate view 2019-09-17 15:40:04 +02:00
Johannes Zellner 2269f15b66 Merge overview bits into other more relevant views 2019-09-17 15:32:43 +02:00
Johannes Zellner 5c0a53e02a Bring back email view in app configure 2019-09-17 15:09:39 +02:00
Johannes Zellner 8810439ffc Reset views on change 2019-09-17 14:52:22 +02:00
Johannes Zellner 9d61270937 Add artificial 1sec delay to simple app form submissions 2019-09-17 14:49:26 +02:00
Johannes Zellner b602a9d15d Handle location form submit errors for (sub)domains 2019-09-16 19:58:15 +02:00
Johannes Zellner bb0ab03ad9 Improve the configure overlay button 2019-09-16 14:24:17 +02:00
Johannes Zellner d674dcaeef Add location display in overview 2019-09-16 14:18:51 +02:00
Johannes Zellner a738ddb917 Add initial back to my apps link 2019-09-16 14:15:38 +02:00
Johannes Zellner 935c92b507 Make app configure sections a separate view 2019-09-16 14:03:13 +02:00
Johannes Zellner 10d1a2d8e4 Even further cleanup of dead code 2019-09-13 19:06:50 +02:00
Johannes Zellner cf6d64646a remove more dead code 2019-09-13 17:19:53 +02:00
Johannes Zellner c570e8b6fe Move app clone into app view 2019-09-13 17:18:37 +02:00
Johannes Zellner 849b9e0c80 Remove dead code 2019-09-13 17:10:12 +02:00
Johannes Zellner 8f8aa31304 Add restore and backup logic to app view 2019-09-13 17:08:50 +02:00
Johannes Zellner a1fe79c876 Also remove the app info dialog code from apps grid 2019-09-13 16:07:55 +02:00
Johannes Zellner 7c9654a541 Remove app task cancel code in apps grid 2019-09-13 15:54:27 +02:00
Johannes Zellner a86df7cdbf aRemove unused requires 2019-09-13 15:51:36 +02:00
Johannes Zellner 3d5cdd659b Remove all configure bits from the app grid page 2019-09-13 11:29:19 +02:00
Johannes Zellner 7a2a5d3846 Redirect back to app grid if app does not exist 2019-09-13 11:20:16 +02:00
Johannes Zellner 62fb0acb3c Move uninstall confirm dialog to app page 2019-09-13 11:18:43 +02:00
Johannes Zellner c4dfe8a723 Fixup form submission state for memory limit and robots 2019-09-13 11:12:11 +02:00
Johannes Zellner 4af4df9288 Only enable submit button if memory limit is changed 2019-09-13 11:06:13 +02:00
Johannes Zellner 25b0e18ceb Do not make the app task overlay that busy 2019-09-13 11:02:13 +02:00
Johannes Zellner c4aec8dfa6 Do not show app postinstall info in app view 2019-09-13 10:57:34 +02:00
Johannes Zellner 4056a3da43 Add debug section to app page 2019-09-13 10:34:12 +02:00
Johannes Zellner 2027f8052b Improve app overview and add restart action 2019-09-12 17:42:33 +02:00
Johannes Zellner 96bb293c1f Improve app location settings 2019-09-12 17:08:45 +02:00
Johannes Zellner fd73b28d66 Improve app display configuration 2019-09-12 16:28:21 +02:00
Johannes Zellner aafa698776 Add initial app configure jump links 2019-09-12 15:59:40 +02:00
Johannes Zellner a99d31535c Always show configure icon in app grid for now 2019-09-12 14:40:16 +02:00
Johannes Zellner fda8791d5a app postprocess is already run in getApp 2019-09-12 12:18:10 +02:00
Girish Ramakrishnan 9e2ac31a08 Make mail list members a textarea
Also, fix the error handling
2019-09-11 14:40:57 -07:00
Johannes Zellner 758b32a61c Add initial task popup for apptasks 2019-09-11 21:24:45 +02:00
Johannes Zellner 62b392e555 Do not throw error if app is null in state label filter 2019-09-11 21:24:45 +02:00
Johannes Zellner a4c99fd361 Move all app configure tasks to separate view 2019-09-11 21:24:45 +02:00
Girish Ramakrishnan 8823656d70 add new installationStates 2019-09-10 14:30:44 -07:00
Girish Ramakrishnan b82f5da112 Fixup event log for app configure 2019-09-10 14:18:44 -07:00
Girish Ramakrishnan 729f51b779 Make email a separate tab
This allows us to add some additional info that the app is pre-configured
to send email via the relay
2019-09-08 12:52:34 -07:00
Girish Ramakrishnan 1c1171e8a7 Add help link for relay 2019-09-08 12:23:27 -07:00
Johannes Zellner 44df319ff6 Do not show error page in notification on proxy upstream errors
This handles box being down and nginx delivers error page.
We do not want to show that in the notification, but other box crash
errors should be shown, they need to be fixed
2019-09-07 09:40:03 +02:00
Johannes Zellner 84dec337f0 Prevent angular errors when there is no appError.app set yet 2019-09-07 09:24:45 +02:00
Girish Ramakrishnan 2e60a9d43c init creatingBackup variable 2019-09-06 15:29:59 -07:00
Girish Ramakrishnan 4474766526 Hide when backup is active 2019-09-06 15:27:03 -07:00
Girish Ramakrishnan ddc1d8117d from -> using 2019-09-06 14:39:39 -07:00
Girish Ramakrishnan 609bae4f1a Use reason code 2019-09-05 19:23:58 -07:00
Girish Ramakrishnan ff16a4334f Move showError into appError scope 2019-09-05 17:50:10 -07:00
Johannes Zellner 739e308c0e Make offline banner a link to the troubleshooting page 2019-09-06 00:14:05 +02:00
Johannes Zellner 6b29f57e1d Give useful information when box crashes or a request is otherwise terminated 2019-09-06 00:01:41 +02:00
Johannes Zellner 21981829fd Make Client.error() persistent and allow to pass an action 2019-09-06 00:01:41 +02:00
Johannes Zellner b6e00a3107 Do not redirect to error.html if the angular main application fails to init
We now only show the offline banner and retry the application init until
box comes back up
2019-09-05 22:23:28 +02:00
Johannes Zellner 8b8b137cad Fix rest api wrapper usage 2019-09-05 22:23:28 +02:00
Girish Ramakrishnan 1ba1286df0 cloudron -> server 2019-09-05 12:28:04 -07:00
Girish Ramakrishnan 0417a82f83 Show error if graph loading fails 2019-09-05 12:23:53 -07:00
Girish Ramakrishnan 4cc01a2152 Move optional field to the end 2019-09-05 11:38:55 -07:00
Girish Ramakrishnan c7d434a091 Show backup progress inline 2019-09-05 11:30:27 -07:00
Girish Ramakrishnan 3e1e704a7f Bring back app progress message 2019-09-05 10:05:01 -07:00
Girish Ramakrishnan 12a9dcaa76 Better blocking update text 2019-09-04 21:10:34 -07:00
Girish Ramakrishnan fc2dd148c5 The tooltip is useful to track progress 2019-09-04 21:10:34 -07:00
Johannes Zellner ede6f36913 ng-cloak the offline bannder 2019-09-04 22:09:10 +02:00
Girish Ramakrishnan f85143fb7b Add links to docs in user dialog for disable and admin 2019-09-04 11:06:49 -07:00
Girish Ramakrishnan bbf3043fc3 graphs: add label to app tool tips 2019-09-04 09:20:05 -07:00
Girish Ramakrishnan bbd73d361a Fixup error handling in apps view 2019-09-03 15:18:05 -07:00
Girish Ramakrishnan 7d44c87aff Use error codes and fields 2019-09-02 17:28:40 -07:00
Girish Ramakrishnan 7e81041b87 Use reason code for better error handling 2019-09-02 13:18:19 -07:00
Girish Ramakrishnan e30698459b Use data.success before grabbing the error 2019-08-30 14:24:59 -07:00
Johannes Zellner 42399469a7 Prevent non-admins from showing the repair modal 2019-08-30 21:24:00 +02:00
Johannes Zellner 8ccc7bb734 Remove wrench and add action description on error 2019-08-30 21:21:44 +02:00
Girish Ramakrishnan 38a7c222a8 app.error is now an object 2019-08-30 11:38:31 -07:00
Johannes Zellner 9ea21606e5 Only show external ldap settings when ?ldap query is passed for now 2019-08-30 19:01:56 +02:00
Johannes Zellner c809119d57 Ensure hand cursor is correctly shown also in error states 2019-08-30 18:15:34 +02:00
Johannes Zellner b8ca009e69 Revert "Always show the hand cursor in app grid items"
This reverts commit 9df90e4edc.
2019-08-30 17:20:21 +02:00
Johannes Zellner 1e37d7da7d Refresh the user lising after ldap sync 2019-08-30 16:56:01 +02:00
Johannes Zellner 9df90e4edc Always show the hand cursor in app grid items 2019-08-30 16:51:50 +02:00
Johannes Zellner 4576e93deb Hide user account actions for external ldap users 2019-08-30 13:36:52 +02:00
Johannes Zellner ea5e0b28da Hide certain user profile actions for external ldap users 2019-08-30 13:32:20 +02:00
Johannes Zellner 19c8a01969 Add more description how ldap sync works 2019-08-30 13:09:44 +02:00
Johannes Zellner ebab88e7aa Rework the external ldap ui to follow usual modal dialog pattern 2019-08-30 12:40:23 +02:00
Johannes Zellner b4248acd9a There is no ng-enabled, only ng-disabled 2019-08-30 12:34:31 +02:00
Johannes Zellner c303174f0b Usernames can be even 1 character long 2019-08-30 11:02:07 +02:00
Johannes Zellner 91cf6465df Give external ldap sync task feedback 2019-08-30 10:20:08 +02:00
Johannes Zellner 426d2aab09 Add ability to trigger external ldap syncer task 2019-08-30 10:20:08 +02:00
Johannes Zellner 8c44e558a8 Add external LDAP configuration 2019-08-30 10:20:08 +02:00
Girish Ramakrishnan 6a08e08d7c Show errorMessage 2019-08-29 18:59:13 -07:00
Girish Ramakrishnan 2796ad12fe Show app cancel busy indicator 2019-08-29 14:51:21 -07:00
Girish Ramakrishnan 45d40297bf refresh app cache on cancel 2019-08-29 14:35:39 -07:00
Girish Ramakrishnan 57ac37c210 Fix configure/repair button text 2019-08-29 14:34:04 -07:00
Girish Ramakrishnan 8eee0b809c Add cancel action for active app tasks 2019-08-29 14:30:25 -07:00
Girish Ramakrishnan 5387054000 Refactor update functions 2019-08-29 11:33:22 -07:00
Girish Ramakrishnan e08f072d95 Refactor uninstall functions 2019-08-29 11:30:37 -07:00
Girish Ramakrishnan 44db2ca02a lint 2019-08-29 11:18:02 -07:00
Girish Ramakrishnan dc8564d18e Remove force update state 2019-08-29 10:59:15 -07:00
Girish Ramakrishnan 3b8bc9fdab Rename pending to queued 2019-08-28 22:13:28 -07:00
Girish Ramakrishnan c5d65fa030 typo 2019-08-28 22:12:24 -07:00
Girish Ramakrishnan 0252b08c8f Remove app task crash action 2019-08-28 16:03:17 -07:00
Girish Ramakrishnan 8f29b7a91f Use task api to get app progress 2019-08-28 16:03:17 -07:00
Johannes Zellner 19e1bbdc1c Add missing graphite log viewer entry 2019-08-27 14:54:39 +02:00
Johannes Zellner cd2baf105f Fix next color helper 2019-08-22 18:38:32 +02:00
Johannes Zellner 3366acde58 prettyDiskSize should return something descriptive instead of NaN
undefined
2019-08-22 18:37:32 +02:00
Johannes Zellner 775f6eff0b We are in the browser, avoid const 2019-08-22 18:33:37 +02:00
Girish Ramakrishnan 52d501dae8 use app label if available 2019-08-21 14:59:55 -07:00
Girish Ramakrishnan eb24baf2c1 Better prettyDiskDize 2019-08-21 14:57:59 -07:00
Johannes Zellner 7fd0ef51b5 Use more consistent theme colors 2019-08-21 20:46:26 +02:00
Johannes Zellner 173acc5226 Show disk content separately inside the usage graph 2019-08-21 20:27:43 +02:00
Johannes Zellner 6643b825ee Fixup the disk usage gathering 2019-08-21 12:08:19 +02:00
Girish Ramakrishnan a56f20584f add note 2019-08-20 19:38:53 -07:00
Girish Ramakrishnan 22664bea62 Add options to graphs 2019-08-20 19:38:32 -07:00
Johannes Zellner f80bf65076 Fetch du- data for disk contents 2019-08-20 13:00:45 +02:00
Johannes Zellner 28634c59c8 Get the correct df data from graphite 2019-08-20 12:36:06 +02:00
Johannes Zellner 993377a40b Show email and docker data location in graphs 2019-08-20 12:23:07 +02:00
Girish Ramakrishnan 9633733bc4 Clarify that this is ubuntu related 2019-08-19 13:56:25 -07:00
Johannes Zellner 6b4893b854 Rework disk usage graphs and give more information what is installed where 2019-08-19 16:50:03 +02:00
Johannes Zellner 09f7c35dac Show red badge and subscription expired page depending on the subscriptipn status 2019-08-19 12:11:11 +02:00
Johannes Zellner 0fc4169b0b correctly display premium app requirement page 2019-08-19 09:13:37 +02:00
Johannes Zellner 78746be0f5 Distinguish between too many apps and premium apps 2019-08-14 16:38:02 +02:00
Johannes Zellner 2287a550d7 Move subscription setup outlink button inside iframe for better label control 2019-08-14 15:48:10 +02:00
Johannes Zellner d6eb6d3318 Add small indicator if no users have been found 2019-08-13 15:30:40 +02:00
Girish Ramakrishnan db2d36eaa1 Show ban icon for inactive users 2019-08-08 08:30:29 -07:00
Girish Ramakrishnan 151d20341e Add checkbox for user active 2019-08-08 08:25:59 -07:00
Johannes Zellner 2c51bc17f1 Reduce iframe size 2019-08-06 14:16:35 +02:00
Johannes Zellner 0448ad49ed Allow our appstore origins explicitly 2019-08-06 10:24:35 +02:00
Johannes Zellner 2d4129f8f7 Fix typo 2019-08-06 10:22:00 +02:00
Johannes Zellner c42aa7c806 Remove caas case in setup screen 2019-08-06 10:03:12 +02:00
Johannes Zellner debeb8dfd8 Ignore setup page info button in tab focus 2019-08-06 09:59:06 +02:00
Johannes Zellner 2227e1dd4b Allow to specify the appstore subscription helper origins 2019-08-05 20:32:56 +02:00
Johannes Zellner 1d7e73c162 Fix indentation 2019-08-05 20:04:27 +02:00
Johannes Zellner 3f451856a0 adjust to appstore filename change 2019-08-04 11:38:09 +02:00
Johannes Zellner fdd0483c9f Allow localhost development iframe sources 2019-08-04 11:32:42 +02:00
Girish Ramakrishnan c1a49a52e8 Remove the newline 2019-08-03 10:33:56 -07:00
Girish Ramakrishnan d8394392c9 Fix tooltip 2019-08-03 09:43:30 -07:00
Girish Ramakrishnan eb7a037f94 comment out display raw json event 2019-08-03 09:37:29 -07:00
Girish Ramakrishnan eb905aab86 Add SPF doc links
Fixes cloudron/box#636
2019-08-02 13:30:45 -07:00
Girish Ramakrishnan 55892097d7 Fix error message when clicking on unhealthy app
Fixes cloudron/box#643
2019-07-31 11:48:38 -07:00
Girish Ramakrishnan 6bfcda9fdc Send app object to message filters
this lets us access the state of an app
2019-07-31 11:40:18 -07:00
Girish Ramakrishnan 02dcbb9a52 Add some comments on the various labels 2019-07-31 11:38:28 -07:00
Johannes Zellner 0c6a6e4173 Show premium app required site from appstore 2019-07-31 08:09:43 +02:00
Johannes Zellner e044251df4 Show subscription setup page from appstore 2019-07-31 08:09:43 +02:00
Johannes Zellner 26d27a3f6a Allow iframes from *cloudron.io 2019-07-31 08:09:43 +02:00
Girish Ramakrishnan c5b9fccedb Add wasabi to restore UI 2019-07-30 10:42:18 -07:00
Girish Ramakrishnan 0153e5212c Allow restore from IP 2019-07-26 22:43:59 -07:00
Girish Ramakrishnan 92835a5270 Show warning when sendmail is disabled for a domain 2019-07-24 22:11:05 -07:00
Girish Ramakrishnan 5f41c78305 Add wasabi 2019-07-22 16:57:01 -07:00
Johannes Zellner 1726b89dea Ensure large notification markdown payloads do not overflow the UI 2019-07-17 16:40:10 +02:00
Girish Ramakrishnan 2506e69cdc Add SparkPost as mail relay 2019-07-15 10:49:13 -07:00
Johannes Zellner 88bc30bbea Rework the restore/clone dialogs 2019-07-12 17:18:21 +02:00
Girish Ramakrishnan 2835d1bd87 We now have free trial 2019-07-11 11:18:48 -07:00
Girish Ramakrishnan e590896f01 appstore: handle 402 2019-07-08 09:58:50 -07:00
Girish Ramakrishnan dfb0836446 Revert "Enable dataDir setting"
This reverts commit 9515a060ab.
2019-07-03 07:53:30 -07:00
Girish Ramakrishnan 88fdd1f562 Remove ownerId use 2019-07-02 20:22:06 -07:00
Girish Ramakrishnan ae07c7934e Fix login issue when admin is revoked
If this ex-admin user had installed an app, then we try to get app details
(since he is the owner) and we go into a loop
2019-07-02 19:02:39 -07:00
Girish Ramakrishnan 9515a060ab Enable dataDir setting 2019-06-25 10:49:39 -07:00
Girish Ramakrishnan c550416c9d reset the app icon on show 2019-06-21 13:30:33 -07:00
Girish Ramakrishnan 712883373a scaleway-os: restore UI 2019-06-21 11:10:19 -07:00
Girish Ramakrishnan 50930ee609 exoscale: do not overwrite endpoint 2019-06-21 10:46:07 -07:00
Girish Ramakrishnan 78bffad99f exoscale: add CH-GVA-2 2019-06-21 10:44:24 -07:00
Girish Ramakrishnan b3760a961d Prefix the env vars with CLOUDRON_ for manifest v2 2019-06-19 09:16:41 -07:00
Girish Ramakrishnan 813d92ce32 Show domain removal error
this got removed by mistake with the password edit
2019-06-18 11:38:30 -07:00
Girish Ramakrishnan b02570e679 Hide data dir UI again for this release 2019-06-13 15:14:25 -07:00
Girish Ramakrishnan b7d1979d0d Always show the DNS status section 2019-06-12 17:48:06 -07:00
Johannes Zellner 6e6846835a Do not create notification links with target blank
Most links are pointing the user within the dashboard
2019-06-12 16:15:55 +02:00
Johannes Zellner d899935b56 Add Digitalocean Spaces Frankfurt region 2019-06-12 10:11:46 +02:00
Girish Ramakrishnan 2a07c063ab deleting app does not remove backups 2019-06-08 11:08:16 -07:00
Johannes Zellner 3ab9d77930 Give alternate domain rows some space 2019-06-05 20:22:44 +02:00
Johannes Zellner 5537507646 Distinguish alternate and main domain errors 2019-06-05 20:22:34 +02:00
Girish Ramakrishnan 215dd03751 Show dataDir UI 2019-06-01 09:05:15 -07:00
Girish Ramakrishnan 3fe73ba198 Move dataDir and memory to resources section 2019-06-01 09:02:05 -07:00
Girish Ramakrishnan 6bc7edea67 Revert "Attempt to finally fix checkboxes and radio button layout"
This reverts commit f95a98d3ee.

This breaks access restriction page spacing
2019-05-31 15:24:13 -07:00
Girish Ramakrishnan c44e69c396 Add help link for redirection 2019-05-31 14:41:47 -07:00
Girish Ramakrishnan f6ad697755 Replace big plus button with text link 2019-05-31 14:39:35 -07:00
Girish Ramakrishnan 2abca93333 Make the preview icon smaller 2019-05-31 14:25:03 -07:00
Girish Ramakrishnan 788e7c40e9 Add Access tab to configure UI 2019-05-31 14:14:34 -07:00
Johannes Zellner dca43f3e57 Allow to configure more than one alternate domain 2019-05-31 15:19:07 +02:00
Johannes Zellner f95a98d3ee Attempt to finally fix checkboxes and radio button layout 2019-05-31 12:31:02 +02:00
Girish Ramakrishnan 11fe3dc492 support: show create ticket result 2019-05-28 10:04:18 -07:00
Girish Ramakrishnan 4277244150 fix text: Event Log 2019-05-24 19:03:13 -07:00
Girish Ramakrishnan 8458bcf10e make the info text small 2019-05-24 10:28:42 -07:00
Girish Ramakrishnan 6c8c7751fd Add note that access control allows SFTP access 2019-05-24 10:25:34 -07:00
Girish Ramakrishnan d6096d04d9 remove twitter from footer 2019-05-22 11:56:55 -07:00
Girish Ramakrishnan bffe6327a0 setup: have a single error object 2019-05-22 11:14:33 -07:00
Girish Ramakrishnan 28845d6f33 state and not status 2019-05-22 10:50:58 -07:00
Girish Ramakrishnan 6ec7da9071 fix text 2019-05-22 09:38:13 -07:00
Johannes Zellner 5dbe564afb Use the same size aspect ratio for custom app icon selector as in the app grid 2019-05-22 09:32:10 +02:00
Johannes Zellner 4794791167 Style the custom app icon configuration the same way the avatar is 2019-05-22 09:29:17 +02:00
Girish Ramakrishnan 7b2ae2c457 Make reset show the original icon 2019-05-21 00:18:29 -07:00
Girish Ramakrishnan f0093c5e4f Add random string to icon to invalidate it 2019-05-21 00:06:33 -07:00
Girish Ramakrishnan 96117216ee Allow icon to be set 2019-05-20 22:24:58 -07:00
Girish Ramakrishnan 9982557909 setAdmin is unused 2019-05-20 19:05:31 -07:00
Girish Ramakrishnan 530331f9ee Fix texts in dialogs 2019-05-20 19:05:12 -07:00
Girish Ramakrishnan 23018abdf6 Put some text in delete user dialog 2019-05-20 19:05:12 -07:00
Girish Ramakrishnan 23b72620a1 domain remove does not require password 2019-05-20 19:05:08 -07:00
Girish Ramakrishnan a80c21d77f domainMigrate is unused 2019-05-20 18:58:33 -07:00
Johannes Zellner 765307ddef Fix domain filter select 2019-05-20 23:40:02 +02:00
Johannes Zellner 9a859629bc Remove unused usedDomains 2019-05-20 23:23:07 +02:00
Johannes Zellner cc7b203f93 Only allow selecting one domain in the apps filter 2019-05-20 21:06:13 +02:00
Girish Ramakrishnan 8744eadca0 Fixup text 2019-05-20 10:55:46 -07:00
Girish Ramakrishnan 76eaee5b1a Remove X-Frame-Options 2019-05-20 10:10:36 -07:00
Girish Ramakrishnan 7adde2a880 Make tag matching an AND operation 2019-05-17 13:01:23 -07:00
Girish Ramakrishnan c02eced029 no comma 2019-05-16 10:14:29 -07:00
Girish Ramakrishnan ad5ca50273 filter on alt domains also 2019-05-16 09:55:24 -07:00
Girish Ramakrishnan 767756ba9b sort the tags 2019-05-16 09:42:34 -07:00
Girish Ramakrishnan c3cf5ff84c Use changeDashboardDomain custom config 2019-05-14 19:21:15 -07:00
Girish Ramakrishnan a82c790855 Always show the change dashboard domain
otherwise, people don't know this feature exists!
2019-05-14 19:12:45 -07:00
Johannes Zellner 4b22e3e0a8 Hide the token, session and oauch client ui for non admins 2019-05-14 16:55:29 +02:00
Johannes Zellner 2039a143ac Do not crash if some apis are only for admins 2019-05-14 16:41:08 +02:00
Girish Ramakrishnan 84473dc10d poll subscription status only when button got clicked
otherwise, both stripe, our appstore db is bombarded
2019-05-13 16:40:51 -07:00
Girish Ramakrishnan 5695da1d86 refresh notifications every minute
no reason to bombard the server, it's not like this is realtime
2019-05-13 16:13:09 -07:00
Johannes Zellner 30583cce21 Do not require password for user and group deletion 2019-05-13 23:55:54 +02:00
Johannes Zellner 27c7c0438f account password change now returns 400 2019-05-13 23:42:06 +02:00
Johannes Zellner b67d5eec3d Remove password requirement for app uninstall and restore 2019-05-13 23:31:45 +02:00
Johannes Zellner 7c2ea6288c Fix the default app grid with to avoid occasional overflow 2019-05-13 23:04:40 +02:00
Johannes Zellner 9a1d71face Prevent notification collapse toggle when attempting selecting message details 2019-05-13 21:06:20 +02:00
Girish Ramakrishnan 8e346bf676 Add checkbox to skip backup 2019-05-12 13:44:10 -07:00
Johannes Zellner 53a00a8d76 markdown injects block elements so break out the version 2019-05-11 13:48:22 +02:00
Johannes Zellner ea1e556197 Allow the footer content to be configured 2019-05-11 13:33:02 +02:00
Johannes Zellner 402d75bfe0 Make the ssh remote support text more generic 2019-05-11 13:26:21 +02:00
Johannes Zellner a444b61edf Remove twitter link from footer and pull version to the right 2019-05-11 10:24:11 +02:00
Johannes Zellner ce41af14db Make sure the tooltip text does not get cropped 2019-05-11 10:04:21 +02:00
Girish Ramakrishnan d52d606088 Use ticketBodyMarkdown 2019-05-10 17:35:51 -07:00
Girish Ramakrishnan 475311f63a Fixup uiSpec use 2019-05-10 16:09:13 -07:00
Johannes Zellner 5509089c49 Fixup the checkbox dom 2019-05-10 23:47:36 +02:00
Girish Ramakrishnan 3698220b8f features -> uiSpec 2019-05-10 11:23:53 -07:00
Girish Ramakrishnan b22dba00a2 Make login work after user becomes admin 2019-05-10 09:45:37 -07:00
Girish Ramakrishnan 3d8ec5531c Fix avatarUrl use 2019-05-10 09:27:43 -07:00
Girish Ramakrishnan 7df0ae0ba3 Allow email to be enabled without dns setup
This helps in importing existing mail and also configuring mailboxes
before going live
2019-05-09 15:41:37 -07:00
Johannes Zellner 05d37cc6c6 Show domain filter only if we have more than one domain 2019-05-09 19:48:00 +02:00
Johannes Zellner df03f783f8 Change the demo link 2019-05-08 18:46:41 +02:00
Girish Ramakrishnan cd9263711f feedback -> ticket 2019-05-07 11:36:12 -07:00
Girish Ramakrishnan 48c3372c33 Use config.features to customize UI 2019-05-07 10:11:54 -07:00
Girish Ramakrishnan 5d1ff97bf3 remove edition flag 2019-05-06 20:05:18 -07:00
Girish Ramakrishnan 1decfe8063 Show proper error if available 2019-05-06 20:05:12 -07:00
Johannes Zellner a3d0ffb7de Avoid throwing error on quick view switch away from the appstore 2019-05-06 11:47:57 +02:00
Johannes Zellner 59a54f8683 Do not show error and empty appstore details if not yet setup 2019-05-06 11:39:45 +02:00
Johannes Zellner 83e2bd6ade Distinguish between not yet registered and invalid appstore token
This is to avoid throwing errors
2019-05-06 11:07:20 +02:00
Girish Ramakrishnan a59aca10ec Fixup subscription routes 2019-05-05 13:02:23 -07:00
Girish Ramakrishnan 9ac6e65087 Wait for app list before setting ready flag 2019-05-05 11:52:42 -07:00
Girish Ramakrishnan deb8e117ad After login/register, get the latest subscription 2019-05-05 11:28:42 -07:00
Girish Ramakrishnan 9c3cae5eca lint: quotes 2019-05-05 09:05:06 -07:00
Girish Ramakrishnan 1fbbeba5bc Get subscription first and then get apps 2019-05-05 08:16:33 -07:00
Girish Ramakrishnan 8317972078 Fix typo when fetching groups 2019-05-05 07:40:11 -07:00
Girish Ramakrishnan 0a9947dbb9 No need to get unstable config
this is now handled in the backend
2019-05-05 07:38:34 -07:00
Girish Ramakrishnan 51521926e7 Use new registration API 2019-05-04 22:02:02 -07:00
Girish Ramakrishnan 8e08ac2ce1 Use new subscription API in settings controller 2019-05-04 21:57:53 -07:00
Girish Ramakrishnan fec82d127e Use the new getSubscription API in main controller 2019-05-04 21:57:49 -07:00
Girish Ramakrishnan ceb0770ea0 Add the subscription API 2019-05-04 19:22:24 -07:00
Girish Ramakrishnan 34eadebe00 Remove spaces code 2019-05-04 18:43:59 -07:00
Girish Ramakrishnan e7f614cdf3 Remove unused caas functions 2019-05-04 18:23:32 -07:00
Girish Ramakrishnan 18507f79b1 Use the new appstore API 2019-05-04 18:22:41 -07:00
Johannes Zellner ee1c7dbf03 Mark unstable apps in the appstore view 2019-05-03 15:56:59 +02:00
Girish Ramakrishnan 868af95ff2 appstore: remove unused getCloudronDetails 2019-05-02 15:28:07 -07:00
Johannes Zellner 01f59d39e0 Support unstable app listing setting in appstore view 2019-04-29 14:58:42 +02:00
Johannes Zellner 0226a5603d Add settings UI to enable unstable apps listing 2019-04-27 22:44:41 +02:00
Girish Ramakrishnan 1629be3788 Add tag placeholder 2019-04-25 10:49:07 -07:00
Johannes Zellner 480bc630da show app label if present 2019-04-24 14:31:52 +02:00
Johannes Zellner 165cc279de Allow to set app label 2019-04-24 14:25:37 +02:00
Girish Ramakrishnan 2ec5a2acff List unstable apps by default 2019-04-23 21:16:11 -07:00
Girish Ramakrishnan 6914e83dde Typo 2019-04-23 15:47:20 -07:00
Girish Ramakrishnan 263762c0bc relay: Add UI to accept self-signed certs 2019-04-23 15:44:18 -07:00
Girish Ramakrishnan f8b8a574a6 Add new provider with no auth 2019-04-22 17:00:34 -07:00
Girish Ramakrishnan 79c80b351d relay: remove hardcoding of providers 2019-04-22 16:56:43 -07:00
Girish Ramakrishnan 2c86fb17fc Revert "Allow empty mail relay username/password"
This reverts commit 2680b415c6.
2019-04-22 15:46:07 -07:00
Girish Ramakrishnan e205ffafdf Fix wording 2019-04-22 11:15:57 -07:00
Johannes Zellner 2680b415c6 Allow empty mail relay username/password 2019-04-22 14:48:32 +02:00
Johannes Zellner 62d8b35545 Bring back old update badge 2019-04-16 09:21:20 +02:00
Johannes Zellner 2b578efdd6 Do not add empty app tags 2019-04-15 15:44:02 +02:00
Johannes Zellner a7f37df34d only show tag or domains filter if any are available 2019-04-15 14:38:35 +02:00
Johannes Zellner 3edb119422 Remove unused function 2019-04-15 14:36:15 +02:00
Johannes Zellner 07d4d5051a Simplify the app grid filter to basic dropdowns for now 2019-04-15 14:31:12 +02:00
Girish Ramakrishnan 0b8e5a75f1 Fix backup route 2019-04-13 18:09:56 -07:00
Girish Ramakrishnan f263c73df7 Add scaleway object storage 2019-04-12 10:56:12 -07:00
Johannes Zellner f89f201764 Show initial tag sidebar 2019-04-12 11:06:56 +02:00
Johannes Zellner 9f8dcdf8ea Revert "Initial attempt to show tags on the apps if any"
This reverts commit f3baf31dcd.
2019-04-12 09:52:47 +02:00
Johannes Zellner f3baf31dcd Initial attempt to show tags on the apps if any 2019-04-11 18:43:03 +02:00
Johannes Zellner a9400785ca Add ability to attach freeform text tags to apps 2019-04-11 18:43:01 +02:00
Johannes Zellner 7c76ad2088 Fix reboot button explanation to not confuse the user when reboot is in fact required 2019-04-09 11:17:11 +02:00
Girish Ramakrishnan 6a5839d8cd Add sftp logs 2019-04-05 11:01:47 -07:00
Girish Ramakrishnan 744f39623f Make restart button always animate 2019-04-05 10:59:46 -07:00
Girish Ramakrishnan 97e57c74e4 Update progress every 3 secs 2019-04-03 11:46:02 -07:00
Johannes Zellner ff0d6b658b Simplify app icon handling
Previously we even attempted to use an appstore origin icon
2019-04-03 14:43:22 +02:00
Johannes Zellner 1c946a438d Simplify app grid item dom 2019-04-02 13:17:30 +02:00
Johannes Zellner 9b047a1927 Simplify the update indicator 2019-04-02 13:11:00 +02:00
Johannes Zellner 3fc6141d57 Use exact domain matching to filter apps for a domain 2019-04-02 12:41:23 +02:00
Johannes Zellner daf7e2313b Reduce domain header font size 2019-03-25 16:33:49 +01:00
Johannes Zellner 75642d785e Only show the headers if we have more than one domain with apps 2019-03-25 16:32:15 +01:00
Johannes Zellner 2621b5c047 Ensure we set the correct display type on the app actions 2019-03-25 16:31:49 +01:00
Johannes Zellner 57cb9a1d0b Only show domains where apps are installed at 2019-03-25 16:17:53 +01:00
Johannes Zellner 6318ae046c Make app actions always visible on mobile
Not great at all, but until we have a better idea at least it is
functional
2019-03-25 16:01:14 +01:00
Johannes Zellner 57a41cde9d Group apps by domain 2019-03-25 10:42:31 +01:00
Johannes Zellner ac86b7a954 Add sftp description in dashboard 2019-03-20 21:29:24 -07:00
Johannes Zellner 0bc500e34f Add robots.txt template 2019-03-20 09:53:10 -07:00
Johannes Zellner a60e065e43 Make the documentation link a more visible button 2019-03-20 09:32:33 -07:00
Johannes Zellner 5563b6a786 Show upstream version if available in the info dialog 2019-03-20 09:22:54 -07:00
Girish Ramakrishnan 0345c52aba Add noop relay backend
Part of cloudron/box#622
2019-03-15 14:25:19 -07:00
Girish Ramakrishnan 05c858df9e Default to DO for mp image 2019-03-11 18:44:48 -07:00
Girish Ramakrishnan 0b4ef21762 DO typo 2019-03-11 18:44:38 -07:00
Girish Ramakrishnan 64a58921a8 caas: show notifications
update notification will be moved to backend
2019-03-07 13:25:20 -08:00
Girish Ramakrishnan b96098b909 Fix wording a bit more 2019-03-06 09:56:15 -08:00
Johannes Zellner b1dbb2c408 Show when a subscription is already canceled 2019-03-06 15:54:51 +01:00
Johannes Zellner 3b1a08c67e Add pretty date only showing date 2019-03-06 15:54:21 +01:00
Johannes Zellner 07d37e133f more users is not part of the paid plans 2019-03-06 14:32:29 +01:00
Girish Ramakrishnan 161eb8bef9 reduce the timeout 2019-03-04 21:47:14 -08:00
Girish Ramakrishnan eb518c673c Revert "Revert "Hide dataDir setting for this release""
This reverts commit 347c8a8716.
2019-03-04 18:16:40 -08:00
Girish Ramakrishnan 6f32a0d6de Use encodeURIComponent for encoding query params 2019-03-04 12:59:41 -08:00
Girish Ramakrishnan b0684ce29c encode the filename 2019-03-04 11:54:41 -08:00
Girish Ramakrishnan b2c8a4d8ef Pass crashId to view crash logs 2019-03-01 16:35:52 -08:00
Johannes Zellner d09ac5bcc6 stop notification click event propagation 2019-02-28 15:56:19 +01:00
Girish Ramakrishnan c25c3e9daa never show hyphenatedSubdomains UI
can't think of a case where this is required in the UI. for the hosting
provider, they will have to do API automation for the initial domain
setup anyway.
2019-02-26 17:16:01 -08:00
Johannes Zellner c1cb5c36a1 Remove unnecessary elements 2019-02-24 19:18:43 +01:00
Johannes Zellner 20118f941e Show clipboard copy indication 2019-02-24 19:17:38 +01:00
Johannes Zellner f40eee4577 Update package lock 2019-02-24 19:16:57 +01:00
Girish Ramakrishnan bee05afc87 Add button to copy the backup id 2019-02-23 19:33:48 -08:00
Girish Ramakrishnan efdc533849 Update to gulp 4 2019-02-21 14:54:16 -08:00
Girish Ramakrishnan 1f7c6d59c1 Update modules for latest node 2019-02-21 14:14:28 -08:00
Girish Ramakrishnan 981622f414 Add games section 2019-02-21 10:17:41 -08:00
Girish Ramakrishnan 347c8a8716 Revert "Hide dataDir setting for this release"
This reverts commit 7424a226c9.
2019-02-19 14:52:24 -08:00
Girish Ramakrishnan 4542564709 Move reboot required check to server side notification 2019-02-19 09:15:15 -08:00
Girish Ramakrishnan cb889ce06d token now has an id 2019-02-15 14:21:10 -08:00
Girish Ramakrishnan db54a305b0 Token is now shown again anymore 2019-02-15 13:29:16 -08:00
Girish Ramakrishnan 8ccf17543a abbreviate version 2019-02-11 14:53:23 -08:00
Girish Ramakrishnan 72e99885aa Fix wording 2019-02-11 14:50:03 -08:00
Girish Ramakrishnan 18d2a9cab6 do not use audit source to generate the details 2019-02-11 14:38:05 -08:00
Girish Ramakrishnan 9c57702afc keep it sorted 2019-02-11 13:03:12 -08:00
Girish Ramakrishnan b708eb94d2 Add app up event 2019-02-11 12:34:47 -08:00
Girish Ramakrishnan 82c5531d04 render notification message as markdown 2019-02-10 23:11:14 -08:00
Girish Ramakrishnan e6f49b2d3b Add Email troubleshooting links 2019-02-10 21:04:42 -08:00
Girish Ramakrishnan 8ac97e2c8f Add help links in the backup ui 2019-02-10 17:05:11 -08:00
Johannes Zellner db7174b0f3 Fixup long tooltip in setup email field 2019-02-10 08:52:54 +01:00
Girish Ramakrishnan a47911048c use data.fqdn to show full domain name 2019-02-09 16:49:06 -08:00
Girish Ramakrishnan 5a2bdbf966 Fix link 2019-02-09 16:41:18 -08:00
Girish Ramakrishnan aa562228ef plural 2019-02-09 16:34:56 -08:00
Girish Ramakrishnan 98a70aedf2 Add doc links for zone name and cert provider 2019-02-09 10:17:01 -08:00
Girish Ramakrishnan 9b9da5664b namecheap: use token instead of ApiKey 2019-02-08 20:33:21 -08:00
Girish Ramakrishnan 2f2314d2f8 Clarify 2019-02-08 14:54:24 -08:00
Girish Ramakrishnan 715ebf0747 Remove password max-length restriction
The backend has a limit of 256
2019-02-08 09:50:41 -08:00
Johannes Zellner bb0443b967 Attempt to parse the notification message as json and show accordingly 2019-02-08 14:05:31 +01:00
Johannes Zellner 2cf0b528f0 Ensure the notification badge has plenty of space 2019-02-08 14:05:31 +01:00
Girish Ramakrishnan 6a95d481f0 Fix domain setup help links 2019-02-06 16:11:24 -08:00
Girish Ramakrishnan d281b21832 bump license year 2019-02-06 15:36:06 -08:00
Johannes Zellner 1d5cf43e68 Remove unused style selector 2019-02-06 17:29:23 +01:00
Johannes Zellner 6d6b2300a8 Make danger color more popping 2019-02-06 17:28:01 +01:00
Johannes Zellner 640ee55772 Handle notifications without an eventId 2019-02-06 16:33:57 +01:00
Johannes Zellner 7ec12f487b Remove client side backup configuration checks 2019-02-06 15:48:35 +01:00
Johannes Zellner 63b42d64b1 Cleanup some code 2019-02-05 16:41:17 +01:00
Johannes Zellner 667506172a Do not rely on the whole app object in the event but use appId 2019-02-05 16:40:46 +01:00
Girish Ramakrishnan 518bb74fbf Add dashboard domain update event 2019-02-04 20:24:23 -08:00
Girish Ramakrishnan 9038538718 inform user about email records as well 2019-02-04 20:02:26 -08:00
Girish Ramakrishnan 5234f50453 Show email UI even if domain is disabled
This way when a user tries to delete a domain, he can still clear
the mailboxes.

Fixes cloudron/box##610
2019-01-31 12:24:27 -08:00
Girish Ramakrishnan 6eabf73ece typo 2019-01-25 10:15:17 -08:00
Johannes Zellner 651d01564d Add link to docs when using namecheap for email 2019-01-25 13:39:42 +01:00
Girish Ramakrishnan 52cdec8d3c Pass the task id to stopTask 2019-01-24 15:56:17 -08:00
Girish Ramakrishnan 998c9bdeb7 clone: Do not send disabled ports
fixes cloudron/box#611
2019-01-24 10:06:00 -08:00
Girish Ramakrishnan 318ee89e89 restore: Add missing exoscale region dropdown 2019-01-23 18:04:43 -08:00
Johannes Zellner 031d7a1f18 Load eventlog details per notification 2019-01-23 17:04:28 +01:00
Girish Ramakrishnan 7424a226c9 Hide dataDir setting for this release
Let's keep this hidden till we fix the app repair issue
2019-01-22 11:38:53 -08:00
Johannes Zellner 30a1997fd9 Add missing html bits 2019-01-22 20:03:26 +01:00
Johannes Zellner 778ea0b720 add namecheap dns provider to dns setup 2019-01-22 16:45:48 +01:00
Johannes Zellner 353517f9c6 Add hint about IP whitelisting for namecheap 2019-01-22 14:35:17 +01:00
Johannes Zellner e651b2ee13 Add namecheap to domain config 2019-01-22 11:26:24 +01:00
Johannes Zellner 018b3a876f We use eslint by now, so make it as happy as it can be 2019-01-22 10:54:03 +01:00
Girish Ramakrishnan 1b9586011e Fix twitter icon in restore UI 2019-01-21 11:56:37 -08:00
Girish Ramakrishnan cb856ce2bb Fix error handling and tab focus 2019-01-19 22:08:29 -08:00
Johannes Zellner 8d3c1c9f9e Add more event types 2019-01-19 15:53:49 +01:00
Girish Ramakrishnan 1ec0f67b29 dataDir can be empty to revert back 2019-01-18 15:18:59 -08:00
Girish Ramakrishnan 093491c5b4 Make dataDir configurable 2019-01-17 09:21:38 -08:00
Johannes Zellner 56191d0cd9 Better text for app down eventlog item 2019-01-17 17:27:26 +01:00
Johannes Zellner 7342268eb8 Support app oom in eventlog 2019-01-17 17:23:34 +01:00
Johannes Zellner 3a09cbf42b Add app oom event type 2019-01-17 15:49:53 +01:00
Johannes Zellner b268368e3d Make linter happy 2019-01-17 13:26:47 +01:00
Johannes Zellner 59c8211c41 Do not show notification bubbles for notification items 2019-01-17 13:26:17 +01:00
Johannes Zellner 14560fff0a Hide notification action button 2019-01-17 13:21:54 +01:00
Johannes Zellner adf3172ebb Speed up user listing by performing parallel requests 2019-01-16 14:27:32 +01:00
Johannes Zellner 4ead9cbf6a Remove leftover copynpasted string 2019-01-16 13:16:10 +01:00
Girish Ramakrishnan 0863dc785f Just pass through all the data 2019-01-15 11:13:04 -08:00
Johannes Zellner 342538358d add pagination and filter panel to users view 2019-01-15 13:30:42 +01:00
Johannes Zellner a8b79055ef Better fix for tooltip overflow 2019-01-15 13:30:42 +01:00
Girish Ramakrishnan ec3be4c36a s3: Add Paris/Stockholm/Osaka 2019-01-14 09:57:50 -08:00
Girish Ramakrishnan 0a2ef0e041 update events in activitiy view 2019-01-14 09:29:00 -08:00
Johannes Zellner e7b623ea16 Use bootstrap tooltips in users view 2019-01-14 17:02:36 +01:00
Johannes Zellner 87777017a0 Ensure tooltips don't wrap text 2019-01-14 17:02:23 +01:00
Johannes Zellner bf2c7a18d1 Until the ui supports full pagination list up to 1k users 2019-01-14 16:57:41 +01:00
Girish Ramakrishnan b5505bcd87 Fixup restore eventlog 2019-01-13 14:54:19 -08:00
Girish Ramakrishnan bdf9fbae71 Fixup text 2019-01-12 10:08:32 -08:00
Girish Ramakrishnan 04c1afc9ce Add dyndns event 2019-01-12 09:58:30 -08:00
Girish Ramakrishnan 458c51bdaa Improve eventlog messages 2019-01-11 12:48:51 -08:00
Girish Ramakrishnan 90a736ba43 mailboxes: owner may not exist 2019-01-10 14:25:08 -08:00
Johannes Zellner 661ce4fc1d Ensure we callback if the request was killed by the browser 2019-01-10 14:37:43 +01:00
Johannes Zellner b764f1c861 For now make the notification bubble action go to notification view 2019-01-10 13:29:59 +01:00
Johannes Zellner 182949d8d2 Skip already acknowledged notifications on clear 2019-01-09 17:36:33 +01:00
Johannes Zellner a879bdeb47 Ensure busy states are reflected in the ui 2019-01-09 17:26:44 +01:00
Johannes Zellner 9c66a4ef4e Rework the notification style now that it is in its own view 2019-01-09 17:16:41 +01:00
Johannes Zellner d2d75b8e41 Move notifications into a separate view 2019-01-09 15:18:10 +01:00
Girish Ramakrishnan e36c15f770 lint 2019-01-08 20:46:39 -08:00
Girish Ramakrishnan 8dc6da2b7a Escape html tags
In streaming view, logs like <foo@bar.com> was not appearing
2019-01-08 19:49:52 -08:00
Girish Ramakrishnan d3ae252740 Use the smart host term 2019-01-08 14:53:23 -08:00
Girish Ramakrishnan 29f48bcba6 Use -1 to download full logs
Part of cloudron/box#604
2019-01-08 13:13:39 -08:00
Girish Ramakrishnan e6fe5adca7 Use lines argument 2019-01-08 13:12:37 -08:00
Girish Ramakrishnan 82a96ec91d Keep it alphabetical 2019-01-08 10:24:16 -08:00
Johannes Zellner db02cbb575 Always refresh notifications 2019-01-08 14:33:47 +01:00
Johannes Zellner 749dd20704 Poll for new notifications every 10sec 2019-01-08 14:08:29 +01:00
Johannes Zellner b9db6040f4 Show label if no new notifications exist 2019-01-08 13:49:21 +01:00
Johannes Zellner c9628c0f75 Do not show ack button on old notifications 2019-01-08 13:45:49 +01:00
Johannes Zellner 979af88a40 Make notification badge a friendlier green 2019-01-08 13:45:49 +01:00
Johannes Zellner 98b4cd330f Add button to show older notifications 2019-01-08 13:45:40 +01:00
Johannes Zellner 5ab390c3db Show notification time 2019-01-08 13:24:05 +01:00
Johannes Zellner 71eaf9966f Improve notification view layout and add relevant actions 2019-01-08 13:18:35 +01:00
Johannes Zellner 9653d07ae2 Rename activity log to eventlog 2019-01-08 12:42:03 +01:00
Johannes Zellner f1663d0fbf Do not make notifications persistent 2019-01-08 12:41:52 +01:00
Johannes Zellner 38cb2201a9 Update toplevel notification status 2019-01-08 12:36:08 +01:00
Johannes Zellner fa04bea64b List unread notifications in accounts view 2019-01-07 18:05:02 +01:00
Johannes Zellner 2bc66af55d Add notification ack api wrapper 2019-01-07 18:04:52 +01:00
Johannes Zellner db5892d0ae Make linter happy 2019-01-07 17:34:10 +01:00
Johannes Zellner 59c7c1e302 Use the new notification onClick api in places 2019-01-07 17:30:01 +01:00
Johannes Zellner 48f63ec761 Update angular-ui-notification and show unread notifications 2019-01-07 17:23:26 +01:00
Girish Ramakrishnan 4051e34e20 Fix text 2019-01-06 16:25:25 -08:00
Girish Ramakrishnan 428bd43d60 Fix change dashboard domain UI issues 2019-01-06 16:02:05 -08:00
Girish Ramakrishnan 67415ff715 Check if scope is already destroyed 2019-01-06 15:29:38 -08:00
Girish Ramakrishnan fbc494abc9 Hello 2019! 2019-01-04 19:37:51 -08:00
Girish Ramakrishnan 0816af3cf1 Use new support API
Part of cloudron/box#600
2018-12-19 13:27:59 -08:00
Girish Ramakrishnan bb575fff5b Fix feedback API route 2018-12-19 10:58:50 -08:00
Girish Ramakrishnan cbe632839c Add UI to switch domain 2018-12-18 15:27:26 -08:00
Girish Ramakrishnan 7c972758af Show progress message in setup and restore 2018-12-16 11:04:25 -08:00
Girish Ramakrishnan 236f66f56f Fix create invite post request
(cherry picked from commit 0688c272c2)
2018-12-15 09:28:35 -08:00
Girish Ramakrishnan a485df2f79 Fix usage of webadminStatus 2018-12-14 16:34:57 -08:00
Girish Ramakrishnan 54b9154457 post requires extra data argument
broken by e6ad14f8
2018-12-14 16:33:10 -08:00
Girish Ramakrishnan 37aabcee4f Show the renew certificates header 2018-12-13 15:54:06 -08:00
Girish Ramakrishnan b2d18560be this is handled by the managed case 2018-12-13 10:52:08 -08:00
Girish Ramakrishnan 1429aa1edc more caas removal 2018-12-13 10:50:37 -08:00
Girish Ramakrishnan 5d4f942d46 remove caas plan change UI 2018-12-13 09:36:21 -08:00
Johannes Zellner 30ea7e854d Fix wording 2018-12-13 13:58:08 +01:00
Johannes Zellner 907f82338e Fix twitter logo on setup screens 2018-12-12 08:49:28 +01:00
Girish Ramakrishnan dcb0160b64 Remove blank line 2018-12-11 11:04:36 -08:00
Girish Ramakrishnan fccd7fa438 Add a progress bar for the renewal task 2018-12-11 10:55:32 -08:00
Girish Ramakrishnan c39711a87e Remove unused fields 2018-12-11 10:43:02 -08:00
Johannes Zellner a8de003cf0 Remove obsolete js-update gulp task 2018-12-11 19:25:26 +01:00
Johannes Zellner 6db54fc3b5 remove uglifier
The resulting code was actually a tiny bit larger
2018-12-11 19:25:26 +01:00
Girish Ramakrishnan d058536011 Fix indent 2018-12-11 10:19:13 -08:00
Girish Ramakrishnan 02ad4ba98d return taskId in Client.renewCerts 2018-12-11 10:19:13 -08:00
Johannes Zellner a68a76112c Fix eventlog usage 2018-12-11 19:03:42 +01:00
Girish Ramakrishnan 975c545081 Make it a separate section 2018-12-11 10:00:56 -08:00
Johannes Zellner fcfee9082b assert if the rest wrappers are misused 2018-12-11 18:55:25 +01:00
Johannes Zellner e6ad14f8d4 Rework the rest wrapper usage and add offline banner 2018-12-11 18:17:53 +01:00
Johannes Zellner 1670f15732 Use toplevel cert renewal api for all domains 2018-12-11 12:41:42 +01:00
Johannes Zellner 5cd696792b Improve inline update progress layout 2018-12-10 16:50:40 +01:00
Johannes Zellner fbc399f5fa sort services by name 2018-12-10 11:36:47 +01:00
Johannes Zellner 3d6413ae05 Finalize rename addon -> service 2018-12-10 11:36:47 +01:00
Girish Ramakrishnan 97120a6b04 Fixup update UI to use task id 2018-12-09 12:06:28 -08:00
Johannes Zellner 226162ee57 Give backup progress detail more horizontal space 2018-12-09 21:01:46 +01:00
Johannes Zellner a888ec265f Fix backup progress display layout 2018-12-09 20:59:32 +01:00
Girish Ramakrishnan 6fb7555f01 fix task logs 2018-12-08 21:58:23 -08:00
Girish Ramakrishnan a8d0e25866 Update task status by id 2018-12-08 21:17:36 -08:00
Girish Ramakrishnan 970f7fe69b Add flag for per-app automatic update 2018-12-07 09:38:55 -08:00
Girish Ramakrishnan c507df902e create recvmail mailbox automatically 2018-12-06 22:31:38 -08:00
Girish Ramakrishnan 7fa5ef8165 Do not filter out app mailboxes 2018-12-06 21:55:04 -08:00
Girish Ramakrishnan 92cb768c4b Fix reboot message 2018-12-06 10:12:21 -08:00
Johannes Zellner 8ec406c2e0 Hide empty memory usage bar for unsupported services 2018-12-06 14:32:39 +01:00
Johannes Zellner 9473c108f0 Support unbound logs in logviewer 2018-12-05 16:22:43 +01:00
Girish Ramakrishnan 14c43d9f7e Show error message directly 2018-12-04 14:12:35 -08:00
Girish Ramakrishnan ce9a03a5a8 Check updateStatus on ready 2018-12-04 14:05:55 -08:00
Johannes Zellner 04e8b14fc4 Give more space in the error page 2018-12-04 16:35:58 +01:00
Girish Ramakrishnan 43b747676c addon -> service
some day we will also add nginx, unbound etc here
2018-12-02 18:55:05 -08:00
Girish Ramakrishnan bd40cf9947 Move server below the addons
server restart will ideally be rarely used.
2018-12-02 18:51:34 -08:00
Girish Ramakrishnan 203b31d81f Handle split of addon and services 2018-12-02 18:45:33 -08:00
Girish Ramakrishnan 0430fb2772 rename addon route to services 2018-12-02 17:46:58 -08:00
Girish Ramakrishnan d3746d6859 Move system below support 2018-11-30 21:11:05 -08:00
Girish Ramakrishnan d8dfa89f87 rework update ui
- this is not modal anymore
- can be canceled
2018-11-30 20:55:37 -08:00
Girish Ramakrishnan cbdb90d06b do not use result 2018-11-30 20:22:53 -08:00
Girish Ramakrishnan 63e040ea79 Use active field instead of percent 2018-11-29 23:14:00 -08:00
Girish Ramakrishnan fd1a0f3b0a result is not used anymore in backup view 2018-11-29 23:00:30 -08:00
Johannes Zellner abaf8a676c Fix edit icons in settings and account view 2018-11-29 16:43:28 +01:00
Johannes Zellner 0b96fc4701 Use Cloudron style fallback icon 2018-11-29 12:04:56 +01:00
Johannes Zellner 400e210d37 Show memory usage for addons 2018-11-28 12:53:35 +01:00
Johannes Zellner ea0c697ad3 Make admins go to the docs in error.html 2018-11-27 10:48:31 +01:00
Johannes Zellner edf8c32a0f caas errorCodes in error.html are gone now 2018-11-26 20:05:55 +01:00
Johannes Zellner ccef5da7d9 Minor fixes to the error.html 2018-11-26 19:32:19 +01:00
Johannes Zellner ddf213aec4 Remove logs from support view, they are now in system view 2018-11-26 14:59:39 +01:00
Johannes Zellner 8bd9237951 Use addon log routes in logviewer 2018-11-26 14:49:50 +01:00
Johannes Zellner ae488312a1 Add ui bits to be able to reboot the server 2018-11-26 09:24:58 +01:00
Johannes Zellner 1ed45656e4 Rename addons view to system
We can rename the menu entry further but I wasn't sure if diagnostics
will be nicer. Diagnostics kinda overlaps with the graphs there and all
2018-11-26 08:59:31 +01:00
Johannes Zellner 07edcc5f94 Show notification if reboot is required 2018-11-26 08:48:58 +01:00
Johannes Zellner 1783059fd4 Better addon restart feedback 2018-11-22 22:12:00 +01:00
Johannes Zellner aab766e8ff Add button to reset addon memory to platform defaults 2018-11-21 17:06:01 +01:00
Johannes Zellner 158514f334 Replace addon start/stop with restart 2018-11-21 16:14:02 +01:00
Johannes Zellner 77d29c3728 Patch up the addon memory configuration 2018-11-21 15:57:26 +01:00
Johannes Zellner 3c3383ac03 Show memory config in list 2018-11-20 17:04:53 +01:00
Johannes Zellner 6e46240fd7 Add addon configure dialog 2018-11-20 17:01:46 +01:00
Johannes Zellner d01c46bfee Refresh addon status automatically 2018-11-20 14:47:39 +01:00
Johannes Zellner 1e5007ec8b Add logs button and set default action in repair dialog 2018-11-20 11:39:32 +01:00
Johannes Zellner deed95e9a9 Update progress needs to be checked some other way now 2018-11-20 11:36:17 +01:00
Johannes Zellner 082323511a Handle addon state correctly 2018-11-20 11:09:20 +01:00
Johannes Zellner c07224cab5 Fix tooltips 2018-11-20 11:09:20 +01:00
Johannes Zellner 1604a96f41 Support addon logs in logviewer 2018-11-20 11:09:20 +01:00
Johannes Zellner 50963f00c0 Add basic UI controls for start, stop, logs and show status 2018-11-20 11:09:20 +01:00
Johannes Zellner 699db93b18 Add initial addons view 2018-11-20 11:09:20 +01:00
Girish Ramakrishnan 85e467581c Use the new task API 2018-11-19 17:34:14 -08:00
Girish Ramakrishnan 42e4588e9c Fix backup route 2018-11-19 14:40:47 -08:00
Girish Ramakrishnan 93c194cff7 Add button to stop backup 2018-11-17 20:47:51 -08:00
Girish Ramakrishnan 00450dc048 Fix backup API routes 2018-11-17 20:47:51 -08:00
Johannes Zellner c319fd5862 Fix all animated spinners for new fontawesome 2018-11-16 17:03:21 +01:00
Johannes Zellner 5048b5b585 Fixup the twitter icon 2018-11-15 23:28:06 +01:00
Johannes Zellner e7f24084af Fixup all missed icons 2018-11-15 18:07:18 +01:00
Johannes Zellner c57b9b4fa3 Update fontawesome from v3 to v5 2018-11-15 17:42:29 +01:00
Girish Ramakrishnan ac5b7a4469 Add certificate.new event 2018-11-14 20:37:58 -08:00
Girish Ramakrishnan 884faa0e27 Add note on where to check cert status 2018-11-14 20:22:14 -08:00
Girish Ramakrishnan 50b4b7bb92 this event is no more 2018-11-14 11:20:11 -08:00
Girish Ramakrishnan cf259ace47 more events 2018-11-10 01:34:50 -08:00
Girish Ramakrishnan 270389a18c Add new domain events 2018-11-10 01:09:06 -08:00
Girish Ramakrishnan a340eea769 Add new mail events 2018-11-10 00:32:37 -08:00
Girish Ramakrishnan 22589e7103 Fix the checkbox 2018-11-09 11:24:19 -08:00
Girish Ramakrishnan 2b6423d3b7 Move the dyndns setting to the domains view 2018-11-09 10:37:50 -08:00
Girish Ramakrishnan 50bf193fd1 Hide "remote support" option for managed cloudrons 2018-11-06 21:50:10 -08:00
Girish Ramakrishnan c2ba059ced Remove the "not recommended" 2018-11-06 14:04:30 -08:00
Johannes Zellner 856ed0c765 Use config.managed for dyndns ui 2018-11-01 09:35:22 +01:00
Johannes Zellner a73681ce8b settings view is only available to admins no need to check here 2018-11-01 09:34:28 +01:00
Johannes Zellner 1426ed952b Hide dynamic dns settings for caas and non operators 2018-11-01 09:33:46 +01:00
Johannes Zellner d6bf6eb0a0 Add dynamic dns settings 2018-11-01 09:33:46 +01:00
Girish Ramakrishnan 97b24079f7 Show lock icon for locked domains 2018-10-31 11:01:10 -07:00
Girish Ramakrishnan 707f84839e typoe 2018-10-30 23:52:09 -07:00
Girish Ramakrishnan 643d2f3fad typo 2018-10-30 22:51:59 -07:00
Girish Ramakrishnan 92660e037d replace operatorActions with managed 2018-10-30 21:07:37 -07:00
Girish Ramakrishnan 2e6a0411fb Never show hyphenated feature for now 2018-10-30 20:52:03 -07:00
Girish Ramakrishnan 5d57a5fabb Use new setup route 2018-10-30 14:15:43 -07:00
Girish Ramakrishnan cb90ad803b provider is never empty anymore 2018-10-29 19:20:16 -07:00
Girish Ramakrishnan 937e8ce1ed Add the new exoscale-sos regions 2018-10-27 14:44:13 -07:00
Girish Ramakrishnan c1976d5b13 Cloudflare HTTP proxying works now 2018-10-26 15:03:27 -07:00
Girish Ramakrishnan 8070e88564 Add Certs to menu bar 2018-10-25 13:23:42 -07:00
Girish Ramakrishnan 15c0c691ff Add button to renew certs of a domain 2018-10-24 15:51:02 -07:00
Girish Ramakrishnan f68912b466 copy/paste error
(cherry picked from commit 53fed09a5d)
2018-09-26 22:30:38 -07:00
Girish Ramakrishnan dfa4e20a8f Set default cert provider to wildcard
Change it to non-wildcard for manual/noop/wildcard dns
2018-09-26 19:53:09 -07:00
Girish Ramakrishnan ee1a194305 Change the cert provider selection box text 2018-09-26 18:15:09 -07:00
Girish Ramakrishnan 0fa88855e5 Move information text out of advanced view 2018-09-26 18:10:21 -07:00
Girish Ramakrishnan eda3d5c143 Remove invalid dns config notification
The issue is that this value is never really updated unless the box
code is restarted.

Instead, we will fix it to check all domains periodically and send
some email notification.

Fixes cloudron/box#586
2018-09-26 15:13:44 -07:00
Girish Ramakrishnan b450efe5c2 Add SFO2 region in restore UI 2018-09-26 12:02:03 -07:00
Girish Ramakrishnan ca76626d55 Add checkbox UI for mailbox location
part of cloudron/box#587
2018-09-25 11:27:43 -07:00
Girish Ramakrishnan ed887953b6 typo 2018-09-12 20:19:40 -07:00
Girish Ramakrishnan 04debe3ea3 port80 requirement is more complex 2018-09-12 15:57:01 -07:00
Girish Ramakrishnan 4312096dd2 Add a wildcard provider option 2018-09-12 13:12:40 -07:00
Girish Ramakrishnan 94b079fa7b Show the title in port bindings instead of the long description 2018-09-12 11:22:02 -07:00
Girish Ramakrishnan 0373d86349 Fix error code 2018-09-10 11:22:29 -07:00
Girish Ramakrishnan 0f5c290785 we now return 424 2018-09-10 10:37:15 -07:00
Girish Ramakrishnan c79f43bb27 do spaces: sfo2 is now available 2018-09-10 09:27:08 -07:00
Girish Ramakrishnan 184ad3bc4e wildcard dns is now a provider 2018-09-06 20:12:25 -07:00
Girish Ramakrishnan aa0a4ae3e9 Handle locked domains 2018-09-05 23:23:27 -07:00
Girish Ramakrishnan ff9c4b407f Add help text 2018-09-05 21:46:26 -07:00
Girish Ramakrishnan c3b01d477e Typo 2018-09-05 21:31:44 -07:00
Girish Ramakrishnan 3c0641745b backups: Hide prefix for noop 2018-09-05 17:32:53 -07:00
Girish Ramakrishnan 7186a0c41b information text for hyphenated subdomain 2018-09-05 17:20:17 -07:00
Girish Ramakrishnan 4c3bc7450e domain: hide del button for admin domain 2018-09-05 17:15:30 -07:00
Girish Ramakrishnan 02f04e2d33 Disable various views for non-operators 2018-09-05 15:35:30 -07:00
Johannes Zellner 97b6e4c672 Just display subscription error message in the ui 2018-09-05 17:14:01 +02:00
Girish Ramakrishnan 2fd1caa2aa caas: Fix display of alternateDomain 2018-09-04 12:10:21 -07:00
Girish Ramakrishnan cb25217c48 Fix the edition name 2018-08-31 08:06:04 -07:00
Johannes Zellner ab70bc663d No need to show button to setup billing
Either it has a subscription or not, no trials anymore
This will not show any cc setup button now for other plans like
education
2018-08-29 23:24:24 +02:00
Johannes Zellner 0cfe931cd1 We do not have trials anymore 2018-08-29 23:22:47 +02:00
Girish Ramakrishnan 29bddb5fcb Fix derivation of adminFqdn 2018-08-28 22:35:02 -07:00
Girish Ramakrishnan cb7d160346 Add more backup interval secs 2018-08-28 22:10:17 -07:00
Girish Ramakrishnan 507c8b8786 Add hyphenatedSubdomains checkbox to setup page 2018-08-28 21:59:03 -07:00
Girish Ramakrishnan 60107147c2 derive features from edition 2018-08-28 21:58:59 -07:00
Girish Ramakrishnan be2afec86b spaces: Fix text 2018-08-28 20:32:07 -07:00
Girish Ramakrishnan d316d216db spaces: use edition instead of setting 2018-08-28 19:36:26 -07:00
Girish Ramakrishnan dd53d0d575 caas+spaces: location suffix fix 2018-08-28 14:22:40 -07:00
Girish Ramakrishnan 0f6c0a2ccd Use spaces suffix that replaces dots in username
This assumes usernames only have . or - but not both
2018-08-28 12:23:14 -07:00
Girish Ramakrishnan 937a165711 spaces: Strip the trailing username when configuring 2018-08-28 10:38:53 -07:00
Girish Ramakrishnan 22c402ca3d clone: subdomain hyphenation 2018-08-27 21:40:49 -07:00
Girish Ramakrishnan eddbd4fddc Do the filter later 2018-08-27 21:06:07 -07:00
Girish Ramakrishnan 0e43ca31a3 spaces: add username suffix when installing apps 2018-08-27 20:45:09 -07:00
Girish Ramakrishnan 9c90a20b4d Get token name as input 2018-08-27 16:04:16 -07:00
Girish Ramakrishnan 764e7e7d1f Fix indent 2018-08-27 15:40:23 -07:00
Girish Ramakrishnan 0e8cb00233 Display token name 2018-08-27 15:34:46 -07:00
Girish Ramakrishnan 0a1a011338 Move the API token to account page
The OAuth page is less and less useful. Moreover, the tokens are
actually tied to the user and not for the system.
2018-08-27 15:26:52 -07:00
Girish Ramakrishnan 3dfcd9324d invite -> setup link 2018-08-27 15:08:09 -07:00
Girish Ramakrishnan 3e4ac4a0ca Keep it short (and abstract) 2018-08-27 13:50:13 -07:00
Girish Ramakrishnan be1795d50d domains: make the certs setup more descriptive 2018-08-27 13:19:57 -07:00
Girish Ramakrishnan 0b0b06baa9 certs: Rename Self-Signed to custom 2018-08-27 12:04:55 -07:00
Girish Ramakrishnan b789cd2af0 Fix incorrect title of invitation dialog 2018-08-27 11:43:24 -07:00
Johannes Zellner 0871403c0a Support hyphenated subdomains in install and configure dialogs 2018-08-22 17:25:27 +02:00
Johannes Zellner 53a34d9352 Support hyphenatedSubdomains property in domains view 2018-08-22 11:54:37 +02:00
Girish Ramakrishnan fe23551b04 Show the doc link in the post install confirm body 2018-08-21 19:21:03 -07:00
Girish Ramakrishnan 484b6477d3 Fix duplicate id in app configure form 2018-08-20 09:44:30 -07:00
Girish Ramakrishnan 8ebe04c2ff Do not send invite email when invite button is pressed 2018-08-17 16:26:16 -07:00
Girish Ramakrishnan 672d6b0856 Add backup interval
Part of cloudron/box#568
2018-08-13 22:40:05 -07:00
Girish Ramakrishnan 0c066fafa2 remove backup default comment 2018-08-13 22:22:46 -07:00
Girish Ramakrishnan 6c574ead94 Make UDP ports configurable
Part of cloudron/box#504
2018-08-13 09:15:21 -07:00
Girish Ramakrishnan 31a62313bb Reconfigure email apps when email is enabled/disabled 2018-08-12 13:21:17 -07:00
Johannes Zellner 4dacf7064f Apps already use singular document tag 2018-08-06 22:22:49 +02:00
Johannes Zellner e900e4de77 Add Documents category 2018-08-06 21:46:24 +02:00
Girish Ramakrishnan 4ce6939b79 spaces: show based on plan id 2018-08-06 10:53:16 -07:00
Girish Ramakrishnan 8430fd1473 Fix more errors in clone UI 2018-08-06 00:46:10 -07:00
Girish Ramakrishnan ac7c54e273 Fix errors in the clone form 2018-08-06 00:34:40 -07:00
Girish Ramakrishnan 6c9a3b530d Display restore error on page load 2018-08-05 23:30:22 -07:00
Girish Ramakrishnan 2f2c70d1df Set the users when creating group 2018-08-05 22:19:54 -07:00
Girish Ramakrishnan a78c991330 Give some fixed width to the columns 2018-08-05 22:10:45 -07:00
Girish Ramakrishnan 8f9349ec53 Remove double "this" 2018-08-05 21:43:34 -07:00
Girish Ramakrishnan bc6be6a9ad Fix indent 2018-08-05 21:40:18 -07:00
Girish Ramakrishnan a9b7c2795a Fix styling 2018-08-05 21:34:47 -07:00
Girish Ramakrishnan cd81cc8cb8 Refine the text 2018-08-05 21:09:16 -07:00
Girish Ramakrishnan 473b35d807 Query backup config only for admins 2018-08-03 23:35:37 -07:00
Girish Ramakrishnan 0c04d5bfc8 spaces: fetch users/groups/domains 2018-08-03 23:27:21 -07:00
Girish Ramakrishnan eed460f435 Fetch complete app object for owner 2018-08-03 23:00:25 -07:00
Girish Ramakrishnan d742982973 spaces: default the access restriction to just the user 2018-08-03 22:51:53 -07:00
Girish Ramakrishnan c8263077a2 appstore app object has no location or accessRestriction 2018-08-03 22:29:52 -07:00
Girish Ramakrishnan eae01bdbd9 appId is not needed in configure route 2018-08-03 18:44:30 -07:00
Girish Ramakrishnan 1ebafbbc20 spaces: fixup user interface 2018-08-03 18:38:00 -07:00
Girish Ramakrishnan a525bb0257 Missed this 2018-08-03 17:47:02 -07:00
Girish Ramakrishnan cf5cf9e42f Remove usage of tokenScopes and caps 2018-08-03 10:13:57 -07:00
Girish Ramakrishnan 7969dff043 Add UI for enabling spaces 2018-08-03 09:44:56 -07:00
Girish Ramakrishnan d73f7304b3 Copy admin flag 2018-08-03 09:34:58 -07:00
Johannes Zellner 4400b0117a Fix linter issues 2018-08-02 22:17:27 +02:00
Johannes Zellner 739c91b1c6 Do not throw errors if a group has a uid which is not yet known
This can happen if the users have not yet loaded fully
2018-08-02 22:16:57 +02:00
Girish Ramakrishnan 510115ade9 Show danger color if update fails 2018-08-01 17:02:09 -07:00
Girish Ramakrishnan 8c2d79b75e Show app id in info dialog 2018-08-01 12:37:17 -07:00
Johannes Zellner 1a31fb78e5 Add homescreen icons for mobile 2018-07-30 22:05:20 +02:00
Girish Ramakrishnan 97f4d5e3ac Show busy indicator when toggling email 2018-07-30 11:30:49 -07:00
Girish Ramakrishnan d0b17f7e7b Delete any endpoint configuration when using s3 2018-07-30 07:29:22 -07:00
Girish Ramakrishnan eb74aaff3b Display restore errors
Part of cloudron/box#505
2018-07-29 20:48:37 -07:00
Girish Ramakrishnan 9108b665a8 restore: show encrytion field for rsync format 2018-07-29 19:51:44 -07:00
Girish Ramakrishnan e449147ed4 setup: Make it wider 2018-07-29 19:46:52 -07:00
Girish Ramakrishnan 53e82876dd setup: add link to hide advanced settings 2018-07-29 19:43:36 -07:00
Girish Ramakrishnan dd4a4518b3 Allow backup key to be set for rsync format
Part of #440
2018-07-28 09:13:42 -07:00
Girish Ramakrishnan a9e46c64b1 Show group members 2018-07-26 23:58:25 -07:00
Girish Ramakrishnan fb85770fd3 admin group is now gone 2018-07-26 23:42:38 -07:00
Girish Ramakrishnan 9e9e651714 admin is now simply a flag 2018-07-26 15:54:21 -07:00
Girish Ramakrishnan 314da7ace8 Fix API of Client.createUser 2018-07-26 15:52:10 -07:00
Girish Ramakrishnan 54103ca120 Revert role support 2018-07-26 11:38:20 -07:00
Girish Ramakrishnan be86a3022f Call the new setDnsRecords route 2018-07-25 10:52:06 -07:00
Girish Ramakrishnan 91ecab08da Fix typo 2018-07-24 22:40:27 -07:00
Girish Ramakrishnan cae445556e Allow groups to be set during user add 2018-07-24 22:38:53 -07:00
Girish Ramakrishnan 8c2af87857 Fix coding style 2018-07-24 22:31:22 -07:00
Girish Ramakrishnan 2d44e356d3 Add user multi-select to group edit dialog 2018-07-24 22:25:44 -07:00
Girish Ramakrishnan dec1931f07 Make groups a multiselect
With many groups, it overflows and very cluttered
2018-07-24 21:36:52 -07:00
Girish Ramakrishnan 46473c3756 Show displayName in user listing 2018-07-24 15:20:25 -07:00
Girish Ramakrishnan cd893edfcf Add display name to user edit 2018-07-24 15:17:51 -07:00
Girish Ramakrishnan 84302c1739 Fix the text 2018-07-24 14:38:47 -07:00
Girish Ramakrishnan d6f6b4bfe5 Display hostname in mail status
Many are copy/pasting the domain directly into the DNS UI and it fails.
2018-07-24 14:34:26 -07:00
Girish Ramakrishnan 8c6531b6fb Add Mailjet 2018-07-23 16:47:24 -07:00
Girish Ramakrishnan f4993a7e58 Change redirection text 2018-07-16 18:39:22 -07:00
Girish Ramakrishnan cc812c2177 Add user transfer event 2018-07-05 13:54:05 -07:00
Girish Ramakrishnan e11dc028d1 Transfer deleted user's resources 2018-07-05 13:44:00 -07:00
Johannes Zellner e314910a76 Ensure we uri encode the email query param for setup links 2018-07-04 11:10:13 +02:00
Johannes Zellner ee9140c365 Use the correct object to reset alternateDomains 2018-07-03 18:04:25 +02:00
Johannes Zellner ce4ccc21dd Set better defaults and placeholder text for alternate domains 2018-07-03 18:04:03 +02:00
Johannes Zellner 6108fcf17b Put the alternate domain settings behind a checkbox 2018-07-03 18:00:22 +02:00
Johannes Zellner cd3fb77033 Add support for one alternate domain which redirects 2018-06-29 23:42:13 +02:00
Johannes Zellner 0697274311 Remove very odd unused line 2018-06-29 23:42:13 +02:00
Girish Ramakrishnan 11f5aaaf3b Pass on the tokenScopes 2018-06-29 09:09:25 -07:00
Girish Ramakrishnan 8f0b66bd98 Rework config routes
The config route now returns non-sensitive information under the
profile scope.

Caas config is a separate route

Update config is a separate route
2018-06-28 17:50:33 -07:00
Girish Ramakrishnan 3be660dcd9 If user has no appstore scope, we cannot get subscription info 2018-06-27 18:15:48 -07:00
Girish Ramakrishnan 3bb82d5e68 Use app ts to determine whether to refetch app 2018-06-26 19:54:18 -07:00
Girish Ramakrishnan 3f9f1480d3 The uninstall id gets cleared 2018-06-26 19:47:48 -07:00
Girish Ramakrishnan 948c446362 typo 2018-06-26 19:47:48 -07:00
Girish Ramakrishnan 25f888e0d8 Get detailed app information if user can manage apps 2018-06-26 17:56:23 -07:00
Girish Ramakrishnan 98661de24e Fix error message display in configure dialog 2018-06-26 17:35:48 -07:00
Girish Ramakrishnan a833ceb737 Insert the app sorted into the cache 2018-06-26 17:12:55 -07:00
Girish Ramakrishnan b41d0379f0 Only refresh the individual app that is being managed 2018-06-26 10:22:38 -07:00
Girish Ramakrishnan df6da7dd1c logs: installedApps is not used 2018-06-26 10:21:43 -07:00
Girish Ramakrishnan 24ca5bc990 Refactor logic into _updateAppCache 2018-06-26 10:21:36 -07:00
Girish Ramakrishnan e3e62b8407 refresh immediately 2018-06-26 10:19:50 -07:00
Girish Ramakrishnan 0c98e6f4ca Mark it as internal function 2018-06-26 08:34:05 -07:00
Girish Ramakrishnan 6034121695 Make clone return data 2018-06-26 08:33:04 -07:00
Girish Ramakrishnan afe837e30a Remove used of Client.onApps 2018-06-25 20:15:24 -07:00
Girish Ramakrishnan f3cf640e21 terminal: use Client.getApp instead of refreshInstalledApps 2018-06-25 19:19:56 -07:00
Girish Ramakrishnan 8d98cefcca terminal: Remove unused dropdown logic 2018-06-25 19:10:26 -07:00
Girish Ramakrishnan bdf57a5c0a remove dead code 2018-06-25 19:10:00 -07:00
Girish Ramakrishnan 37f108d9f7 logs: remove dep on refreshInstalledApps 2018-06-25 18:58:11 -07:00
Girish Ramakrishnan 091663afe0 Add Client.getApp that uses REST API 2018-06-25 18:55:07 -07:00
Girish Ramakrishnan a77918bef9 Client.onReady has already loaded the app list 2018-06-25 18:27:40 -07:00
Girish Ramakrishnan f167714ea1 add note 2018-06-25 18:27:05 -07:00
Girish Ramakrishnan 1cab172169 Adapt UI logic to get user/group configuration for each user/group 2018-06-25 16:23:28 -07:00
Girish Ramakrishnan 35c3df5a18 Adapt UI logic to get domain configuration for each domain 2018-06-25 15:33:21 -07:00
Girish Ramakrishnan b9a6f46543 Check for 403 for incorrect password 2018-06-18 18:57:00 -07:00
Girish Ramakrishnan 12b1909c7a Add roles UI creating and editing a group 2018-06-18 18:48:54 -07:00
Girish Ramakrishnan 5bd57b6dbd lint 2018-06-18 18:34:19 -07:00
Girish Ramakrishnan 961220be3f tokenScope -> tokenScopes 2018-06-18 15:09:16 -07:00
Girish Ramakrishnan 4db703aeb1 Make the UI capability based 2018-06-17 18:24:45 -07:00
Girish Ramakrishnan cec1cc7086 scope -> tokenScope 2018-06-17 15:29:10 -07:00
Girish Ramakrishnan 2bacbe6701 caas: disable enable email button instead of hiding it 2018-06-16 11:28:13 -07:00
Girish Ramakrishnan 3c65d88c65 caas: disable editing managed domain 2018-06-16 11:22:41 -07:00
Girish Ramakrishnan 726a1c37cc caas: show the backups view, just not the configure button 2018-06-16 11:14:45 -07:00
Girish Ramakrishnan 63f2bbb253 wrong password is 401 2018-06-15 20:54:15 -07:00
Girish Ramakrishnan 7f11cc0daf add note 2018-06-15 17:16:50 -07:00
Girish Ramakrishnan f32884b3b2 Add button for backup logs 2018-06-15 09:55:19 -07:00
Johannes Zellner 97465c1bd8 Last one to open the terminal in a new tab from within the logs view 2018-06-15 17:03:00 +02:00
Johannes Zellner ce0a1ce38a Also open platform and email logs in a new tab instead of a window 2018-06-15 16:45:34 +02:00
Johannes Zellner f5060a0d4f Open logs and terminal in a new tab instead of a window 2018-06-15 16:42:04 +02:00
Johannes Zellner bb34c8a242 Ignore button clicks when post install is not yet confirmed
Angular does not remove the click handler on ng-disabled :-/
2018-06-15 13:39:33 +02:00
Johannes Zellner 34fd733bb7 Fix mouse cursor state in app grid 2018-06-15 13:39:07 +02:00
Johannes Zellner 19b65460ff Do not show postinstall if the app is not ready yet 2018-06-15 13:35:46 +02:00
Girish Ramakrishnan edf277fcaf Feedback API has moved to cloudron scope 2018-06-14 20:04:38 -07:00
Girish Ramakrishnan 9db334c2a4 Show backup notification in main.js instead 2018-06-14 12:59:25 -07:00
Johannes Zellner 1039d9c95e Remove postinstall message from the appstore view
This is now shown on first click
2018-06-14 16:07:29 +02:00
Johannes Zellner 37c8b2b57f Make the user confirm the post install message on first time clicking the app icon 2018-06-14 15:46:55 +02:00
Girish Ramakrishnan 461fb0144e Fix wording 2018-06-13 12:25:29 -07:00
Girish Ramakrishnan 60a9c60f40 Fix typo preventing email from getting enabled 2018-06-12 19:18:47 -07:00
Girish Ramakrishnan 869a6b5a51 Add email to setupLink 2018-06-12 17:59:04 -07:00
Girish Ramakrishnan 133e101f83 Fix download logs button 2018-06-12 14:50:18 -07:00
Girish Ramakrishnan 6ecadb2308 Remove unused readFileLocally 2018-06-12 14:33:19 -07:00
Girish Ramakrishnan 0d3ff81d6c Fix UI jumpiness 2018-06-12 14:24:17 -07:00
Girish Ramakrishnan e938886629 Add box logs to support view 2018-06-12 14:05:58 -07:00
Girish Ramakrishnan aa32055aa8 lint 2018-06-12 13:37:31 -07:00
Girish Ramakrishnan 59481c37bc Remove redundant user.admin check 2018-06-12 13:31:23 -07:00
Girish Ramakrishnan 0b868dad2d remove the thanks (it is a bug report) 2018-06-12 13:20:08 -07:00
Girish Ramakrishnan 3c063a2263 Remove one section since I want to add the logs section 2018-06-12 12:55:44 -07:00
Johannes Zellner f9750e237a We always allow app updates now 2018-06-12 17:46:07 +02:00
Johannes Zellner 908bb75fdc Only update the appstore profile if the root controller is still present 2018-06-12 17:31:52 +02:00
Girish Ramakrishnan a273827166 Make the name of the user non-optional 2018-06-11 14:22:02 -07:00
Girish Ramakrishnan 0cb96f4b03 Change password requirements text 2018-06-11 13:54:17 -07:00
Girish Ramakrishnan af7764253d Fix text 2018-06-11 11:29:31 -07:00
Girish Ramakrishnan af9652f7c8 Remove the email subscription requirement 2018-06-11 11:24:25 -07:00
Johannes Zellner e741ca9216 Support new platform log routes 2018-06-11 20:10:57 +02:00
Girish Ramakrishnan e3950c2fb0 Give user notification about how to resize 2018-06-08 12:22:45 -07:00
Girish Ramakrishnan 3eae49139c Create the terminal ws after fit()
part of cloudron/box#549
2018-06-08 12:04:12 -07:00
Girish Ramakrishnan 97f17916f9 mail: hide the status tab entirely for caas 2018-06-08 09:54:58 -07:00
Johannes Zellner ee0a25962b Show only featured apps first on appstore listing 2018-06-08 09:48:34 +02:00
Girish Ramakrishnan 55fb3b3b55 Fix various text 2018-06-07 19:42:13 -07:00
Johannes Zellner a58d9d1497 Have a better fallback for eventlog source 2018-06-07 23:04:26 +02:00
Johannes Zellner 801dbc9705 Only show terminal button in logs view for apps 2018-06-07 22:44:31 +02:00
Girish Ramakrishnan e3897c4c34 Make user confirm that they use an external disk 2018-06-07 11:36:55 -07:00
Girish Ramakrishnan 04dd8914cd Move logs button to separate section 2018-06-07 10:48:18 -07:00
Johannes Zellner c2651fd8f8 Remove backup related bits from the settings view 2018-06-07 16:30:40 +02:00
Johannes Zellner 27f760fdbf Add separate backups page 2018-06-07 14:22:48 +02:00
Johannes Zellner a74cf0b064 add logs viewer for email server 2018-06-07 11:40:50 +02:00
Girish Ramakrishnan e09d2db7e6 Fix layout on larger screen 2018-06-05 22:46:06 -07:00
Girish Ramakrishnan 28f183f450 Explicitly mark zone name as optional 2018-06-05 21:14:10 -07:00
Girish Ramakrishnan 5126b605f2 Remove redundant "This domain must be hosted" text
If anything we can add them as <sup> info links
2018-06-04 21:47:23 -07:00
Girish Ramakrishnan aaebdda9d6 Remove bizzare color 2018-06-04 21:46:29 -07:00
Girish Ramakrishnan af29a3f498 Remove redundant "This domain must be hosted" text 2018-06-04 21:44:15 -07:00
Girish Ramakrishnan 55b6773d88 Add labels to setup page as well 2018-06-04 21:39:09 -07:00
Girish Ramakrishnan 239ec86c4a Fix setupdns layout 2018-06-04 20:59:23 -07:00
Girish Ramakrishnan 13adca00d6 do not center restore page labels 2018-06-04 20:46:40 -07:00
Girish Ramakrishnan a76631ee3d Add labels
Poeple seem to forget wat those fields are for mid-way through filling
the form. The place holder stuff is not overly obvious apparently.

This makes it consistent with all our other UI nevertheless
2018-06-04 20:30:22 -07:00
Girish Ramakrishnan 7ac99f16cd Fallback -> Self-signed 2018-06-04 16:52:17 -07:00
Girish Ramakrishnan 3b6ca1c59d Fix spacing 2018-06-04 15:51:29 -07:00
Girish Ramakrishnan 3f55064c47 Fix name.com links 2018-06-04 10:13:47 -07:00
Girish Ramakrishnan 917bc2a88c Reduce the padding (like in configure dialog) 2018-05-30 10:08:36 -07:00
Johannes Zellner 85dfa1ccad Always show the restore and clone tabs 2018-05-30 15:13:05 +02:00
Johannes Zellner 606828da1d Show backup create button next to the tabs 2018-05-30 15:07:16 +02:00
Johannes Zellner a182d78566 Give busy feedback when the app clone is initiated 2018-05-29 22:53:51 +02:00
Johannes Zellner 0f294531d3 Do not show backup creation button if we still fetch backups 2018-05-29 22:48:42 +02:00
Johannes Zellner 9189532b83 Fix error reporting of restore form
angular does not attach form elements to the $scope when the DOM
elements are created dynamically!
2018-05-29 22:46:06 +02:00
Johannes Zellner c031253bd4 Use tabs instead of accordion for restore/clone ui 2018-05-29 22:05:18 +02:00
Johannes Zellner 11ae5d4832 Allow the user to setup a subscription when enabling email 2018-05-29 17:17:53 +02:00
Johannes Zellner 3251dc3d73 Show hint to setup subscription if more than allowed apps are installed 2018-05-28 20:26:24 +02:00
Girish Ramakrishnan a671e6acf7 Move the buttons to dialog footer 2018-05-28 10:05:57 -07:00
Girish Ramakrishnan 5ce658125c Make the text less verbose 2018-05-28 10:05:52 -07:00
Girish Ramakrishnan 1d88a935a5 Add clone UI
part of #248
2018-05-28 10:05:47 -07:00
Girish Ramakrishnan 8da07a16b9 dnsConfig is used incorrectly 2018-05-28 10:05:42 -07:00
Girish Ramakrishnan 7ce045ae51 Make it an accordion 2018-05-28 10:05:36 -07:00
Girish Ramakrishnan a3e253436e Allow setting app visibility for non-SSO apps
Fixes #532
2018-05-25 13:59:53 -07:00
Johannes Zellner 08955ce5a4 Do not show cryptic UTC timestamp format for backups 2018-05-25 13:56:15 +02:00
Johannes Zellner 57a4fa2d38 fix the restore dropdown and change some labels 2018-05-25 13:49:38 +02:00
Johannes Zellner 548e652ba2 Update the setup subscription dialog text 2018-05-25 13:39:04 +02:00
Girish Ramakrishnan e92cfae4d9 Fix error handling 2018-05-24 20:15:08 -07:00
Girish Ramakrishnan ed1320c937 Only send mailboxName if it changed 2018-05-24 16:29:36 -07:00
Girish Ramakrishnan abccffd05f Put domain in the mailbox name
part of cloudron/box#558
2018-05-24 16:05:27 -07:00
Girish Ramakrishnan c1106aa32e Save -> Configure 2018-05-24 15:54:50 -07:00
Girish Ramakrishnan a94f5daac9 Allow mailbox name to be configured
part of cloudron/box#558
2018-05-24 15:42:40 -07:00
Girish Ramakrishnan 9d9f16e948 Re-work the configure dialog 2018-05-24 14:13:00 -07:00
Girish Ramakrishnan 0b5bd0b4cd Another take on this layout 2018-05-24 13:43:25 -07:00
Girish Ramakrishnan caa59dd9a9 Better layout 2018-05-24 09:55:33 -07:00
Girish Ramakrishnan 423958dd0e Add links to appstore 2018-05-24 09:45:08 -07:00
Girish Ramakrishnan 6a90cf5102 Fix incoming email section a bit 2018-05-24 09:26:41 -07:00
Johannes Zellner 2d820a3005 Remove label about free trial 2018-05-24 15:23:33 +02:00
Johannes Zellner 7fff55a1ed Style the tab widget to fit our style 2018-05-24 15:17:44 +02:00
Girish Ramakrishnan 52d1d47030 Add setting for mail from validation
Fixes #454
2018-05-23 23:34:11 -07:00
Girish Ramakrishnan 7df1d388f0 ManageSieve is now STARTTLS 2018-05-23 23:15:17 -07:00
Girish Ramakrishnan a34f5f13da Remove panel headers since they appear very heavy 2018-05-23 22:12:09 -07:00
Girish Ramakrishnan bcc1e5f79c Make the email UI tabbed 2018-05-23 22:00:48 -07:00
Girish Ramakrishnan 44d32ea281 add app backup button
Fixes cloudron/box#497
2018-05-23 21:17:12 -07:00
Johannes Zellner 63e16c9bb8 Minor rewording to better fit the free tier 2018-05-22 19:17:14 +02:00
Girish Ramakrishnan 528be0e4c0 Remove redundant auto-update check button 2018-05-21 09:28:30 -07:00
Girish Ramakrishnan 0660a924b7 Add some spacing 2018-05-19 18:11:20 -07:00
Girish Ramakrishnan 6f29d5f3f6 explicitZone is gone 2018-05-19 17:28:43 -07:00
Girish Ramakrishnan 9903004af5 Remove trial expiry display 2018-05-18 22:30:39 -07:00
Girish Ramakrishnan 0c2b250901 Fix article 2018-05-18 12:08:19 -07:00
Girish Ramakrishnan 00f8e96dd2 Remove spurious > 2018-05-17 09:06:27 -07:00
Girish Ramakrishnan 267fa79164 Add advanced settings to setupdns 2018-05-15 16:24:09 -07:00
Girish Ramakrishnan 1528aa9d0c domain: add advanced view for zone name and cert provider 2018-05-15 15:39:43 -07:00
Girish Ramakrishnan 0cd6f7f2e7 Set text based on debugMode
Fixes cloudron/box#553
2018-05-15 12:13:31 -07:00
Johannes Zellner f05967d871 Fix terminal resize on window resize
This still does not update the terminal COLUMNS and ROWS
2018-05-15 18:31:54 +02:00
Girish Ramakrishnan 26087e1580 remove user/ from profile route 2018-05-13 21:51:13 -07:00
Girish Ramakrishnan 9275c4fbfd Fix display of error message in mailbox add 2018-05-11 11:16:38 -07:00
Johannes Zellner a2e03ccf7a Fix the dns check notification link 2018-05-11 11:05:28 +02:00
Johannes Zellner 6605a38eab Add scheduler addon dropdown to webterminal 2018-05-11 10:40:11 +02:00
Johannes Zellner 0a09d89684 Add name.com to setup dns 2018-05-09 18:44:03 +02:00
Johannes Zellner c0d4100dd1 Add name.com DNS provider 2018-05-09 12:24:46 +02:00
Girish Ramakrishnan 791f5af3e0 Fix scope use in logs.js and terminal.js 2018-05-07 14:48:52 -07:00
Girish Ramakrishnan ed57e701bc Revert "route53: set listHostedZonesByName property"
This reverts commit 07b428f051.

We can just do this in the backend entirely
2018-05-07 13:41:36 -07:00
Girish Ramakrishnan c678a9b6d7 lint 2018-05-07 13:18:51 -07:00
Girish Ramakrishnan 07b428f051 route53: set listHostedZonesByName property 2018-05-07 11:27:24 -07:00
Girish Ramakrishnan a1ab8b6aa8 reset the expect dns records on refresh 2018-05-06 23:47:38 -07:00
Girish Ramakrishnan a07848164c Show dialog when disabling email 2018-05-06 23:41:39 -07:00
Girish Ramakrishnan 1b1d4ee431 Add GoDaddy 2018-05-06 22:36:33 -07:00
Girish Ramakrishnan f8e5668c5c typo 2018-05-06 21:51:58 -07:00
Girish Ramakrishnan d8719626d9 Add UI for Gandi LiveDNS
Part of cloudron/box#235
2018-05-06 19:38:30 -07:00
Girish Ramakrishnan 3a06797de0 AppStore now returns 401 2018-05-06 19:38:30 -07:00
Girish Ramakrishnan b9d7149dbb Remove email domain logic from users view 2018-05-01 15:25:43 -07:00
Girish Ramakrishnan 72bbb4ec68 Use the scope to determine what the user has access to 2018-05-01 14:40:59 -07:00
Girish Ramakrishnan d9ec1be9b6 Get the user profile first to determine the scope 2018-05-01 14:19:05 -07:00
Girish Ramakrishnan ecddb6977a Use the version in the status API instead
This is because we want to get the user's profile as the first
thing to know the scopes
2018-05-01 14:15:12 -07:00
Girish Ramakrishnan 77220038a1 clients API has moved up a level 2018-05-01 11:08:34 -07:00
Girish Ramakrishnan 016f194271 typo 2018-04-29 18:02:48 -07:00
Girish Ramakrishnan e34fecee5e Pass scope and expiresAt as body params 2018-04-28 22:02:46 -07:00
Girish Ramakrishnan 7448dc5ec5 Capitalize 2018-04-28 10:19:21 -07:00
Girish Ramakrishnan bfd25a08c2 Use new route to query user apps 2018-04-26 20:07:53 -07:00
Girish Ramakrishnan 8861e61bdf profile routes have moved under /api/v1/user 2018-04-26 19:58:38 -07:00
Girish Ramakrishnan 049c2fca8a Make it a button 2018-04-26 09:58:45 -07:00
Girish Ramakrishnan 63df9df913 Add links to TOTP apps 2018-04-26 09:32:56 -07:00
Johannes Zellner 05b6740e07 Refresh the user profile on 2fa status change 2018-04-26 16:54:03 +02:00
Johannes Zellner 46aac0288c Add 2fa disable flow 2018-04-26 16:38:26 +02:00
Johannes Zellner 4ec0fbd33c Show 2fa status in accounts view 2018-04-26 16:32:43 +02:00
Johannes Zellner 7a24d5fdfa Add 2fa enabling flow to accounts view 2018-04-26 16:30:07 +02:00
Johannes Zellner 3f082ccace Fix typo 2018-04-26 14:49:14 +02:00
Girish Ramakrishnan a37fc3093a Add note to setup subscription 2018-04-26 01:19:48 -07:00
Johannes Zellner 4541940a76 Make the setup billing button more descriptive 2018-04-24 11:49:03 +02:00
Johannes Zellner 3017fe0c95 Remove (in trial) label 2018-04-24 11:47:47 +02:00
Johannes Zellner d3bf9a2478 Avoid further flickering of the subscription buttons 2018-04-24 11:47:00 +02:00
Johannes Zellner 7107672358 Fix trial badge flickering 2018-04-23 20:55:03 +02:00
Johannes Zellner 8519d6665e Add support for appstore 2fa setup 2018-04-22 18:52:37 +02:00
Girish Ramakrishnan 774c9e435e Make it 1.5 since we have some swap to work with 2018-04-19 19:20:45 -07:00
Girish Ramakrishnan e1f35a8d9f Fix wording 2018-04-18 12:40:30 -07:00
Johannes Zellner 67136e418c Encode the email query argument
This is required to correctly transfer characters like +
2018-04-18 21:29:40 +02:00
Johannes Zellner 924cc997aa Hide cloudron.io account section in settings if it is not yet registered 2018-04-18 21:18:31 +02:00
Johannes Zellner 12eda5f507 Improve subscription indicator
We now don't show anything when the cloudron is still in trial period
but the user already has setup billing
2018-04-18 17:56:04 +02:00
Girish Ramakrishnan 96bb979abf Add CRM category 2018-04-17 16:28:31 -07:00
Girish Ramakrishnan f74ad0323c Fix README title 2018-04-17 09:39:32 -07:00
Girish Ramakrishnan 62fd73f1b1 Fix link 2018-04-17 09:39:02 -07:00
Johannes Zellner 44f027eb04 remove unused require 2018-04-15 11:00:25 +02:00
Johannes Zellner c9cf6d610b Revision is not part of OAuth credentials 2018-04-15 11:00:01 +02:00
Johannes Zellner 16d4d28046 Be consistent and make domain list entries edit on click 2018-04-13 21:50:21 +02:00
Johannes Zellner 2280008029 Give a lot more backlog for the app logs 2018-04-13 13:13:51 +02:00
Johannes Zellner a36439314d Fix logviewer autoscroll for chrome
Chrome does not support the scrollTopMax property
2018-04-13 13:12:32 +02:00
Johannes Zellner 290b44fbb7 Fixup catchall to use mailboxes instead of users 2018-04-12 13:02:32 +02:00
Johannes Zellner 404c280595 Catchall property is now addresses 2018-04-12 12:37:32 +02:00
Johannes Zellner b0f8370a31 Make copies of mailbox properties to work with in edit dialog
This avoids local data model updates in the UI on dialog cancel
2018-04-12 12:26:54 +02:00
Johannes Zellner 6abcf4ec3c Remove left over artifacts from inline edit mode 2018-04-12 12:15:23 +02:00
Johannes Zellner db6d7bcefb Refresh the mailinglists on edit 2018-04-12 12:12:22 +02:00
Johannes Zellner 0e1913b0b4 Handle corner case, where mailbox referenced in mailinglist got removed 2018-04-12 12:12:11 +02:00
Johannes Zellner cc6b097dc5 Use a copy of the mailinglist properties on edit 2018-04-12 12:02:20 +02:00
Johannes Zellner c4f7a0c857 Ensure new mailboxes appear in maillinglist options 2018-04-12 11:57:15 +02:00
Johannes Zellner 34187d76b6 Update Chart.js to new version and show full fqdn for apps 2018-04-12 11:45:18 +02:00
Girish Ramakrishnan 87e7e9fa07 Add header to mailing list delete dialog 2018-04-11 19:04:26 -07:00
Girish Ramakrishnan 8643fbb65c Fix typo in mailbox delete dialog 2018-04-11 18:49:41 -07:00
Johannes Zellner 6a2846afeb Show full fqdn for apps in graphs 2018-04-11 19:19:05 +02:00
Johannes Zellner 7bfa23e2b1 Prevent email hash change listener to kick-in on view change 2018-04-11 12:16:44 +02:00
Girish Ramakrishnan bcd55972cd Remove many breaks
When email is disabled, there is just lots of empty space
2018-04-10 14:23:10 -07:00
Johannes Zellner d75e1d04b3 Do not use the same DOM element id twice 2018-04-10 18:05:35 +02:00
Johannes Zellner 02ef77398a Remove now unused apiOriginHostname variable from gulpfile 2018-04-10 18:00:18 +02:00
Johannes Zellner b0b19053a7 We now set the csp headers from nginx
This makes it easier to also support local development on non https
2018-04-10 17:59:46 +02:00
Johannes Zellner 5cc298555a Ensure assets have proper tag attributes and always source from / 2018-04-10 14:49:49 +02:00
Johannes Zellner f2a0dcca31 Cleanup some linter errors and usused classes 2018-04-10 14:49:20 +02:00
Johannes Zellner c274e60868 Remove unused noapp.html 2018-04-10 14:31:37 +02:00
Johannes Zellner bde6ef8797 Make new mailbox/list buttons large but give some space on the bottom 2018-04-10 14:11:16 +02:00
Johannes Zellner df15f63424 Remove unneccessary dashboard/ subfolder 2018-04-10 13:28:55 +02:00
Johannes Zellner 1bd4a0aa8e git ignore node_modules/ 2018-04-10 13:12:46 +02:00
Johannes Zellner f068ce4e85 Add package.json for gulp dependencies to build assets 2018-04-10 13:12:46 +02:00
Girish Ramakrishnan 20093c581c Make the button small instead 2018-04-09 15:37:05 -07:00
Girish Ramakrishnan 814d7bafa8 Remove the content-large to keep all views same size 2018-04-09 14:55:35 -07:00
Girish Ramakrishnan e07fac0335 Fix wording 2018-04-09 12:59:38 -07:00
Girish Ramakrishnan 39730c71ce Move buttons to top right 2018-04-09 12:29:00 -07:00
Johannes Zellner 8565130166 Allow deeplinking of domains into email view 2018-04-09 18:00:08 +02:00
Johannes Zellner 9acde7fe86 Add error feedback when mailbox name is already taken 2018-04-09 16:21:32 +02:00
Johannes Zellner 63e43e8d20 Move new mailinglist form to a dialog 2018-04-09 16:12:18 +02:00
Johannes Zellner 10a3af8e5e Ensure autofocus on dialog open 2018-04-09 15:58:25 +02:00
Johannes Zellner 14536febaf Move mailbox add form to dialog 2018-04-09 15:56:20 +02:00
Johannes Zellner 75b597418c Do not list app mailboxes 2018-04-09 15:45:54 +02:00
Johannes Zellner 435730470b Fix indentation 2018-04-09 15:08:05 +02:00
Johannes Zellner 689ddf6875 edit mailinglists with a dialog instead of inline 2018-04-09 15:01:12 +02:00
Johannes Zellner fa550f57b3 Style the alias input and fix some typos 2018-04-09 12:54:25 +02:00
Johannes Zellner b9b84b661a Remove unused css classes and make all mailbox lines edit on click 2018-04-09 12:49:25 +02:00
Johannes Zellner b7573f449f Remove mailbox inline editing 2018-04-09 12:45:00 +02:00
Johannes Zellner 69f6895bd6 Move mailbox edit to dialog 2018-04-09 12:42:14 +02:00
Johannes Zellner 72a1e0d5ca No need to console.error() if we show the error in the ui already 2018-04-06 16:58:46 +02:00
Johannes Zellner 4eb80eedc0 Avoid reflow of the ui when buttons are shown/hidden 2018-04-06 16:58:27 +02:00
Johannes Zellner 32e6931b46 Remove console.log()s 2018-04-06 16:56:19 +02:00
Johannes Zellner f60258ed71 Add mailbox add error handling 2018-04-06 16:51:57 +02:00
Johannes Zellner 32454ba64a Give the mailbox listing more space 2018-04-06 16:48:04 +02:00
Johannes Zellner de212f49c2 Fixup the mailinglist crud ui 2018-04-06 16:43:43 +02:00
Johannes Zellner c308bd90cb Ensure at least the index application assets are versioned for proper refresh 2018-04-06 00:11:08 +02:00
Johannes Zellner 593bde9d92 Ensure the main controller is aware of the newly setup subscription 2018-04-05 23:27:39 +02:00
Johannes Zellner a16bd7030a Fix the configure/select plan button in the settings 2018-04-05 23:27:14 +02:00
Johannes Zellner 4d248bce39 Give appstore login form more space on the bottom 2018-04-05 22:03:40 +02:00
Johannes Zellner e236264848 Fetch subscription directly after the cloudron was registered to update the ui 2018-04-05 21:49:15 +02:00
Johannes Zellner 20e9877fe9 Give mail view more horizontal space 2018-04-05 21:24:29 +02:00
Johannes Zellner b0c4021d17 Add mailbox delete ui 2018-04-05 21:22:07 +02:00
Johannes Zellner 01bfd84853 Fixup the mailbox edit logic 2018-04-05 21:15:02 +02:00
Johannes Zellner a0dbcc9bb3 Add ui bits to add mailboxes 2018-04-05 21:00:33 +02:00
Johannes Zellner bbe351161f Adjust mailbox wrapper functions 2018-04-05 14:02:56 +02:00
Girish Ramakrishnan 968f515679 Enter works (no need for comma) 2018-04-02 09:27:17 -07:00
Girish Ramakrishnan cbb5cb3702 your -> this 2018-04-02 09:24:24 -07:00
Girish Ramakrishnan 82ed1881ea Remove the mailboxes text 2018-04-02 09:23:29 -07:00
Johannes Zellner 4d13d309d3 Handle reserved alias errors 2018-04-02 15:01:01 +02:00
Johannes Zellner 75eae0d8ec Make asyncForEach available globally to reduce code duplication 2018-04-02 11:35:02 +02:00
Johannes Zellner c329541708 Remove mailinglist handling in users/groups view 2018-04-01 23:10:47 +02:00
Johannes Zellner 10b8e93713 Add mailinglist ui in the mail view 2018-04-01 22:42:21 +02:00
Johannes Zellner 963b1d60b5 Remove mailbox settings from user edit dialog 2018-04-01 20:53:49 +02:00
Johannes Zellner 158271de14 Add alias error reporting 2018-04-01 20:31:16 +02:00
Johannes Zellner baba63889d Add logic to set mailbox aliases 2018-04-01 19:12:06 +02:00
Johannes Zellner d52273a516 move mailbox and catchall sections above relay 2018-04-01 19:11:46 +02:00
Johannes Zellner 1b7556443f Add user table to manage mailboxes per domain
This does not yet handle the aliases
2018-03-30 18:34:00 +02:00
Johannes Zellner 9575a1158a Add user listing to mail view to manage per user mailboxes 2018-03-30 18:06:40 +02:00
Johannes Zellner 8ebcc2f8af Immediately check for new configuration after we check for updates 2018-03-30 15:29:45 +02:00
Johannes Zellner 8d6de76fa0 Show update button and dialog in settings view 2018-03-30 15:12:34 +02:00
Johannes Zellner 0ad813cc8d Move update button into notification instead of pill 2018-03-30 15:12:14 +02:00
Johannes Zellner 63ae9a90cf ensure we call the callback 2018-03-28 14:32:21 +02:00
Johannes Zellner 551912145e Refetch the subscription also on the main controller 2018-03-28 14:19:34 +02:00
Johannes Zellner 611f54c237 LICENSE EXPIRED looks quite harsh 2018-03-28 14:18:58 +02:00
Johannes Zellner 60c9f49b44 Show distinct setup billing button in settings 2018-03-28 12:41:20 +02:00
Johannes Zellner 9f66003755 Show trial state in settings view next to plan name 2018-03-28 12:29:37 +02:00
Johannes Zellner 862e1d94be Remove dead notification code 2018-03-28 12:26:53 +02:00
Johannes Zellner 8196f76847 Show different subscription bubbles based on the billing and subscription status 2018-03-28 12:26:24 +02:00
Johannes Zellner 09f1bb4653 Add alias error reporting 2018-03-27 20:19:17 +02:00
Johannes Zellner f626a1f0b7 Fixup all other async occurances 2018-03-27 19:40:20 +02:00
Johannes Zellner fd609d3e19 Fix poor man's async to break on and report errors 2018-03-27 19:38:09 +02:00
Johannes Zellner 977e83cc22 Do not send empty aliases 2018-03-27 18:34:41 +02:00
Johannes Zellner 59b3cabf7e parent.getSubscription() does not exist anymore 2018-03-26 15:22:39 +02:00
Johannes Zellner 4d85c36c16 Show app message if any on status label hover 2018-03-26 11:08:57 +02:00
Girish Ramakrishnan b762f80812 typo 2018-03-22 12:16:16 -07:00
Girish Ramakrishnan 4e0791eb22 Fix gulpfile to handle rename 2018-03-15 14:32:48 -07:00
Girish Ramakrishnan 392e6d1c98 fix gitignore 2018-03-15 14:25:08 -07:00
Girish Ramakrishnan 5a49a555ad we use the package files from the box repo 2018-03-15 14:24:21 -07:00
Girish Ramakrishnan d59cb63188 move files to dashboard/ 2018-03-15 14:23:51 -07:00
Johannes Zellner 1d0f87f408 Avoid reflow on settings page while fetching current subscription 2018-03-14 23:30:42 +01:00
Johannes Zellner a26264e8ce Remove usage of obsolete undecided subscription plan 2018-03-14 23:28:36 +01:00
Johannes Zellner ed716d7569 Sync the text what a subsription offers 2018-03-14 22:34:57 +01:00
Johannes Zellner f85fca1720 An update is actually a positive action 2018-03-14 20:38:17 +01:00
Johannes Zellner ed2539cbfc Change update dialog title and include version 2018-03-14 20:37:39 +01:00
Johannes Zellner 5405338d20 Remove redundant if condition 2018-03-14 20:10:48 +01:00
Johannes Zellner f8ad2fdc11 currentSubscription is not required anymore 2018-03-14 19:53:36 +01:00
Johannes Zellner a618f2b523 Make update button dependent on the sourceTarballUrl instead of the subscription type 2018-03-14 19:53:36 +01:00
Girish Ramakrishnan 8b5a88ba5e Remove break and just use some margin 2018-03-14 09:09:42 -07:00
Girish Ramakrishnan db9e3b44a1 Revert "Show all apps inactive and blurred in the background of the appstore login form"
This reverts commit b9d6c8f8bb.
2018-03-14 09:04:05 -07:00
Girish Ramakrishnan 634408d3a3 Fix the email instructions 2018-03-13 23:16:15 -07:00
Girish Ramakrishnan 529a668db3 Fix eventlog display 2018-03-13 22:03:25 -07:00
Girish Ramakrishnan c0f01da1cd Make it FREE TRIAL instead 2018-03-13 13:38:19 -07:00
Girish Ramakrishnan 4cbab59fdb Fix the setup billing link 2018-03-13 13:30:33 -07:00
Girish Ramakrishnan ec9c9fb0f5 Fix the subscription dialog text 2018-03-13 13:23:22 -07:00
Girish Ramakrishnan 286d634756 always require terms 2018-03-13 11:06:49 -07:00
Girish Ramakrishnan ca2457bfcb smallcase the Account 2018-03-13 11:00:41 -07:00
Girish Ramakrishnan 459cafdf56 Add description text during signup 2018-03-13 10:59:15 -07:00
Johannes Zellner b9d6c8f8bb Show all apps inactive and blurred in the background of the appstore login form 2018-03-13 10:50:03 +01:00
Johannes Zellner 2da019556b Improve and center appstore login form 2018-03-13 10:21:25 +01:00
Johannes Zellner cbd28bc12f Attempt to better position checkboxes 2018-03-13 10:16:31 +01:00
Johannes Zellner 4332f60cc4 Use the admin domain as the default when installing a new app 2018-03-13 09:38:55 +01:00
Girish Ramakrishnan 950179ee1c Just link to docs instead 2018-03-13 00:29:10 -07:00
Girish Ramakrishnan 803eb4760e Make text clearer 2018-03-13 00:24:33 -07:00
Girish Ramakrishnan 32a41e6c1c Clarify that users need a mailbox to access 2018-03-12 15:49:11 -07:00
Girish Ramakrishnan de195c461b make it text-info 2018-03-12 15:04:37 -07:00
Girish Ramakrishnan 5003a8ea4d Make it text-info for the underline to show 2018-03-12 14:17:58 -07:00
Girish Ramakrishnan caa41b0022 Fix the text to handle multi-domain email 2018-03-12 13:57:50 -07:00
Johannes Zellner c7151d2b8d Reduce newlines 2018-03-12 19:08:15 +01:00
Johannes Zellner 0929ae1a4c Remove unused app feedback dialog 2018-03-12 19:08:05 +01:00
Johannes Zellner 0c79c42c10 Use forum links for missing apps 2018-03-12 19:06:15 +01:00
Girish Ramakrishnan 028b24db03 Don't make the whole dialog red 2018-03-09 15:02:30 -08:00
Johannes Zellner bce3d3f664 Use fqdn instead of location for naked domain apps 2018-03-09 10:17:01 +01:00
Girish Ramakrishnan 828d6f6cc8 Show the provider and format for caas 2018-03-09 00:40:55 -08:00
Girish Ramakrishnan 0a026cc143 Display caas as Managed Cloudron 2018-03-09 00:37:20 -08:00
Girish Ramakrishnan 3bc9a87933 Fix display of caas domain 2018-03-09 00:29:00 -08:00
Girish Ramakrishnan 769f9adc9d Update mail domain when domain is updated 2018-03-08 18:06:50 -08:00
Johannes Zellner b5f53d921e Replace app-request link to point to the new forum 2018-03-08 21:46:16 +01:00
Girish Ramakrishnan 105e9e7825 Use the new app update pattern 2018-03-06 21:30:42 -08:00
Girish Ramakrishnan c8cf050156 Keep it alphabetical 2018-03-05 10:28:22 -08:00
Girish Ramakrishnan b7baafbbe6 actions -> events
also make it all past tense
2018-03-05 10:17:44 -08:00
Girish Ramakrishnan 85dde71ec3 fix display of undefined id
remove id display altogether, it's not very interesting to see it
2018-03-05 10:09:06 -08:00
Girish Ramakrishnan 2970b086a3 Updates -> App Updates 2018-03-05 09:39:03 -08:00
Johannes Zellner 5910709008 Use the correct model attribute for appId in feedback form 2018-03-05 17:10:00 +01:00
Johannes Zellner 2b6ce4f813 Reduce feedback form options and add ability to specify failing app 2018-03-05 12:54:09 +01:00
Johannes Zellner 451c697fb7 Show email as fallback when a user has no username yet 2018-03-05 12:14:20 +01:00
Johannes Zellner 09149318b1 Better format the multiselect element 2018-03-05 12:10:17 +01:00
Johannes Zellner d2d8eb9485 Allow to select multiple actions in the eventlog filter 2018-03-05 12:03:02 +01:00
Johannes Zellner 91265613a9 Prettify eventlog source display 2018-03-02 19:21:24 +01:00
Johannes Zellner 31c414bbe1 Use more readable datetime tooltip format in activity log 2018-03-02 18:58:49 +01:00
Johannes Zellner e2a3654ed7 Give the time more space in the activity log 2018-03-02 18:50:49 +01:00
Johannes Zellner 96d7283534 Do not alternate the background color of the activity log 2018-03-02 18:50:32 +01:00
Girish Ramakrishnan 256a7e322b Keep it all to two words 2018-03-02 09:12:53 -08:00
Johannes Zellner e5b78337ac Show more readable user event data 2018-03-02 13:42:24 +01:00
Johannes Zellner 67ba5aa1c5 fix indentation 2018-03-02 13:19:57 +01:00
Johannes Zellner 848a617f98 Make eventlog entries expandable to show raw event data 2018-03-02 10:50:05 +01:00
Johannes Zellner 1fc7efef0d Improve app related eventlog display 2018-03-02 10:49:46 +01:00
Girish Ramakrishnan 576f6eafbb Rename Chat to Forum 2018-03-01 13:40:10 -08:00
Girish Ramakrishnan 2caf73b5e3 Do not list mail domains and aliases if username is not available 2018-02-28 15:21:42 -08:00
Girish Ramakrishnan 56abb68e0c Link admin link to docs 2018-02-28 13:40:06 -08:00
Girish Ramakrishnan 7aaac5a48a reword email address on domains 2018-02-28 13:26:15 -08:00
Girish Ramakrishnan 8326587886 Give indication that the test is for the relay 2018-02-27 09:24:36 -08:00
Girish Ramakrishnan 466b3f4784 Make the user edit dialog say "Primary email" 2018-02-24 16:42:15 -08:00
Girish Ramakrishnan bccdf548a8 Fix typo making the MX records hidden 2018-02-23 17:04:38 -08:00
Girish Ramakrishnan fa4b1b3d5b Add note that user and group mailboxes must be enabled 2018-02-23 17:02:18 -08:00
Girish Ramakrishnan 9d47fd198f replace chat with forum 2018-02-23 15:53:23 -08:00
Girish Ramakrishnan 5966ee6800 replace terms link with license 2018-02-23 15:25:27 -08:00
Johannes Zellner 2d20e3c13d Scroll to top on category activation 2018-02-23 11:34:39 -08:00
Johannes Zellner 2172f8532d Rework the appstore category list 2018-02-23 11:34:27 -08:00
Johannes Zellner 9dc4318152 Reduce category item size 2018-02-23 11:34:04 -08:00
Johannes Zellner e1a92e7127 Make primary email labels explicit 2018-02-23 10:29:09 -08:00
Girish Ramakrishnan 767b31caa2 Display the pretty domain provider name in the table
This is especially needed to distinguish wildcard/manual.
2018-02-21 10:14:17 -08:00
Johannes Zellner c2232936e0 Replace chat with forum in the support page 2018-02-20 11:55:57 -08:00
Johannes Zellner 4f1bbfd9e3 Make it clear that support ssh button should be enabled only if we ask the user to do so 2018-02-20 11:27:12 -08:00
Johannes Zellner caf57e37dc Add eventlog groups for apps and users 2018-02-20 11:13:51 -08:00
Johannes Zellner 64b8e4ad6c Shorten app ids in eventlog 2018-02-19 01:56:12 -08:00
Johannes Zellner c9d3907124 Add missing whitespace 2018-02-19 01:56:12 -08:00
Girish Ramakrishnan bf6bea800b Add note that user/group mailboxes must be enabled 2018-02-18 12:04:37 -08:00
Johannes Zellner 26f1673d47 Show full fqdn on app grid item hover 2018-02-17 16:01:36 -08:00
Johannes Zellner 08153454a2 Show tooltips immediately for app actions to guide the user 2018-02-09 10:11:23 +01:00
Girish Ramakrishnan efc26ab587 Specify which domain mail should be enabled for 2018-02-08 19:08:00 -08:00
Girish Ramakrishnan e24e0a7e87 br was removed by mistake in 23bc267c46 2018-02-08 15:25:37 -08:00
Johannes Zellner 23bc267c46 Show full fqdn in apps grid for now instead of the domain on the top 2018-02-08 16:17:47 +01:00
Johannes Zellner 35cc592d61 Remove altDomain ui bits 2018-02-08 09:44:35 +01:00
Girish Ramakrishnan 512f6a1166 Remove obsolete action 2018-02-06 23:14:37 -08:00
Johannes Zellner 3160ffec3f The update schedule is only set for the apps now 2018-02-06 19:39:06 +01:00
Johannes Zellner c543d4517f Adjust to new autoupdate pattern rest apis 2018-02-06 19:25:06 +01:00
Girish Ramakrishnan d7334b991b Add DO SGP1 2018-02-05 11:06:40 -08:00
Girish Ramakrishnan 2b355f6ee4 typo 2018-02-03 18:23:49 -08:00
Girish Ramakrishnan cd6af57a6e Use SOS ng endpoint and v4
https://www.exoscale.ch/syslog/2018/01/09/object-storage/
2018-02-02 16:29:10 -08:00
Girish Ramakrishnan 674028ee77 This probably explains why people ask for support in issue tracker 2018-02-02 11:39:36 -08:00
Girish Ramakrishnan f51c2e7b61 pass env=dev as search param to set the tlsConfig 2018-01-31 21:02:12 -08:00
Johannes Zellner 182085d3f8 Remove the generation of the splash screen assets 2018-01-31 09:23:42 +01:00
Johannes Zellner b8e70f1160 Remove console.log() 2018-01-30 17:01:27 +01:00
Johannes Zellner c624c04e9d Hide alias and mailling list UI when no domain has email enabled 2018-01-30 16:33:27 +01:00
Johannes Zellner 666badfa38 Mailinglist remove route returns 204 2018-01-30 13:38:25 +01:00
Girish Ramakrishnan 21b9843083 Enable selector for now 2018-01-29 19:33:56 -08:00
Girish Ramakrishnan f3b53a22f5 Remove use of config.fqdn 2018-01-29 14:35:47 -08:00
Girish Ramakrishnan f850235b3a Remove ununsed setAdminCertificate 2018-01-26 20:46:58 -08:00
Girish Ramakrishnan f555cfddd0 Uncomment for testing 2018-01-26 11:53:26 -08:00
Johannes Zellner 1c9052f085 Rework the email domain and alias handling for user edits to fix various bugs 2018-01-26 15:39:35 +01:00
Johannes Zellner 6a450b7190 setAlias returns 202 on success 2018-01-26 15:39:02 +01:00
Johannes Zellner 75194525fb Remove unused function showBubble() 2018-01-26 15:04:18 +01:00
Johannes Zellner 9d57c81505 Add group edit ui to select mailing lists 2018-01-26 11:31:43 +01:00
Johannes Zellner 8af587b6d9 Add mailing list api wrappers 2018-01-26 11:31:19 +01:00
Girish Ramakrishnan c1cb2eda00 Add a hack for now to just add/remove mail domains as part of domains API 2018-01-25 13:40:45 -08:00
Girish Ramakrishnan 90c867da82 Fix the text 2018-01-25 10:08:29 -08:00
Johannes Zellner d97268dfa7 Give some busy indicator while email configs are fetching 2018-01-25 18:28:11 +01:00
Johannes Zellner c3ce6ef9f0 Add alias ui in user edit 2018-01-25 18:17:40 +01:00
Johannes Zellner eb3d6fe5f1 Use the new alias api in api wrapper 2018-01-25 18:16:47 +01:00
Johannes Zellner e39e7d4898 Adjust to the mailboxes route name change 2018-01-25 12:28:39 +01:00
Johannes Zellner b282375ac7 Also allow to change the fallbackEmail for users 2018-01-24 16:21:14 +01:00
Johannes Zellner 8deb28f8eb Add multiselect to enable mailboxes per user and domain 2018-01-24 16:20:56 +01:00
Johannes Zellner e91833dcf2 Add mailbox api wrappers to client.js 2018-01-24 16:20:21 +01:00
Girish Ramakrishnan ca9781c279 Fix display of domain 2018-01-23 20:43:49 -08:00
Girish Ramakrishnan 2d8412a629 Make API Key text clearer 2018-01-23 18:15:48 -08:00
Girish Ramakrishnan e4b253da22 test email now requires a domain 2018-01-23 16:10:09 -08:00
Girish Ramakrishnan 6edad6b986 remove enterprise checks 2018-01-23 11:55:36 -08:00
Johannes Zellner 7b7e94d3d6 Not sure what to do yet with alias ui in users settings, so disable to make the ui itself work 2018-01-23 17:09:47 +01:00
Johannes Zellner bc164281db Always show warning if an app requires email to be enabled for the selected domain
We can be smarter in the future and show this based on currently
selected domain from the dropdown
2018-01-23 16:51:53 +01:00
Johannes Zellner f94380b2dd Disable multidomain for domains and email view 2018-01-23 15:37:55 +01:00
Johannes Zellner a2241a4e47 Fix return code for email toggle to let the UI correctly react 2018-01-23 15:35:02 +01:00
Johannes Zellner 7e5afcfe6a Reenable and provision the catchall dropdown 2018-01-23 15:11:33 +01:00
Johannes Zellner 7c926cc051 Already update the ui while checking the mail status 2018-01-23 12:41:52 +01:00
Johannes Zellner 16f43e3eac Fixup the status check logic 2018-01-23 12:38:19 +01:00
Johannes Zellner 456577a166 First round of mail view refactoring 2018-01-23 12:30:35 +01:00
Johannes Zellner 7166604fc0 Temporarily disable toplevel email check notification 2018-01-23 12:30:16 +01:00
Johannes Zellner 0ae8d1ed4d Refactor the mail related api wrappers 2018-01-23 12:29:57 +01:00
Girish Ramakrishnan 4388aee70d add dot files 2018-01-22 17:44:51 -08:00
Girish Ramakrishnan 13e4ceff44 Initial commit 2018-01-22 13:01:38 -08:00
500 changed files with 45439 additions and 71933 deletions
+1 -5
View File
@@ -1,10 +1,6 @@
dist/
node_modules/
coverage/
webadmin/dist/
setup/splash/website/
installer/src/certs/server.key
# vim swap files
*.swp
+15 -3
View File
@@ -2,7 +2,19 @@
"node": true,
"browser": true,
"unused": true,
"globalstrict": true,
"predef": [ "angular", "$" ],
"esnext": true
"esversion": 6,
"globalstrict": false,
"predef": [
"$",
"angular",
"async",
"describe",
"it",
"before",
"after",
"require",
"monaco",
"Mimer",
"ISTATES"
]
}
-993
View File
@@ -1,993 +0,0 @@
[0.0.1]
- Hot Chocolate
[0.0.2]
- Hotfix appstore ui in webadim
[0.0.3]
- Tall Pike
[0.0.4]
- This will be 0.0.4 changes
[0.0.5]
- App install/configure route fixes
[0.0.6]
- Not sure what happenned here
[0.0.7]
- resetToken is now sent as part of create user
- Same as 0.0.7 which got released by mistake
[0.0.8]
- Manifest changes
[0.0.9]
- Fix app restore
- Fix backup issues
[0.0.10]
- Unknown orchestra
[0.0.11]
- Add ldap addon
[0.0.12]
- Support OAuth2 state
[0.0.13]
- Use docker image from cloudron repository
[0.0.14]
- Improve setup flow
[0.0.15]
- Improved Appstore view
[0.0.16]
- Improved Backup approach
[0.0.17]
- Upgrade testing
- App auto updates
- Usage graphs
[0.0.18]
- Rework backups and updates
[0.0.19]
- Graphite fixes
- Avatar and Cloudron name support
[0.0.20]
- Apptask fixes
- Chrome related fixes
[0.0.21]
- Increase nginx hostname size to 64
[0.0.22]
- Testing the e2e tests
[0.0.23]
- Better error status page
- Fix updater and backup progress reporting
- New avatar set
- Improved setup wizard
[0.0.24]
- Hotfix the ldap support
[0.0.25]
- Add support page
- Really fix ldap issues
[0.0.26]
- Add configurePath support
[0.0.27]
- Improved log collector
[0.0.28]
- Improve app feedback
- Restyle login page
[0.0.29]
- Update to ubuntu 15.04
[0.0.30]
- Move to docker 1.7
[0.0.31]
- WARNING: This update restarts your containers
- System processes are prioritized over apps
- Add ldap group support
[0.0.32]
- MySQL addon update
[0.0.33]
- Fix graphs
- Fix MySQL 5.6 memory usage
[0.0.34]
- Correctly mark apps pending for approval
[0.0.35]
- Fix ldap admin group username
[0.0.36]
- Fix restore without backup
- Optimize image deletion during updates
- Add memory accounting
- Restrict access to metadata from containers
[0.0.37]
- Prepare for Selfhosting 1. part
- Use userData instead of provisioning calls
[0.0.38]
- Account for Ext4 reserved block when partitioning disk
[0.0.39]
- Move subdomain management to the cloudron
[0.0.40]
- Add journal limit
- Fix reprovisioning on reboot
- Fix subdomain management during startup
[0.0.41]
- Finally bring things to a sane state
[0.0.42]
- Parallel apptask
[0.0.43]
- Move to systemd
[0.0.44]
- Fix apptask concurrency bug
[0.0.45]
- Retry subdomain registration
[0.0.46]
- Fix app update email notification
[0.0.47]
- Ensure box code quits within 5 seconds
[0.0.48]
- Styling fixes
- Improved session handling
[0.0.49]
- Fix app autoupdate logic
[0.0.50]
- Use domainmanagement via CaaS
[0.0.51]
- Fix memory management
[0.0.52]
- Restrict addons memory
- Get nofication about container OOMs
[0.0.53]
- Restrict addons memory
- Get notification about container OOMs
- Add retry to subdomain logic
[0.0.54]
- OAuth Proxy now uses internal port forwarding
[0.0.55]
- Setup cloudron timezone based on droplet region
[0.0.56]
- Use correct timezone in updater
[0.0.57]
- Fix systemd logging issues
[0.0.58]
- Ensure backups of failed apps are retained across archival cycles
[0.0.59]
- Installer API fixes
[0.0.60]
- Do full box backup on updates
[0.0.61]
- Track update notifications to inform admin only once
[0.0.62]
- Export bind dn and password from LDAP addon
[0.0.63]
- Fix creation of TXT records
[0.0.64]
- Stop apps in a retired cloudron
- Retry downloading application on failure
[0.0.65]
- Do not send crash mails for apps in development
[0.0.66]
- Readonly application and addon containers
[0.0.67]
- Fix email notifications
- Fix bug when restoring from certain backups
[0.0.68]
- Update graphite image
- Add simpleauth addon support
[0.0.69]
- Support newer manifest format
- Fix app listing rendering in chrome
- Fix redis backup across upgrades
[0.0.70]
- Retry app download on error
[0.0.71]
- Fix oauth and simple auth login
[0.0.72]
- Cleanup application volumes periodically
- New application logging design
[0.0.73]
- Update SSL certificate
[0.0.74]
- Support singleUser apps
[0.0.75]
- scheduler addon
[0.0.76]
- DNS Sync fixes
- Show warning to user when memory limit reached
[0.0.77]
- Do not set hostname in app containers
[0.0.78]
- Support custom domains
[0.0.79]
- Move SSH Port
[0.0.80]
- Use journalctl for container logs
[0.1.0]
- Wait for configuration changes before starting Cloudron
[0.1.1]
- Ensure dns config for all cloudrons
[0.1.2]
- Make email work again
- Add DKIM keys for custom domains
[0.1.3]
- Storage backend
[0.1.4]
- CaaS Backup configuration fix
[0.1.5]
- Use correct tokens for DNS backend
[0.1.6]
- Add hook to determine the api server of the box
- Fix crash notification
[0.2.0]
- New cloudron exec implementation
[0.2.1]
- Update to node 4.1.1
- Fix certification installation with custom domains
[0.2.2]
- Better debug output
- Retry more times if docker registry goes down
[0.3.0]
- Update SSH keys
- Allow bigger manifest files
[0.4.0]
- Update to docker 1.9.0
[0.4.1]
- Fix scheduler crash
- Crucial OAuth fixes
[0.4.2]
- Fix crash when reporting backup error
- Allow larger manifests
[0.4.3]
- Fix cloudron exec
[0.4.4]
- Initial Lets Encrypt integration
[0.4.5]
- Fixup nginx configuration to allow dynamic certificates
[0.4.6]
- LetsEncrypt integration for custom domains
- Rate limit crash emails
[0.5.0]
- Enable staging Lets Encrypt Integration
[0.5.1]
- Display error dialog for app installation errors
- Enable prod Lets Encrypt Integration
- Handle apptask crashes correctly
[0.5.2]
- Fix apphealthtask crash
- Use cgroup fs driver instead of systemd cgroup driver in docker
[0.5.3]
- Changes for e2e testing
[0.5.4]
- Fix bug in LE server selection
[0.5.5]
- Scheduler redesign
- Fix journalctl logging
[0.5.6]
- Prepare for selfhosting option
[0.5.7]
- Move app images off the btrfs subvolume
[0.6.0]
- Consolidate code repositories
[0.6.1]
- Use no-reply as email from address for apps in naked domains
- Update Lets Encrypt account with owner email when available
- Fix email templates to indicate auto update
- Add notification UI
[0.6.2]
- Fix `cloudron exec` container to have same namespaces as app
- Add developmentMode to manifest
[0.6.3]
- Make sending invite for new users optional
[0.6.4]
- Add support for display names
- Send invite links to admins for user setup
- Enforce stronger passwords
[0.6.5]
- Finalize stronger password requirement
[0.7.0]
- Upgrade to 15.10
- Do not remove docker images when in use by another container
- Fix sporadic error when reconfiguring apps
- Handle journald crashes gracefully
[0.7.1]
- Allow admins to edit users
- Fix graphs
- Support more LDAP cases
- Allow appstore deep linking
[0.7.2]
- Fix 5xx errors when password does not meet requirements
- Improved box update management using prereleases
- Less aggressive disk space checks
[0.8.0]
- MySQL addon : multiple database support
[0.8.1]
- Set Host HTTP header when querying healthCheckPath
- Show application Changelog in app update emails
[0.9.0]
- Fix bug in multdb mysql addon backup
- Add initial user group support
- Improved app memory limit handling
[0.9.1]
- Introduce per app group access control
[0.9.2]
- Fix bug where reconfiguring apps would trigger memory limit warning
- Allow more apps to be installed in bigger sized cloudrons
- Allow user to override memory limit warning and install anyway
[0.9.3]
- Admin flag is handled outside of groups
- User interface fixes for groups
- Allow to set access restrictions on app installation
[0.10.0]
- Upgrade to docker 1.10.2
- Fix MySQL addon to handle heavier loads
- Allow listing and download of backups (using the CLI tool)
- Ubuntu security updates till 8th March 2016 (http://www.ubuntu.com/usn)
[0.10.1]
- Fix Let's Encrypt certificate renewal
[0.10.2]
- Apps can now bind with username or email with LDAP
- Disallow updating an app with mismatching manifest id
- Use admin domain instead of naked domain in the SPF record
- Download Lets Encrypt intermediate cert
[0.10.3]
- Store the backup config for each backup. This will allow using multiple buckets/providers for backups simultaneously.
- Fix SPF record check
[0.10.4]
- Fix restore for droplets in EU region
[0.11.0]
- Store backups in the same region as the Cloudron
- Fix PCRE security issue (http://www.ubuntu.com/usn/usn-2943-1/)
[0.11.1]
- Improve the backup logic
[0.11.2]
- Allow users to choose a username on first sign up
- Fix app graphs
[0.12.0]
- Fix upload of large backups
- Postgres addon whitelists pg_trgm and hstore extensions
- Suppress boring update emails from patch releases
- Setup bounce alerts for emails
- Query admin's name in activation wizard
- Admin emails are now delivered as no-reply
- Fix crash when user attempts to set a duplicate email
- Improved mongodb crash recovery
[0.12.1]
- Fix crash when backing up apps
[0.12.2]
- Improved error handling for addons
[0.12.3]
- LDAP: Do not set sn attribute when user has no surname
[0.12.4]
- Install app only after platform is ready
[0.12.5]
- Get alerts for app task failures
- Fix update issue when one or more apps are in failed state
[0.12.6]
- Allow setting an alternate external domain for apps
[0.12.7]
- Fix changing password
[0.13.0]
- Upgrade to ubuntu 16.04
- Add event log
[0.13.1]
- Make activity log viewable to admins
- Fix geoip lookup
[0.13.2]
- Fix crash in app auto updater
- Fix crash with empty timezone
[0.13.3]
- Enable auth in email addon
- Add search for activity log
- Add tutorial for first time users
[0.13.4]
- Fix mail addon restart issue
[0.14.0]
- You have mail :-)
[0.14.1]
- 2-character usernames are now allowed
- Make cloudron CLI push/pull more robust
[0.14.2]
- Update mail addon
[0.15.0]
- [REST API](https://cloudron.io/references/api.html) is now in public beta
- Enable Developer mode by default for new Cloudrons
- Reverse proxy fixes for apps exposing a WebDav server
- Allow admins to optionally set the username and displayName on user creation
- Fix app autoupdate logic to detect if one or more in-use port bindings was removed
[0.15.1]
- Fix mail connectivity from IPv6 clients
- Add API token management UI
- Improved UI to enter email aliases
[0.15.2]
- Allow restoring apps from any previous backup
[0.15.3]
- Show installation progress in a tooltip
[0.16.0]
- Allow apps to be configured in configuring state
- Improved platform architecture that allows incremental infrastructure updates
- Implement app clone
[0.16.1]
- Fix UI layout issue in tokens page
- Resume app tasks only when configured and platform ready
- Allow errored apps to be reconfigured
[0.16.2]
- Fix assert when backing up apps in errored state
- Fix bug where multiple redis installations caused an error
[0.16.3]
- Timeout in 10mins if app restore fails because of external domain CNAME setup
[0.16.4]
- Setup email aliases to only alias names for the Cloudron domain
[0.16.5]
- Allow sending email with alias as the From
[0.16.6]
- Add plan migration interface
- Initial EC2 support
[0.17.0]
- Public beta release of Cloudron Mail Server
- Add new DNS & Certs UI that enables easy migration to a custom domain
- Allow sending and receiving email from alias subaddresses
- Fix installation issue with some apps on the naked domain
[0.17.1]
- Preliminary user impersonation support
- Fix crash in mail container when generating bounces
[0.17.2]
- Add config option to embed apps in other sites
[0.17.3]
- Incremental infrastructure update logic
- Keep eventlogs only for a week
- Throttle OOM mails
[0.17.4]
- Add warning for users moving to custom domains
- Out of disk space and certificate renewal mails are now sent to cloudron owner for selfhosters
- Fix a bug where selfhosted Cloudrons do not start because of a MySQL error
- Implement new app versioning & update scheme
[0.17.5]
- Fix migration interface issue
- Allow self hosted Cloudron to login to the Cloudron Store
- Send mail to self hosted Cloudron admins about OOM and App died errors
- Fix bug where box update emails are sent repeatedly
[0.18.0]
- Fix app bundle installation
- Fix RBL lookup in mail server
- Add spam filter for email
[0.19.0]
* New base image 0.19.0
* Upgrade PostgreSQL and MySQL
[0.19.1]
* Make email optional (settings -> enable/disable mail)
* Make PostgresSQL behave better in low memory cloudrons
* Add demo mode check
* Fix plan listing
[0.20.0]
* Fix bug where crash reports where not being sent to support@cloudron.io (#29)
* Do not overwrite existing DNS records during app installation (#27)
* Add UI to configure app's memory limit (#18)
* Fix OAuth proxy support (#6)
[0.20.1]
* Fix bug where oauth proxy was installed for apps with customAuth
[0.20.2]
* Fix memory limit slider to start from the minimum memory (#43)
* Save user certs separately from automatic certs (#44)
* Fix access control display for email apps (#45)
[0.20.3]
* Make DigitalOcean selfhosting independent
[0.21.0]
* Delivery of email to aliases is now case insensitive (#35)
* Mailing list support via Groups (#15)
* Fix issue where non-admin users could not update their profile
[0.21.1]
* Fix app clone error (mailbox was not allocated)
* Do not allow "-" in group names
[0.22.0]
* Rebuild server instances instead of recreating
[0.50.0]
* Add UI to configure backup location
* Add DNS backend to make it easy to run on any server with SSH access
* Update wildcard certificate
* Fix crash in mail container with SPF plugin
* Fix postgresql addon to restore correctly
* Periodically cleanup file system backups
* Improve invitation emails
* Fix bug where mailbox name was generated incorrectly for nake domain (#81)
[0.60.0]
* Implement new approach to selfhosting. `cloudron machine create` is now deprecated.
Please see the [selfhosting guide](https://cloudron.io/references/selfhosting.html)
for more details
* Send email to admins if backup fails
* Add UI to set digitalocean as DNS provider
[0.60.1]
* Apply less strict hostname checking for email
* Fix bug in Cloudron plan listing
* Improved storage provider interface
[0.70.0]
* Remove standalone installer daemon
[0.70.1]
* Add additional platform healthcheck
[0.80.0]
* Add optional SSO for apps
* Improve app status page
* Several webinterface improvements
[0.80.1]
* Improved DNS handling
* Better error messages in UI
[0.90.0]
* Remove customAuth support
* Support non AWS S3 object storage
* Settings UI improvements
[0.91.0]
* Support installing Cloudron on intranet and VirtualBox
* Fix bug where relocating an app did not free the old location
* Allow Email server to be enabled with wildcard DNS
[0.92.0]
* Backup encryption key is now optional
* Fix bug where DNS mail record warning was shown by mistake
* Make cloudron-setup finish with `manual` DNS provider
[0.92.1]
* Remove DO specific grub cmd line
* Fix License text
[0.93.0]
* Smoother upgrades
[0.94.0]
* Cloudron domain can now be set after installation
* Backups are now organized by directory
* Document upgrading from Filesystem backend
* Send certificate renewal errors, OOM errors to cloudron admins
* Email bounce alerts are sent to the Cloudron owner
[0.94.1]
* Suppress upgrade emails
* Enable unattended upgrades
* Standardize on using devicemapper for docker storage backend
* Show detailed backup progress
* Fix DNSBL issue in mail container
* Fix issue where bounce emails were not sent to aliases
* Remove tutorial
* Restart mail container on certificate change
[0.97.0]
* Fix missing app icon issue
* Fix issue where box sends out crash reports incessantly
* (API) Allow memory limit to be set to -1 (unlimited)
* (API) Move developmentMode flag from manifest to apps route
[0.98.0]
* Send stat on whether email is enabled
* Fix bug where heartbeat was sent for self-hosted Cloudrons
* Make Cloudron function even when disk is full
* Fix thunderbird connection issue
* Send more detailed logs for backup failures
* Restart nginx if it crashed automatically
* Support all DNS providers for managed Cloudrons
* Add granular configuration for auto-updates
[0.99.0]
* Fix bug where ports <= 1023 were not reserved
* Cleanup graphs UI
* Polish webadmin UI
* Fix bug where hard disk size was detected incorrectly
[0.99.1]
* Fix bug with duplicate nginx configs
[0.100.0]
* Improve DNS notifications for email
* Do not enable HSTS for subdomains
[0.100.1]
* Fix crash when fetching mail records
* Fix crash in LDAP server when username and displayName are empty
[0.101.0]
* New base image 0.10.0
* Better error handling of unpurchase errors
* Validate that cloudron domain name is a subdomain of public suffic list
* Add canada and london to S3 backup regions
* Bundle Font Awesome as part of webadmin
* Fix crash in custom certiicate validation
* Get A+ rating in SSL Check
* More robust detection and injection of SPF record
* Add azure, lightsail, linode, ovh, vultr to provider list
[0.102.0]
* Fix issue where SPF record check was only done 5 times (updated 'async')
* Make auto-generated self-signed cert load quickly on Firefox
* Ensure we download docker images and have an app data volume on app re-configure
* Improve certificate renewal erorr message
* Fix disk usage graph
* Show Repair UI for errored apps
[0.102.1]
* Add terms link when signing up for Cloudron.io account
* Fix issue where Cloudrons with many apps (> 35) were unable to backup
* Improve wording of DNS Setup
[0.103.0]
* Do not send crash logs and other notifications to support@cloudron.io for self-hosted instances
* Make auto-generated self-signed cert load quickly on Firefox (take 2)
[0.104.0]
* (mail) Fix crash when sending mails to groups with just 1 user
* (ldap) Add isadmin attribute to better map users in apps
* (ldap) Hide users which have not yet set a username in ldap searches
* (core) Add SSH authorized_keys management
* (core) Add additional security related headers to the nginx reverse proxy
* (ui) Add remote SSH support option
* (ui) Fix eventlog display
* (ui) Fix CNAME setup information
[0.105.0]
* Always show email related checks
* Show outbound SMTP port 25 status
* Hide remote feature for normal users
* Only list users via ldap searches who have access to the app
* Fix installation issue on servers with a differente locale set
[0.105.1]
* Fix crash when setupToken is not provided in activate API
* Add inline Docker GPG key
* Re-download icon when repairing app
* Fix issue where pre-installed apps were not installed correctly
* Fix issue where new cloudrons could not be activated
[0.106.0]
* (mail) Fix email forwarding to external domains
* (mail) Set maximum email size to 25MB
* Remove SimpleAuth addon
[0.107.0]
* Support CSP for webinterface and OAuth views
* (mail) Fix issue where Cloudron is only used to send emails
[0.108.0]
* Redirect to /setupdns.html when restoring
* Fix setting custom avatar
* Do not allocate more than 4GB swap
* Generate real passwords for sendmail/recvmail addons
* Rate limit all authentication routes to prevent password brute force
* Generate 128 byte password for MySQL multi-db addon
[0.109.0]
* Add Referrer-policy
* Add tooltip for admin email field explaining it is local & private
* Verify AMI instance id during DNS setup instead of admin account setup
* Split platform and app data folders and get rid of btrfs volumes
[0.110.0]
* Fix disk usage graphs
* Add --data-dir to cloudron-setup that allows customizing data location
* Add UI to restore from any app backup
* (mysql) Use utf8mb4 encoding for databases and backups
* Allow installing a new app from a backup
* Fix download of large files (> 1GB)
* Fix app backup regression
[0.120.0]
* Update Docker to 17.03.1-ce
* Rework backup backend logic
* Add UI to download logs
* Fix crash when checking mail dns settings
* Allow backup retention duration to be configured
* Add minio backend for backups
* Fix issue where Cloudron's with errored apps won't backup when using fs backend
* Fix DNS check issue where PTR records was read from hosts file
[0.120.1]
* Fix managed Cloudron backup cleanup
[0.130.0]
* Use Cloudron DNS server only for containers created by Cloudron
* Make Cloudron always start even if DNS credentials are invalid
* Show warning if DNS configuration is not valid
* Drop the '.enc' extension for non-encrypted backups
* Do not encrypt backups when the backup key is empty
* Do a multipart S3 download for slow internet connections
* Support naked domains as external location
[0.130.1]
* Fix app configure dialog regression
[0.130.2]
* Fix app configure dialog regression and dns setup screen
[0.130.3]
* Show error message if setup fails due to reserved username
* (security) Do not print password in the logs in the configure route
* Fix restore of unencrypted backups
* Fix bug where FS backups have incorrect extension for unencrypted backups
[0.140.0]
* HTTP2 support
* Condense the dns checks in the settings view
* Document new app store submission guidelines
[0.150.0]
* Disable dnsmasq on OVH
* Scale redis memory based on the app's memory limit
* (security) Do not print the ssl cert in debug logs
* Add noop storage backend to temporarily disable backups
* Replace native-dns module with dig to prevent spurious crashes
* Cleanup unfinished and errored backups
* Set a timelimit of 4 hours for backup to finish
[0.160.0]
* Fix disk graphs when using device mapper
* Prevent email view from flickering
* Prepare for 1.0
[1.0.0]
* Make selfhosting great again
[1.0.1]
* Notification improvements
[1.0.2]
* Notification improvements
[1.1.0]
* Add support for email catch-all
* Support Cloudrons on subdomains
[1.1.1]
* Notification improvements
[1.1.2]
* Notification improvements
[1.1.3]
* Notification improvements
[1.2.0]
* Relay emails optionally via external SMTP server email (mailgun, sendgrid etc)
* (experimental) Preserver the docker storage driver across updates
* Reduce mysql password length to 48
[1.2.1]
* Set max ttl of unbound to 5 minutes
* Fix issue where mail container does not cleanup LDAP connections properly
* Update node to 6.11.1
[1.3.0]
* Add option to configure robots.txt for each app from the web interface
* Make sure zoneName is not lost across updates
* Save manually triggered app backups under a datetime prefix
* Optionally disable FROM validation check in the mail container. This will allow apps to send emails with arbitrary FROM addresses
* Set X-Forwarded-Port in the reverse proxy. This fixes a problem with plugins of certain apps (like Jetpack)
* Send a weekly activity digest about pending and applied Cloudron and app updates
[1.4.0]
* (mail) Update Haraka to 2.8.14. Contains many stability fixes
* Exoscale SOS can now be used for backup storage
* Fix cron pattern that made Cloudron erroneously send out weekly digest mails every hour on wednesday
* Add Cloudflare DNS backend (thanks @abhishek)
* Ensure Cloudron is only be installed on EXT4 root file system (required by Docker)
* Mark app package major releases as blocking and require approval by Cloudron admin
[1.4.1]
* Do not display backup region when using minio and exoscale SOS
* Fix javascript error in email view
* Add html version of the digest email
* Fix issue where collectd was collecting information about devicemapper mounts
[1.5.0]
* Update node to 6.11.2
* Add a new view to display platform and app logs
* Rework web UI to use flexbox
* Add motd message to warn admins that to not run 'apt upgrade'
* Switch default storage backend for new Cloudrons to overlay2
* Add a custom graphite plugin to collect disk usage statistics
* Rotate logs of all apps automatically
[1.6.0]
* Allow apps to have 'network' capability (thanks @mehdi)
* Fix crash in collectd disk usage collection script
* Fix layout issues in update and oauth views
* Use maxsize rule instead of size in lograte configs
* Make it possible to skip backups per-app
* Hide restore button for noop backend
* Add popups and warnings for noop backend
* Add webterminal to shell into apps from the admin UI
* Update Haraka for a few crash fixes
[1.6.1]
* Patch release for 1.6.0 to fix regressions
* Allow apps to have 'network' capability (thanks @mehdi)
* Fix crash in collectd disk usage collection script
* Fix layout issues in update and oauth views
* Use maxsize rule instead of size in lograte configs
* Make it possible to skip backups per-app
* Hide restore button for noop backend
* Add popups and warnings for noop backend
* Add webterminal to shell into apps from the admin UI
* Update Haraka for a few crash fixes
[1.6.2]
* Allow apps to have 'network' capability (thanks @mehdi)
* Fix crash in collectd disk usage collection script
* Fix layout issues in update and oauth views
* Use maxsize rule instead of size in lograte configs
* Make it possible to skip backups per-app
* Hide restore button for noop backend
* Add popups and warnings for noop backend
* Add webterminal to shell into apps from the admin UI
* Update Haraka for a few crash fixes
[1.6.3]
* Fixes selection issue while clicking on empty flexbox space
* Indicate directories can be downloaded in the web terminal
* Do not show app update indicator for normal users
* Display email notice when using Cloudflare DNS
* Set MX records correctly when using Cloudflare DNS
* Fix bug where webterminal can incorrectly appear in main view
* Do not crash if DNS credentials are invalid
+34 -660
View File
@@ -1,661 +1,35 @@
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
The Cloudron Subscription license
Copyright (c) 2021 Cloudron UG
With regard to the Cloudron Software:
This software and associated documentation files (the "Software") may only be
used in production, if you (and any entity that you represent) have agreed to,
and are in compliance with, the Cloudron Subscription Terms of Service, available
at https://cloudron.io/legal/terms.html (the “Subscription Terms”), or other
agreement governing the use of the Software, as agreed by you and Cloudron,
and otherwise have a valid Cloudron Subscription. Subject to the foregoing sentence,
you are free to modify this Software and publish patches to the Software. You agree
that Subscription and/or its licensors (as applicable) retain all right, title and
interest in and to all such modifications and/or patches, and all such modifications
and/or patches may only be used, copied, modified, displayed, distributed, or otherwise
exploited with a valid Cloudron subscription. Notwithstanding the foregoing, you may copy
and modify the Software for development and testing purposes, without requiring a
subscription. You agree that Cloudron and/or its licensors (as applicable) retain
all right, title and interest in and to all such modifications. You are not
granted any other rights beyond what is expressly stated herein. Subject to the
foregoing, it is forbidden to copy, merge, publish, distribute, sublicense,
and/or sell the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
For all third party components incorporated into the Cloudron Software, those
components are licensed under the original license provided by the owner of the
applicable component.
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU Affero General Public License is a free, copyleft license for
software and other kinds of works, specifically designed to ensure
cooperation with the community in the case of network server software.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
our General Public Licenses are intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
Developers that use our General Public Licenses protect your rights
with two steps: (1) assert copyright on the software, and (2) offer
you this License which gives you legal permission to copy, distribute
and/or modify the software.
A secondary benefit of defending all users' freedom is that
improvements made in alternate versions of the program, if they
receive widespread use, become available for other developers to
incorporate. Many developers of free software are heartened and
encouraged by the resulting cooperation. However, in the case of
software used on network servers, this result may fail to come about.
The GNU General Public License permits making a modified version and
letting the public access it on a server without ever releasing its
source code to the public.
The GNU Affero General Public License is designed specifically to
ensure that, in such cases, the modified source code becomes available
to the community. It requires the operator of a network server to
provide the source code of the modified version running there to the
users of that server. Therefore, public use of a modified version, on
a publicly accessible server, gives the public access to the source
code of the modified version.
An older license, called the Affero General Public License and
published by Affero, was designed to accomplish similar goals. This is
a different license, not a version of the Affero GPL, but Affero has
released a new version of the Affero GPL which permits relicensing under
this license.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU Affero General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Remote Network Interaction; Use with the GNU General Public License.
Notwithstanding any other provision of this License, if you modify the
Program, your modified version must prominently offer all users
interacting with it remotely through a computer network (if your version
supports such interaction) an opportunity to receive the Corresponding
Source of your version by providing access to the Corresponding Source
from a network server at no charge, through some standard or customary
means of facilitating copying of software. This Corresponding Source
shall include the Corresponding Source for any work covered by version 3
of the GNU General Public License that is incorporated pursuant to the
following paragraph.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the work with which it is combined will remain governed by version
3 of the GNU General Public License.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU Affero General Public License from time to time. Such new versions
will be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU Affero General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU Affero General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU Affero General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
box
Copyright (C) 2016 Cloudron UG
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If your software can interact with users remotely through a computer
network, you should also make sure that it provides a way for users to
get its source. For example, if your program is a web application, its
interface could display a "Source" link that leads users to an archive
of the code. There are many ways you could offer source, and different
solutions will be better for different programs; see section 13 for the
specific requirements.
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL, see
<http://www.gnu.org/licenses/>.
+12 -75
View File
@@ -1,83 +1,20 @@
# Cloudron
# Cloudron Dashboard
[Cloudron](https://cloudron.io) is the best way to run apps on your server.
This is the front end code of Cloudron. The backend code is [here](https://git.cloudron.io/cloudron/box).
Web applications like email, contacts, blog, chat are the backbone of the modern
internet. Yet, we live in a world where hosting these essential applications is
a complex task.
## Developing
We are building the ultimate platform for self-hosting web apps. The Cloudron allows
anyone to effortlessly host web applications on their server on their own terms.
* `npm install`
* `gulp develop --api-origin=https://my.example.com`
Support us on
[![Flattr Cloudron](https://button.flattr.com/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=cloudron&url=https://cloudron.io&title=Cloudron&tags=opensource&category=software)
or [pay us a coffee](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8982CKNM46D8U)
## License
## Features
Please note that the Cloudron code is under a source-available license. This is not the same as an
open source license but ensures the code is available for introspection (and hacking!).
* Single click install for apps. Check out the [App Store](https://cloudron.io/appstore.html).
## Contributions
* Per-app encrypted backups and restores.
* App updates delivered via the App Store.
* Secure - Cloudron manages the firewall. All apps are secured with HTTPS. Certificates are
installed and renewed automatically.
* Centralized User & Group management. Control who can access which app.
* Single Sign On. Use same credentials across all apps.
* Automatic updates for the Cloudron platform.
* Trivially migrate to another server keeping your apps and data (for example, switch your
infrastructure provider or move to a bigger server).
* Comprehensive [REST API](https://cloudron.io/references/api.html).
* [CLI](https://git.cloudron.io/cloudron/cloudron-cli) to configure apps.
* Alerts, audit logs, graphs, dns management ... and much more
## Demo
Try our demo at https://my-demo.cloudron.me (username: cloudron password: cloudron).
## Installing
You can install the Cloudron platform on your own server or get a managed server
from cloudron.io. In either case, the Cloudron platform will keep your server and
apps up-to-date and secure.
* [Selfhosting](https://cloudron.io/references/selfhosting.html) - [Pricing](https://cloudron.io/pricing.html)
* [Managed Hosting](https://cloudron.io/managed.html)
The wiki has instructions on how you can install and update the Cloudron and the
apps from source.
## Documentation
* [User manual](https://cloudron.io/references/usermanual.html)
* [Developer docs](https://cloudron.io/documentation.html)
* [Architecture](https://cloudron.io/references/architecture.html)
## Related repos
The [base image repo](https://git.cloudron.io/cloudron/docker-base-image) is the parent image of all
the containers in the Cloudron.
The [graphite repo](https://git.cloudron.io/cloudron/docker-graphite) contains the graphite code
that collects metrics for graphs.
The addons are located in separate repositories
* [Redis](https://git.cloudron.io/cloudron/redis-addon)
* [Postgresql](https://git.cloudron.io/cloudron/postgresql-addon)
* [MySQL](https://git.cloudron.io/cloudron/mysql-addon)
* [Mongodb](https://git.cloudron.io/cloudron/mongodb-addon)
* [Mail](https://git.cloudron.io/cloudron/mail-addon)
## Community
* [Chat](https://chat.cloudron.io/)
* [Support](mailto:support@cloudron.io)
Just to give some heads up, we are a bit restrictive in merging changes. We are a small team and
would like to keep our maintenance burden low. It might be best to discuss features first in the [forum](https://forum.cloudron.io),
to also figure out how many other people will use it to justify maintenance for a feature.
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

-193
View File
@@ -1,193 +0,0 @@
#!/bin/bash
set -eu -o pipefail
assertNotEmpty() {
: "${!1:? "$1 is not set."}"
}
readonly SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
readonly SOURCE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")"/.. && pwd)"
export JSON="${SOURCE_DIR}/node_modules/.bin/json"
INSTANCE_TYPE="t2.micro"
BLOCK_DEVICE="DeviceName=/dev/sda1,Ebs={VolumeSize=20,DeleteOnTermination=true,VolumeType=gp2}"
SSH_KEY_NAME="id_rsa_yellowtent"
revision=$(git rev-parse HEAD)
ami_name=""
server_id=""
server_ip=""
destroy_server="yes"
deploy_env="prod"
image_id=""
args=$(getopt -o "" -l "revision:,name:,no-destroy,env:,region:" -n "$0" -- "$@")
eval set -- "${args}"
while true; do
case "$1" in
--env) deploy_env="$2"; shift 2;;
--revision) revision="$2"; shift 2;;
--name) ami_name="$2"; shift 2;;
--no-destroy) destroy_server="no"; shift 2;;
--region)
case "$2" in
"us-east-1")
image_id="ami-6edd3078"
security_group="sg-a5e17fd9"
subnet_id="subnet-b8fbc0f1"
;;
"eu-central-1")
image_id="ami-5aee2235"
security_group="sg-19f5a770" # everything open on eu-central-1
subnet_id=""
;;
*)
echo "Unknown aws region $2"
exit 1
;;
esac
export AWS_DEFAULT_REGION="$2" # used by the aws cli tool
shift 2
;;
--) break;;
*) echo "Unknown option $1"; exit 1;;
esac
done
# TODO fix this
export AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY}"
export AWS_SECRET_ACCESS_KEY="${AWS_ACCESS_SECRET}"
readonly ssh_keys="${HOME}/.ssh/id_rsa_yellowtent"
readonly SSH="ssh -o IdentitiesOnly=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i ${ssh_keys}"
if [[ ! -f "${ssh_keys}" ]]; then
echo "caas ssh key is missing at ${ssh_keys} (pick it up from secrets repo)"
exit 1
fi
if [[ -z "${image_id}" ]]; then
echo "--region is required (us-east-1 or eu-central-1)"
exit 1
fi
function get_pretty_revision() {
local git_rev="$1"
local sha1=$(git rev-parse --short "${git_rev}" 2>/dev/null)
echo "${sha1}"
}
function wait_for_ssh() {
echo "=> Waiting for ssh connection"
while true; do
echo -n "."
if $SSH ubuntu@${server_ip} echo "hello"; then
echo ""
break
fi
sleep 5
done
}
now=$(date "+%Y-%m-%d-%H%M%S")
pretty_revision=$(get_pretty_revision "${revision}")
if [[ -z "${ami_name}" ]]; then
ami_name="box-${deploy_env}-${pretty_revision}-${now}"
fi
echo "=> Create EC2 instance"
id=$(aws ec2 run-instances --image-id "${image_id}" --instance-type "${INSTANCE_TYPE}" --security-group-ids "${security_group}" --block-device-mappings "${BLOCK_DEVICE}" --key-name "${SSH_KEY_NAME}" --subnet-id "${subnet_id}" --associate-public-ip-address \
| $JSON Instances \
| $JSON 0.InstanceId)
[[ -z "$id" ]] && exit 1
echo "Instance created ID $id"
echo "=> Waiting for instance to get a public IP"
while true; do
server_ip=$(aws ec2 describe-instances --instance-ids ${id} \
| $JSON Reservations.0.Instances \
| $JSON 0.PublicIpAddress)
if [[ ! -z "${server_ip}" ]]; then
echo ""
break
fi
echo -n "."
sleep 1
done
echo "Got public IP ${server_ip}"
wait_for_ssh
echo "=> Fetching cloudron-setup"
while true; do
if $SSH ubuntu@${server_ip} wget "https://cloudron.io/cloudron-setup" -O "cloudron-setup"; then
echo ""
break
fi
echo -n "."
sleep 5
done
echo "=> Running cloudron-setup"
$SSH ubuntu@${server_ip} sudo /bin/bash "cloudron-setup" --env "${deploy_env}" --provider "ami" --skip-reboot
wait_for_ssh
echo "=> Removing ssh key"
$SSH ubuntu@${server_ip} sudo rm /home/ubuntu/.ssh/authorized_keys /root/.ssh/authorized_keys
echo "=> Creating AMI"
image_id=$(aws ec2 create-image --instance-id "${id}" --name "${ami_name}" | $JSON ImageId)
[[ -z "$id" ]] && exit 1
echo "Creating AMI with Id ${image_id}"
echo "=> Waiting for AMI to be created"
while true; do
state=$(aws ec2 describe-images --image-ids ${image_id} \
| $JSON Images \
| $JSON 0.State)
if [[ "${state}" == "available" ]]; then
echo ""
break
fi
echo -n "."
sleep 5
done
if [[ "${destroy_server}" == "yes" ]]; then
echo "=> Deleting EC2 instance"
while true; do
state=$(aws ec2 terminate-instances --instance-id "${id}" \
| $JSON TerminatingInstances \
| $JSON 0.CurrentState.Name)
if [[ "${state}" == "shutting-down" ]]; then
echo ""
break
fi
echo -n "."
sleep 5
done
fi
echo ""
echo "Done."
echo ""
echo "New AMI is: ${image_id}"
echo ""
-179
View File
@@ -1,179 +0,0 @@
#!/bin/bash
set -eu -o pipefail
assertNotEmpty() {
: "${!1:? "$1 is not set."}"
}
readonly SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
readonly SOURCE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")"/.. && pwd)"
export JSON="${SOURCE_DIR}/node_modules/.bin/json"
revision=$(git rev-parse HEAD)
box_name=""
server_id=""
server_ip=""
destroy_server="yes"
deploy_env="dev"
# Only GNU getopt supports long options. OS X comes bundled with the BSD getopt
# brew install gnu-getopt to get the GNU getopt on OS X
[[ $(uname -s) == "Darwin" ]] && GNU_GETOPT="/usr/local/opt/gnu-getopt/bin/getopt" || GNU_GETOPT="getopt"
readonly GNU_GETOPT
args=$(${GNU_GETOPT} -o "" -l "revision:,regions:,size:,name:,no-destroy,env:" -n "$0" -- "$@")
eval set -- "${args}"
while true; do
case "$1" in
--env) deploy_env="$2"; shift 2;;
--revision) revision="$2"; shift 2;;
--name) box_name="$2"; destroy_server="no"; shift 2;;
--no-destroy) destroy_server="no"; shift 2;;
--) break;;
*) echo "Unknown option $1"; exit 1;;
esac
done
echo "Creating digitalocean image"
if [[ "${deploy_env}" == "staging" ]]; then
assertNotEmpty DIGITAL_OCEAN_TOKEN_STAGING
export DIGITAL_OCEAN_TOKEN="${DIGITAL_OCEAN_TOKEN_STAGING}"
elif [[ "${deploy_env}" == "dev" ]]; then
assertNotEmpty DIGITAL_OCEAN_TOKEN_DEV
export DIGITAL_OCEAN_TOKEN="${DIGITAL_OCEAN_TOKEN_DEV}"
elif [[ "${deploy_env}" == "prod" ]]; then
assertNotEmpty DIGITAL_OCEAN_TOKEN_PROD
export DIGITAL_OCEAN_TOKEN="${DIGITAL_OCEAN_TOKEN_PROD}"
else
echo "No such env ${deploy_env}."
exit 1
fi
vps="/bin/bash ${SCRIPT_DIR}/digitalocean.sh"
readonly ssh_keys="${HOME}/.ssh/id_rsa_caas_${deploy_env}"
readonly scp202="scp -P 202 -o ConnectTimeout=10 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i ${ssh_keys}"
readonly scp22="scp -o ConnectTimeout=10 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i ${ssh_keys}"
readonly ssh202="ssh -p 202 -o IdentitiesOnly=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i ${ssh_keys}"
readonly ssh22="ssh -o IdentitiesOnly=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i ${ssh_keys}"
if [[ ! -f "${ssh_keys}" ]]; then
echo "caas ssh key is missing at ${ssh_keys} (pick it up from secrets repo)"
exit 1
fi
function get_pretty_revision() {
local git_rev="$1"
local sha1=$(git rev-parse --short "${git_rev}" 2>/dev/null)
echo "${sha1}"
}
now=$(date "+%Y-%m-%d-%H%M%S")
pretty_revision=$(get_pretty_revision "${revision}")
if [[ -z "${box_name}" ]]; then
# if you change this, change the regexp is appstore/janitor.js
box_name="box-${deploy_env}-${pretty_revision}-${now}" # remove slashes
# create a new server if no name given
if ! caas_ssh_key_id=$($vps get_ssh_key_id "caas"); then
echo "Could not query caas ssh key"
exit 1
fi
echo "Detected caas ssh key id: ${caas_ssh_key_id}"
echo "Creating Server with name [${box_name}]"
if ! server_id=$($vps create ${caas_ssh_key_id} ${box_name}); then
echo "Failed to create server"
exit 1
fi
echo "Created server with id: ${server_id}"
# If we run scripts overenthusiastically without the wait, setup script randomly fails
echo -n "Waiting 120 seconds for server creation"
for i in $(seq 1 24); do
echo -n "."
sleep 5
done
echo ""
else
if ! server_id=$($vps get_id "${box_name}"); then
echo "Could not determine id from name"
exit 1
fi
echo "Reusing server with id: ${server_id}"
$vps power_on "${server_id}"
fi
# Query until we get an IP
while true; do
echo "Trying to get the server IP"
if server_ip=$($vps get_ip "${server_id}"); then
echo "Server IP : [${server_ip}]"
break
fi
echo "Timedout, trying again in 10 seconds"
sleep 10
done
while true; do
echo "Trying to copy init script to server"
if $scp22 "${SCRIPT_DIR}/initializeBaseUbuntuImage.sh" root@${server_ip}:.; then
break
fi
echo "Timedout, trying again in 30 seconds"
sleep 30
done
echo "Copying infra_version.js"
$scp22 "${SCRIPT_DIR}/../src/infra_version.js" root@${server_ip}:.
echo "Copying box source"
cd "${SOURCE_DIR}"
git archive --format=tar HEAD | $ssh22 "root@${server_ip}" "cat - > /tmp/box.tar.gz"
echo "Executing init script"
if ! $ssh22 "root@${server_ip}" "/bin/bash /root/initializeBaseUbuntuImage.sh caas"; then
echo "Init script failed"
exit 1
fi
echo "Shutting down server with id : ${server_id}"
$ssh22 "root@${server_ip}" "shutdown -f now" || true # shutdown sometimes terminates ssh connection immediately making this command fail
# wait 10 secs for actual shutdown
echo "Waiting for 10 seconds for server to shutdown"
sleep 30
echo "Powering off server"
if ! $vps power_off "${server_id}"; then
echo "Could not power off server"
exit 1
fi
snapshot_name="box-${deploy_env}-${pretty_revision}-${now}"
echo "Snapshotting as ${snapshot_name}"
if ! image_id=$($vps snapshot "${server_id}" "${snapshot_name}"); then
echo "Could not snapshot and get image id"
exit 1
fi
if [[ "${destroy_server}" == "yes" ]]; then
echo "Destroying server"
if ! $vps destroy "${server_id}"; then
echo "Could not destroy server"
exit 1
fi
else
echo "Skipping server destroy"
fi
echo "Transferring image ${image_id} to other regions"
$vps transfer_image_to_all_regions "${image_id}"
echo "Done."
-261
View File
@@ -1,261 +0,0 @@
#!/bin/bash
if [[ -z "${DIGITAL_OCEAN_TOKEN}" ]]; then
echo "Script requires DIGITAL_OCEAN_TOKEN env to be set"
exit 1
fi
if [[ -z "${JSON}" ]]; then
echo "Script requires JSON env to be set to path of JSON binary"
exit 1
fi
readonly CURL="curl --retry 5 -s -u ${DIGITAL_OCEAN_TOKEN}:"
function debug() {
echo "$@" >&2
}
function get_ssh_key_id() {
id=$($CURL "https://api.digitalocean.com/v2/account/keys" \
| $JSON ssh_keys \
| $JSON -c "this.name === \"$1\"" \
| $JSON 0.id)
[[ -z "$id" ]] && exit 1
echo "$id"
}
function create_droplet() {
local ssh_key_id="$1"
local box_name="$2"
local image_region="sfo1"
local ubuntu_image_slug="ubuntu-16-04-x64"
local box_size="1gb"
local data="{\"name\":\"${box_name}\",\"size\":\"${box_size}\",\"region\":\"${image_region}\",\"image\":\"${ubuntu_image_slug}\",\"ssh_keys\":[ \"${ssh_key_id}\" ],\"backups\":false}"
id=$($CURL -X POST -H 'Content-Type: application/json' -d "${data}" "https://api.digitalocean.com/v2/droplets" | $JSON droplet.id)
[[ -z "$id" ]] && exit 1
echo "$id"
}
function get_droplet_ip() {
local droplet_id="$1"
ip=$($CURL "https://api.digitalocean.com/v2/droplets/${droplet_id}" | $JSON "droplet.networks.v4[0].ip_address")
[[ -z "$ip" ]] && exit 1
echo "$ip"
}
function get_droplet_id() {
local droplet_name="$1"
id=$($CURL "https://api.digitalocean.com/v2/droplets?per_page=200" | $JSON "droplets" | $JSON -c "this.name === '${droplet_name}'" | $JSON "[0].id")
[[ -z "$id" ]] && exit 1
echo "$id"
}
function power_off_droplet() {
local droplet_id="$1"
local data='{"type":"power_off"}'
local response=$($CURL -X POST -H 'Content-Type: application/json' -d "${data}" "https://api.digitalocean.com/v2/droplets/${droplet_id}/actions")
local event_id=`echo "${response}" | $JSON action.id`
if [[ -z "${event_id}" ]]; then
debug "Got no event id, assuming already powered off."
debug "Response: ${response}"
return
fi
debug "Powered off droplet. Event id: ${event_id}"
debug -n "Waiting for droplet to power off"
while true; do
local event_status=`$CURL "https://api.digitalocean.com/v2/droplets/${droplet_id}/actions/${event_id}" | $JSON action.status`
if [[ "${event_status}" == "completed" ]]; then
break
fi
debug -n "."
sleep 10
done
debug ""
}
function power_on_droplet() {
local droplet_id="$1"
local data='{"type":"power_on"}'
local event_id=`$CURL -X POST -H 'Content-Type: application/json' -d "${data}" "https://api.digitalocean.com/v2/droplets/${droplet_id}/actions" | $JSON action.id`
debug "Powered on droplet. Event id: ${event_id}"
if [[ -z "${event_id}" ]]; then
debug "Got no event id, assuming already powered on"
return
fi
debug -n "Waiting for droplet to power on"
while true; do
local event_status=`$CURL "https://api.digitalocean.com/v2/droplets/${droplet_id}/actions/${event_id}" | $JSON action.status`
if [[ "${event_status}" == "completed" ]]; then
break
fi
debug -n "."
sleep 10
done
debug ""
}
function get_image_id() {
local snapshot_name="$1"
local image_id=""
if ! response=$($CURL "https://api.digitalocean.com/v2/images?per_page=200"); then
echo "Failed to get image listing. ${response}"
return 1
fi
if ! image_id=$(echo "$response" \
| $JSON images \
| $JSON -c "this.name === \"${snapshot_name}\"" 0.id); then
echo "Failed to parse curl response: ${response}"
return 1
fi
if [[ -z "${image_id}" ]]; then
echo "Failed to get image id of ${snapshot_name}. reponse: ${response}"
return 1
fi
echo "${image_id}"
}
function snapshot_droplet() {
local droplet_id="$1"
local snapshot_name="$2"
local data="{\"type\":\"snapshot\",\"name\":\"${snapshot_name}\"}"
local event_id=`$CURL -X POST -H 'Content-Type: application/json' -d "${data}" "https://api.digitalocean.com/v2/droplets/${droplet_id}/actions" | $JSON action.id`
debug "Droplet snapshotted as ${snapshot_name}. Event id: ${event_id}"
debug -n "Waiting for snapshot to complete"
while true; do
if ! response=$($CURL "https://api.digitalocean.com/v2/droplets/${droplet_id}/actions/${event_id}"); then
echo "Could not get action status. ${response}"
continue
fi
if ! event_status=$(echo "${response}" | $JSON action.status); then
echo "Could not parse action.status from response. ${response}"
continue
fi
if [[ "${event_status}" == "completed" ]]; then
break
fi
debug -n "."
sleep 10
done
debug "! done"
if ! image_id=$(get_image_id "${snapshot_name}"); then
return 1
fi
echo "${image_id}"
}
function destroy_droplet() {
local droplet_id="$1"
# TODO: check for 204 status
$CURL -X DELETE "https://api.digitalocean.com/v2/droplets/${droplet_id}"
debug "Droplet destroyed"
debug ""
}
function transfer_image() {
local image_id="$1"
local region_slug="$2"
local data="{\"type\":\"transfer\",\"region\":\"${region_slug}\"}"
local event_id=`$CURL -X POST -H 'Content-Type: application/json' -d "${data}" "https://api.digitalocean.com/v2/images/${image_id}/actions" | $JSON action.id`
echo "${event_id}"
}
function wait_for_image_event() {
local image_id="$1"
local event_id="$2"
debug -n "Waiting for ${event_id}"
while true; do
local event_status=`$CURL "https://api.digitalocean.com/v2/images/${image_id}/actions/${event_id}" | $JSON action.status`
if [[ "${event_status}" == "completed" ]]; then
break
fi
debug -n "."
sleep 10
done
debug ""
}
function transfer_image_to_all_regions() {
local image_id="$1"
xfer_events=()
image_regions=(ams2) ## sfo1 is where the image is created
for image_region in ${image_regions[@]}; do
xfer_event=$(transfer_image ${image_id} ${image_region})
echo "Image transfer to ${image_region} initiated. Event id: ${xfer_event}"
xfer_events+=("${xfer_event}")
sleep 1
done
echo "Image transfer initiated, but they will take some time to get transferred."
for xfer_event in ${xfer_events[@]}; do
$vps wait_for_image_event "${image_id}" "${xfer_event}"
done
}
if [[ $# -lt 1 ]]; then
debug "<command> <params...>"
exit 1
fi
case $1 in
get_ssh_key_id)
get_ssh_key_id "${@:2}"
;;
create)
create_droplet "${@:2}"
;;
get_id)
get_droplet_id "${@:2}"
;;
get_ip)
get_droplet_ip "${@:2}"
;;
power_on)
power_on_droplet "${@:2}"
;;
power_off)
power_off_droplet "${@:2}"
;;
snapshot)
snapshot_droplet "${@:2}"
;;
destroy)
destroy_droplet "${@:2}"
;;
transfer_image_to_all_regions)
transfer_image_to_all_regions "${@:2}"
;;
*)
echo "Unknown command $1"
exit 1
esac
-107
View File
@@ -1,107 +0,0 @@
#!/bin/bash
set -euv -o pipefail
readonly SOURCE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
readonly arg_provider="${1:-generic}"
readonly arg_infraversionpath="${SOURCE_DIR}/${2:-}"
function die {
echo $1
exit 1
}
export DEBIAN_FRONTEND=noninteractive
apt-get -o Dpkg::Options::="--force-confdef" update -y
apt-get -o Dpkg::Options::="--force-confdef" dist-upgrade -y
echo "==> Installing required packages"
debconf-set-selections <<< 'mysql-server mysql-server/root_password password password'
debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password password'
# this enables automatic security upgrades (https://help.ubuntu.com/community/AutomaticSecurityUpdates)
apt-get -y install \
acl \
awscli \
build-essential \
cron \
curl \
dmsetup \
iptables \
logrotate \
mysql-server-5.7 \
nginx-full \
openssh-server \
pwgen \
rcconf \
swaks \
unattended-upgrades \
unbound \
xfsprogs
# this ensures that unattended upgades are enabled, if it was disabled during ubuntu install time (see #346)
# debconf-set-selection of unattended-upgrades/enable_auto_updates + dpkg-reconfigure does not work
cp /usr/share/unattended-upgrades/20auto-upgrades /etc/apt/apt.conf.d/20auto-upgrades
echo "==> Installing node.js"
mkdir -p /usr/local/node-6.11.2
curl -sL https://nodejs.org/dist/v6.11.2/node-v6.11.2-linux-x64.tar.gz | tar zxvf - --strip-components=1 -C /usr/local/node-6.11.2
ln -sf /usr/local/node-6.11.2/bin/node /usr/bin/node
ln -sf /usr/local/node-6.11.2/bin/npm /usr/bin/npm
apt-get install -y python # Install python which is required for npm rebuild
[[ "$(python --version 2>&1)" == "Python 2.7."* ]] || die "Expecting python version to be 2.7.x"
# https://docs.docker.com/engine/installation/linux/ubuntulinux/
echo "==> Installing Docker"
# create systemd drop-in file
mkdir -p /etc/systemd/system/docker.service.d
echo -e "[Service]\nExecStart=\nExecStart=/usr/bin/dockerd -H fd:// --log-driver=journald --exec-opt native.cgroupdriver=cgroupfs --storage-driver=overlay2" > /etc/systemd/system/docker.service.d/cloudron.conf
curl -sL https://download.docker.com/linux/ubuntu/dists/xenial/pool/stable/amd64/docker-ce_17.03.1~ce-0~ubuntu-xenial_amd64.deb -o /tmp/docker.deb
# apt install with install deps (as opposed to dpkg -i)
apt install -y /tmp/docker.deb
rm /tmp/docker.deb
storage_driver=$(docker info | grep "Storage Driver" | sed 's/.*: //')
if [[ "${storage_driver}" != "overlay2" ]]; then
echo "Docker is using "${storage_driver}" instead of overlay2"
exit 1
fi
echo "==> Enable memory accounting"
apt-get -y install grub2
sed -e 's/^GRUB_CMDLINE_LINUX="\(.*\)"$/GRUB_CMDLINE_LINUX="\1 cgroup_enable=memory swapaccount=1 panic_on_oops=1 panic=5"/' -i /etc/default/grub
update-grub
echo "==> Downloading docker images"
if [ ! -f "${arg_infraversionpath}/infra_version.js" ]; then
echo "No infra_versions.js found"
exit 1
fi
images=$(node -e "var i = require('${arg_infraversionpath}/infra_version.js'); console.log(i.baseImages.join(' '), Object.keys(i.images).map(function (x) { return i.images[x].tag; }).join(' '));")
echo -e "\tPulling docker images: ${images}"
for image in ${images}; do
docker pull "${image}"
done
echo "==> Install collectd"
if ! apt-get install -y collectd collectd-utils; then
# FQDNLookup is true in default debian config. The box code has a custom collectd.conf that fixes this
echo "Failed to install collectd. Presumably because of http://mailman.verplant.org/pipermail/collectd/2015-March/006491.html"
sed -e 's/^FQDNLookup true/FQDNLookup false/' -i /etc/collectd/collectd.conf
fi
# Disable bind for good measure (on online.net, kimsufi servers these are pre-installed and conflicts with unbound)
systemctl stop bind9 || true
systemctl disable bind9 || true
# on ovh images dnsmasq seems to run by default
systemctl stop dnsmasq || true
systemctl disable dnsmasq || true
-56
View File
@@ -1,56 +0,0 @@
#!/usr/bin/env node
'use strict';
require('supererror')({ splatchError: true });
// remove timestamp from debug() based output
require('debug').formatArgs = function formatArgs(args) {
args[0] = this.namespace + ' ' + args[0];
};
var appHealthMonitor = require('./src/apphealthmonitor.js'),
async = require('async'),
config = require('./src/config.js'),
ldap = require('./src/ldap.js'),
server = require('./src/server.js');
console.log();
console.log('==========================================');
console.log(' Cloudron will use the following settings ');
console.log('==========================================');
console.log();
console.log(' Environment: ', config.CLOUDRON ? 'CLOUDRON' : 'TEST');
console.log(' Version: ', config.version());
console.log(' Admin Origin: ', config.adminOrigin());
console.log(' Appstore API server origin: ', config.apiServerOrigin());
console.log(' Appstore Web server origin: ', config.webServerOrigin());
console.log();
console.log('==========================================');
console.log();
async.series([
server.start,
ldap.start,
appHealthMonitor.start,
], function (error) {
if (error) {
console.error('Error starting server', error);
process.exit(1);
}
console.log('Cloudron is up and running');
});
var NOOP_CALLBACK = function () { };
process.on('SIGINT', function () {
server.stop(NOOP_CALLBACK);
ldap.stop(NOOP_CALLBACK);
setTimeout(process.exit.bind(process), 3000);
});
process.on('SIGTERM', function () {
server.stop(NOOP_CALLBACK);
ldap.stop(NOOP_CALLBACK);
setTimeout(process.exit.bind(process), 3000);
});
-16
View File
@@ -1,16 +0,0 @@
#!/usr/bin/env node
'use strict';
var sendFailureLogs = require('./src/logcollector').sendFailureLogs;
function main() {
if (process.argv.length !== 3) return console.error('Usage: crashnotifier.js <processName>');
var processName = process.argv[2];
console.log('Started crash notifier for', processName);
sendFailureLogs(processName, { unit: processName });
}
main();
+193 -126
View File
@@ -6,199 +6,266 @@ var argv = require('yargs').argv,
autoprefixer = require('gulp-autoprefixer'),
concat = require('gulp-concat'),
cssnano = require('gulp-cssnano'),
del = require('del'),
ejs = require('gulp-ejs'),
execSync = require('child_process').execSync,
gulp = require('gulp'),
rimraf = require('rimraf'),
sass = require('gulp-sass'),
serve = require('gulp-serve'),
sourcemaps = require('gulp-sourcemaps'),
uglify = require('gulp-uglify'),
url = require('url');
sourcemaps = require('gulp-sourcemaps');
gulp.task('3rdparty', function () {
gulp.src([
'webadmin/src/3rdparty/**/*.js',
'webadmin/src/3rdparty/**/*.map',
'webadmin/src/3rdparty/**/*.css',
'webadmin/src/3rdparty/**/*.otf',
'webadmin/src/3rdparty/**/*.eot',
'webadmin/src/3rdparty/**/*.svg',
'webadmin/src/3rdparty/**/*.gif',
'webadmin/src/3rdparty/**/*.ttf',
'webadmin/src/3rdparty/**/*.woff',
'webadmin/src/3rdparty/**/*.woff2'
])
.pipe(gulp.dest('webadmin/dist/3rdparty/'))
.pipe(gulp.dest('setup/splash/website/3rdparty'));
if (argv.help || argv.h) {
console.log('Supported arguments for "gulp develop":');
console.log(' --api-origin <cloudron api uri>');
console.log(' --revision <revision>');
console.log(' --appstore-web-origin <appstore web uri>');
console.log(' --appstore-api-origin <appstore api uri>');
gulp.src('node_modules/bootstrap-sass/assets/javascripts/bootstrap.min.js')
.pipe(gulp.dest('webadmin/dist/3rdparty/js'))
.pipe(gulp.dest('setup/splash/website/3rdparty/js'));
process.exit(1);
}
const revision = argv.revision || '';
let apiOrigin = '';
if (argv.apiOrigin) {
if (argv.apiOrigin.indexOf('https://') === 0) apiOrigin = argv.apiOrigin;
else apiOrigin = 'https://' + argv.apiOrigin;
}
var appstore = {
webOrigin: argv.appstoreWebOrigin || '',
apiOrigin: argv.appstoreApiOrigin || ''
};
console.log();
console.log('Cloudron API: %s', apiOrigin || 'default');
console.log('Building for revision: %s', revision);
console.log();
console.log('Overriding appstore origin:');
console.log(' Website: %s', appstore.webOrigin || 'no');
console.log(' Api: %s', appstore.apiOrigin || 'no');
console.log();
gulp.task('fontawesome', function () {
return gulp.src('node_modules/@fortawesome/fontawesome-free/**/*')
.pipe(gulp.dest('dist/3rdparty/fontawesome/'));
});
gulp.task('bootstrap', function () {
return gulp.src('node_modules/bootstrap-sass/assets/javascripts/bootstrap.min.js')
.pipe(gulp.dest('dist/3rdparty/js'));
});
gulp.task('monaco', function () {
return gulp.src('node_modules/monaco-editor/min/**/*')
.pipe(gulp.dest('dist/3rdparty/'));
});
gulp.task('xterm-core', function () {
return gulp.src('node_modules/xterm/**/*')
.pipe(gulp.dest('dist/3rdparty/xterm'));
});
gulp.task('xterm-addon-attach', function () {
return gulp.src('node_modules/xterm-addon-attach/**/*')
.pipe(gulp.dest('dist/3rdparty/xterm-addon-attach'));
});
gulp.task('xterm-addon-fit', function () {
return gulp.src('node_modules/xterm-addon-fit/**/*')
.pipe(gulp.dest('dist/3rdparty/xterm-addon-fit'));
});
gulp.task('xterm', gulp.series(['xterm-core', 'xterm-addon-attach', 'xterm-addon-fit']));
gulp.task('3rdparty-copy', function () {
return gulp.src([
'src/3rdparty/**/*.js',
'src/3rdparty/**/*.map',
'src/3rdparty/**/*.css',
'src/3rdparty/**/*.otf',
'src/3rdparty/**/*.eot',
'src/3rdparty/**/*.svg',
'src/3rdparty/**/*.gif',
'src/3rdparty/**/*.ttf'
])
.pipe(gulp.dest('dist/3rdparty/'));
});
gulp.task('3rdparty', gulp.series(['3rdparty-copy', 'monaco', 'xterm', 'bootstrap', 'fontawesome']));
// --------------
// JavaScript
// --------------
if (argv.help || argv.h) {
console.log('Supported arguments for "gulp develop":');
console.log(' --client-id <clientId>');
console.log(' --client-secret <clientSecret>');
console.log(' --api-origin <cloudron api uri>');
process.exit(1);
}
gulp.task('js', ['js-index', 'js-setup', 'js-setupdns', 'js-update'], function () {});
var oauth = {
clientId: argv.clientId || 'cid-webadmin',
clientSecret: argv.clientSecret || 'unused',
apiOrigin: argv.apiOrigin || '',
apiOriginHostname: argv.apiOrigin ? url.parse(argv.apiOrigin).hostname : ''
};
console.log();
console.log('Using OAuth credentials:');
console.log(' ClientId: %s', oauth.clientId);
console.log(' ClientSecret: %s', oauth.clientSecret);
console.log(' Cloudron API: %s', oauth.apiOrigin || 'default');
console.log(' Cloudron Host: %s', oauth.apiOriginHostname);
console.log();
gulp.task('js-index', function () {
// needs special treatment for error handling
var uglifyer = uglify();
uglifyer.on('error', function (error) {
console.error(error);
});
gulp.src([
'webadmin/src/js/index.js',
'webadmin/src/js/client.js',
'webadmin/src/js/appstore.js',
'webadmin/src/js/main.js',
'webadmin/src/views/*.js'
])
.pipe(ejs({ oauth: oauth }, { ext: '.js' }))
return gulp.src([
'src/js/index.js',
'src/js/client.js',
'src/js/main.js',
'src/views/*.js'
])
.pipe(ejs({ apiOrigin: apiOrigin, revision: revision, appstore: appstore }, {}, { ext: '.js' }))
.pipe(sourcemaps.init())
.pipe(concat('index.js', { newLine: ';' }))
.pipe(uglifyer)
.pipe(sourcemaps.write())
.pipe(gulp.dest('webadmin/dist/js'));
.pipe(gulp.dest('dist/js'));
});
gulp.task('js-logs', function () {
return gulp.src(['src/js/logs.js', 'src/js/client.js'])
.pipe(ejs({ apiOrigin: apiOrigin, revision: revision, appstore: appstore }, {}, { ext: '.js' }))
.pipe(sourcemaps.init())
.pipe(concat('logs.js', { newLine: ';' }))
.pipe(sourcemaps.write())
.pipe(gulp.dest('dist/js'));
});
gulp.task('js-filemanager', function () {
return gulp.src(['src/js/filemanager.js', 'src/js/client.js'])
.pipe(ejs({ apiOrigin: apiOrigin, revision: revision, appstore: appstore }, {}, { ext: '.js' }))
.pipe(sourcemaps.init())
.pipe(concat('filemanager.js', { newLine: ';' }))
.pipe(sourcemaps.write())
.pipe(gulp.dest('dist/js'));
});
gulp.task('js-terminal', function () {
return gulp.src(['src/js/terminal.js', 'src/js/client.js'])
.pipe(ejs({ apiOrigin: apiOrigin, revision: revision, appstore: appstore }, {}, { ext: '.js' }))
.pipe(sourcemaps.init())
.pipe(concat('terminal.js', { newLine: ';' }))
.pipe(sourcemaps.write())
.pipe(gulp.dest('dist/js'));
});
gulp.task('js-login', function () {
return gulp.src(['src/js/login.js'])
.pipe(ejs({ apiOrigin: apiOrigin, revision: revision, appstore: appstore }, {}, { ext: '.js' }))
.pipe(sourcemaps.init())
.pipe(concat('login.js', { newLine: ';' }))
.pipe(sourcemaps.write())
.pipe(gulp.dest('dist/js'));
});
gulp.task('js-setupaccount', function () {
return gulp.src(['src/js/setupaccount.js'])
.pipe(ejs({ apiOrigin: apiOrigin, revision: revision, appstore: appstore }, {}, { ext: '.js' }))
.pipe(sourcemaps.init())
.pipe(concat('setupaccount.js', { newLine: ';' }))
.pipe(sourcemaps.write())
.pipe(gulp.dest('dist/js'));
});
gulp.task('js-setup', function () {
// needs special treatment for error handling
var uglifyer = uglify();
uglifyer.on('error', function (error) {
console.error(error);
});
gulp.src(['webadmin/src/js/setup.js', 'webadmin/src/js/client.js'])
.pipe(ejs({ oauth: oauth }, { ext: '.js' }))
return gulp.src(['src/js/setup.js', 'src/js/client.js'])
.pipe(ejs({ apiOrigin: apiOrigin, revision: revision, appstore: appstore }, {}, { ext: '.js' }))
.pipe(sourcemaps.init())
.pipe(concat('setup.js', { newLine: ';' }))
.pipe(uglifyer)
.pipe(sourcemaps.write())
.pipe(gulp.dest('webadmin/dist/js'));
.pipe(gulp.dest('dist/js'));
});
gulp.task('js-setupdns', function () {
// needs special treatment for error handling
var uglifyer = uglify();
uglifyer.on('error', function (error) {
console.error(error);
});
gulp.src(['webadmin/src/js/setupdns.js', 'webadmin/src/js/client.js'])
.pipe(ejs({ oauth: oauth }, { ext: '.js' }))
return gulp.src(['src/js/setupdns.js', 'src/js/client.js'])
.pipe(ejs({ apiOrigin: apiOrigin, revision: revision, appstore: appstore }, {}, { ext: '.js' }))
.pipe(sourcemaps.init())
.pipe(concat('setupdns.js', { newLine: ';' }))
.pipe(uglifyer)
.pipe(sourcemaps.write())
.pipe(gulp.dest('webadmin/dist/js'));
.pipe(gulp.dest('dist/js'));
});
gulp.task('js-update', function () {
// needs special treatment for error handling
var uglifyer = uglify();
uglifyer.on('error', function (error) {
console.error(error);
});
gulp.src(['webadmin/src/js/update.js'])
gulp.task('js-restore', function () {
return gulp.src(['src/js/restore.js', 'src/js/client.js'])
.pipe(ejs({ apiOrigin: apiOrigin, revision: revision, appstore: appstore }, {}, { ext: '.js' }))
.pipe(sourcemaps.init())
.pipe(uglifyer)
.pipe(concat('restore.js', { newLine: ';' }))
.pipe(sourcemaps.write())
.pipe(gulp.dest('webadmin/dist/js'))
.pipe(gulp.dest('setup/splash/website/js'));
.pipe(gulp.dest('dist/js'));
});
gulp.task('js', gulp.series([ 'js-index', 'js-logs', 'js-filemanager', 'js-terminal', 'js-login', 'js-setupaccount', 'js-setup', 'js-setupdns', 'js-restore' ]));
// --------------
// HTML
// --------------
gulp.task('html', ['html-views', 'html-update', 'html-templates'], function () {
return gulp.src('webadmin/src/*.html').pipe(ejs({ apiOriginHostname: oauth.apiOriginHostname }, { ext: '.html' })).pipe(gulp.dest('webadmin/dist'));
});
gulp.task('html-update', function () {
return gulp.src(['webadmin/src/update.html']).pipe(gulp.dest('setup/splash/website'));
});
gulp.task('html-views', function () {
return gulp.src('webadmin/src/views/**/*.html').pipe(gulp.dest('webadmin/dist/views'));
return gulp.src('src/views/**/*.html').pipe(gulp.dest('dist/views'));
});
gulp.task('html-templates', function () {
return gulp.src('webadmin/src/templates/**/*.html').pipe(gulp.dest('webadmin/dist/templates'));
return gulp.src('src/templates/**/*').pipe(gulp.dest('dist/templates'));
});
gulp.task('html-raw', function () {
return gulp.src('src/*.html').pipe(ejs({ apiOrigin: apiOrigin, revision: revision }, {}, { ext: '.html' })).pipe(gulp.dest('dist'));
});
gulp.task('html', gulp.series(['html-views', 'html-templates', 'html-raw']));
// --------------
// CSS
// --------------
gulp.task('css', function () {
return gulp.src('webadmin/src/*.scss')
return gulp.src('src/*.scss')
.pipe(sourcemaps.init())
.pipe(sass({ includePaths: ['node_modules/bootstrap-sass/assets/stylesheets/'] }).on('error', sass.logError))
.pipe(autoprefixer())
.pipe(cssnano())
.pipe(sourcemaps.write())
.pipe(gulp.dest('webadmin/dist'))
.pipe(gulp.dest('setup/splash/website'));
.pipe(gulp.dest('dist'));
});
gulp.task('images', function () {
return gulp.src('webadmin/src/img/**')
.pipe(gulp.dest('webadmin/dist/img'));
return gulp.src('src/img/**')
.pipe(gulp.dest('dist/img'));
});
gulp.task('translation', function () {
return gulp.src('src/translation/**')
.pipe(gulp.dest('dist/translation'));
});
gulp.task('timezones', function (done) {
execSync('./scripts/createTimezones.js ./dist/js/timezones.js');
done();
});
// --------------
// Utilities
// --------------
gulp.task('watch', ['default'], function () {
gulp.watch(['webadmin/src/*.scss'], ['css']);
gulp.watch(['webadmin/src/img/*'], ['images']);
gulp.watch(['webadmin/src/**/*.html'], ['html']);
gulp.watch(['webadmin/src/views/*.html'], ['html-views']);
gulp.watch(['webadmin/src/templates/*.html'], ['html-templates']);
gulp.watch(['webadmin/src/js/update.js'], ['js-update']);
gulp.watch(['webadmin/src/js/setup.js', 'webadmin/src/js/client.js'], ['js-setup']);
gulp.watch(['webadmin/src/js/setupdns.js', 'webadmin/src/js/client.js'], ['js-setupdns']);
gulp.watch(['webadmin/src/js/index.js', 'webadmin/src/js/client.js', 'webadmin/src/js/appstore.js', 'webadmin/src/js/main.js', 'webadmin/src/views/*.js'], ['js-index']);
gulp.watch(['webadmin/src/3rdparty/**/*'], ['3rdparty']);
gulp.task('clean', function (done) {
rimraf.sync('dist');
done();
});
gulp.task('clean', function () {
del.sync(['webadmin/dist', 'setup/splash/website']);
gulp.task('default', gulp.series(['clean', 'html', 'js', 'timezones', '3rdparty', 'translation', 'images', 'css']));
gulp.task('watch', function (done) {
gulp.watch(['src/*.scss'], gulp.series(['css']));
gulp.watch(['src/img/*'], gulp.series(['images']));
gulp.watch(['src/translation/*'], gulp.series(['translation']));
gulp.watch(['src/**/*.html'], gulp.series(['html']));
gulp.watch(['src/views/*.html'], gulp.series(['html-views']));
gulp.watch(['src/templates/*.html'], gulp.series(['html-templates']));
gulp.watch(['scripts/createTimezones.js'], gulp.series(['timezones']));
gulp.watch(['src/js/setup.js', 'src/js/client.js'], gulp.series(['js-setup']));
gulp.watch(['src/js/setupdns.js', 'src/js/client.js'], gulp.series(['js-setupdns']));
gulp.watch(['src/js/restore.js', 'src/js/client.js'], gulp.series(['js-restore']));
gulp.watch(['src/js/logs.js', 'src/js/client.js'], gulp.series(['js-logs']));
gulp.watch(['src/js/filemanager.js', 'src/js/client.js'], gulp.series(['js-filemanager']));
gulp.watch(['src/js/terminal.js', 'src/js/client.js'], gulp.series(['js-terminal']));
gulp.watch(['src/js/login.js'], gulp.series(['js-login']));
gulp.watch(['src/js/setupaccount.js'], gulp.series(['js-setupaccount']));
gulp.watch(['src/js/index.js', 'src/js/client.js', 'src/js/main.js', 'src/views/*.js'], gulp.series(['js-index']));
gulp.watch(['src/3rdparty/**/*'], gulp.series(['3rdparty']));
done();
});
gulp.task('default', ['clean', 'html', 'js', '3rdparty', 'images', 'css'], function () {});
gulp.task('serve', serve({ root: 'dist', port: 4000 }));
gulp.task('develop', gulp.series(['default', 'watch', 'serve']));
gulp.task('develop', ['watch'], serve({ root: 'webadmin/dist', port: 4000 }));
-32
View File
@@ -1,32 +0,0 @@
#!/usr/bin/env node
'use strict';
var tar = require('tar-fs'),
fs = require('fs'),
path = require('path'),
zlib = require('zlib');
if (process.argv.length < 4) {
console.error('Usage: tarjs <cwd> <dir>');
process.exit(1);
}
var dir = process.argv[3];
var cwd = process.argv[2];
console.error('Packing directory "'+ dir +'" from within "' + cwd + '" and stream to stdout');
process.chdir(cwd);
var stat = fs.statSync(dir);
if (!stat.isDirectory()) throw(dir + ' is not a directory');
var gzipStream = zlib.createGzip({});
tar.pack(path.resolve(dir), {
ignore: function (name) {
if (name === '.') return true;
return false;
}
}).pipe(gzipStream).pipe(process.stdout);
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

-14
View File
@@ -1,14 +0,0 @@
'use strict';
var url = require('url');
exports.up = function(db, callback) {
var dbName = url.parse(process.env.DATABASE_URL).path.substr(1); // remove slash
// by default, mysql collates case insensitively. 'utf8_general_cs' is not available
db.runSql('ALTER DATABASE ' + dbName + ' DEFAULT CHARACTER SET=utf8 DEFAULT COLLATE utf8_bin', callback);
};
exports.down = function(db, callback) {
callback();
};
-18
View File
@@ -1,18 +0,0 @@
'use strict';
var fs = require('fs'),
async = require('async'),
path = require('path');
exports.up = function(db, callback) {
var schema = fs.readFileSync(path.join(__dirname, 'initial-schema.sql')).toString('utf8');
var statements = schema.split(';');
async.eachSeries(statements, function (statement, callback) {
if (statement.trim().length === 0) return callback(null);
db.runSql(statement, callback);
}, callback);
};
exports.down = function(db, callback) {
db.runSql('DROP TABLE users, tokens, clients, apps, appPortBindings, authcodes, settings', callback);
};
@@ -1,15 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.runSql('ALTER TABLE users ADD COLUMN resetToken VARCHAR(128) DEFAULT ""', function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE users DROP COLUMN resetToken', function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,19 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.runSql('DELETE FROM tokens', [], function (error) {
if (error) console.error(error);
db.runSql('ALTER TABLE tokens MODIFY expires BIGINT', [], function (error) {
if (error) console.error(error);
callback(error);
});
});
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE tokens MODIFY expires VARCHAR(512)', [], function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,15 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.runSql('ALTER TABLE authcodes ADD COLUMN expiresAt BIGINT NOT NULL', function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE authcodes DROP COLUMN expiresAt', function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,15 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.runSql('ALTER TABLE appPortBindings ADD COLUMN environmentVariable VARCHAR(128) NOT NULL', function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE appPortBindings DROP COLUMN environmentVariable', function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,15 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.runSql('ALTER TABLE appPortBindings DROP COLUMN containerPort', function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE appPortBindings ADD COLUMN containerPort VARCHAR(5) NOT NULL', function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,19 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.runSql('DELETE FROM tokens', [], function (error) {
if (error) console.error(error);
db.runSql('ALTER TABLE tokens CHANGE userId identifier VARCHAR(128) NOT NULL', [], function (error) {
if (error) console.error(error);
callback(error);
});
});
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE tokens CHANGE identifier userId VARCHAR(128) NOT NULL', [], function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,15 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.runSql('ALTER TABLE apps DROP COLUMN version', function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE apps ADD COLUMN version VARCHAR(32)', function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,15 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.runSql('ALTER TABLE apps DROP COLUMN healthy, ADD COLUMN health VARCHAR(128)', [], function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE apps DROP COLUMN health, ADD COLUMN healthy INTEGER', [], function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,15 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.runSql('ALTER TABLE apps ADD COLUMN lastBackupId VARCHAR(128)', function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE apps DROP COLUMN lastBackupId', function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,15 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.runSql('ALTER TABLE apps ADD COLUMN createdAt TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP', function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE apps DROP COLUMN createdAt', function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,10 +0,0 @@
'use strict';
exports.up = function(db, callback) {
// everyday at 1am
db.runSql('INSERT settings (name, value) VALUES("autoupdate_pattern", ?)', [ '00 00 1 * * *' ], callback);
};
exports.down = function(db, callback) {
db.runSql('DELETE * FROM settings WHERE name="autoupdate_pattern"', [ ], callback);
};
@@ -1,14 +0,0 @@
'use strict';
var safe = require('safetydance');
exports.up = function(db, callback) {
var tz = safe.fs.readFileSync('/etc/timezone', 'utf8');
tz = tz ? tz.trim() : 'America/Los_Angeles';
db.runSql('INSERT settings (name, value) VALUES("time_zone", ?)', [ tz ], callback);
};
exports.down = function(db, callback) {
db.runSql('DELETE * FROM settings WHERE name="time_zone"', [ ], callback);
};
@@ -1,24 +0,0 @@
'use strict';
var async = require('async');
exports.up = function(db, callback) {
// http://stackoverflow.com/questions/386294/what-is-the-maximum-length-of-a-valid-email-address
async.series([
db.runSql.bind(db, 'ALTER TABLE users MODIFY username VARCHAR(254)'),
db.runSql.bind(db, 'ALTER TABLE users ADD CONSTRAINT users_username UNIQUE (username)'),
db.runSql.bind(db, 'ALTER TABLE users MODIFY email VARCHAR(254)'),
db.runSql.bind(db, 'ALTER TABLE users ADD CONSTRAINT users_email UNIQUE (email)'),
], callback);
};
exports.down = function(db, callback) {
async.series([
db.runSql.bind(db, 'ALTER TABLE users DROP INDEX users_username'),
db.runSql.bind(db, 'ALTER TABLE users MODIFY username VARCHAR(512)'),
db.runSql.bind(db, 'ALTER TABLE users DROP INDEX users_email'),
db.runSql.bind(db, 'ALTER TABLE users MODIFY email VARCHAR(512)'),
], callback);
};
@@ -1,17 +0,0 @@
'use strict';
var async = require('async');
exports.up = function(db, callback) {
async.series([
db.runSql.bind(db, 'ALTER TABLE users MODIFY username VARCHAR(254) NOT NULL'),
db.runSql.bind(db, 'ALTER TABLE users MODIFY email VARCHAR(254) NOT NULL'),
], callback);
};
exports.down = function(db, callback) {
async.series([
db.runSql.bind(db, 'ALTER TABLE users MODIFY username VARCHAR(254)'),
db.runSql.bind(db, 'ALTER TABLE users MODIFY email VARCHAR(254)'),
], callback);
};
@@ -1,15 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.runSql('ALTER TABLE apps ADD COLUMN lastManifestJson VARCHAR(2048)', function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE apps DROP COLUMN lastManifestJson', function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,15 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.runSql('ALTER TABLE apps CHANGE lastManifestJson lastBackupConfigJson VARCHAR(2048)', [], function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE apps CHANGE lastBackupConfigJson lastManifestJson VARCHAR(2048)', [], function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,15 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.runSql('ALTER TABLE apps ADD COLUMN oldConfigJson VARCHAR(2048)', function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE apps DROP COLUMN oldConfigJson', function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,9 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.runSql('DELETE FROM settings', [ ], callback);
};
exports.down = function(db, callback) {
callback();
};
@@ -1,15 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.runSql('ALTER TABLE apps ADD COLUMN oauthProxy BOOLEAN DEFAULT 0', function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE apps DROP COLUMN oauthProxy', function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,17 +0,0 @@
'use strict';
var async = require('async');
exports.up = function(db, callback) {
async.series([
db.runSql.bind(db, 'DELETE FROM clients'),
db.runSql.bind(db, 'ALTER TABLE clients ADD COLUMN type VARCHAR(16) NOT NULL'),
], callback);
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE clients DROP COLUMN type', function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,15 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.runSql('ALTER TABLE apps CHANGE accessRestriction accessRestrictionJson VARCHAR(2048)', [], function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE apps CHANGE accessRestrictionJson accessRestriction VARCHAR(2048)', [], function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,15 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.runSql('ALTER TABLE apps MODIFY manifestJson TEXT', [], function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE apps MODIFY manifestJson VARCHAR(2048)', [], function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,19 +0,0 @@
'use strict';
var async = require('async');
exports.up = function(db, callback) {
async.series([
db.runSql.bind(db, 'ALTER TABLE apps MODIFY accessRestrictionJson TEXT'),
db.runSql.bind(db, 'ALTER TABLE apps MODIFY lastBackupConfigJson TEXT'),
db.runSql.bind(db, 'ALTER TABLE apps MODIFY oldConfigJson TEXT')
], callback);
};
exports.down = function(db, callback) {
async.series([
db.runSql.bind(db, 'ALTER TABLE apps MODIFY accessRestrictionJson VARCHAR(2048)'),
db.runSql.bind(db, 'ALTER TABLE apps MODIFY lastBackupConfigJson VARCHAR(2048)'),
db.runSql.bind(db, 'ALTER TABLE apps MODIFY oldConfigJson VARCHAR(2048)')
], callback);
};
@@ -1,15 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.runSql('ALTER TABLE users ADD COLUMN displayName VARCHAR(512) DEFAULT ""', function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE users DROP COLUMN displayName', function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,15 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.runSql('ALTER TABLE apps ADD COLUMN memoryLimit BIGINT DEFAULT 0', function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE apps DROP COLUMN memoryLimit', function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,20 +0,0 @@
'use strict';
exports.up = function(db, callback) {
var cmd = "CREATE TABLE groups(" +
"id VARCHAR(128) NOT NULL UNIQUE," +
"name VARCHAR(128) NOT NULL UNIQUE," +
"PRIMARY KEY(id))";
db.runSql(cmd, function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('DROP TABLE groups', function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,21 +0,0 @@
'use strict';
exports.up = function(db, callback) {
var cmd = "CREATE TABLE IF NOT EXISTS groupMembers(" +
"groupId VARCHAR(128) NOT NULL," +
"userId VARCHAR(128) NOT NULL," +
"FOREIGN KEY(groupId) REFERENCES groups(id)," +
"FOREIGN KEY(userId) REFERENCES users(id));";
db.runSql(cmd, function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('DROP TABLE groupMembers', function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,29 +0,0 @@
'use strict';
var async = require('async');
var ADMIN_GROUP_ID = 'admin'; // see groups.js
exports.up = function(db, callback) {
async.series([
db.runSql.bind(db, 'START TRANSACTION;'),
db.runSql.bind(db, 'INSERT INTO groups (id, name) VALUES (?, ?)', [ ADMIN_GROUP_ID, 'admin' ]),
function migrateAdminFlag(done) {
db.all('SELECT * FROM users WHERE admin=1', function (error, results) {
if (error) return done(error);
console.dir(results);
async.eachSeries(results, function (r, next) {
db.runSql('INSERT INTO groupMembers (groupId, userId) VALUES (?, ?)', [ ADMIN_GROUP_ID, r.id ], next);
}, done);
});
},
db.runSql.bind(db, 'ALTER TABLE users DROP COLUMN admin'),
db.runSql.bind(db, 'COMMIT')
], callback);
};
exports.down = function(db, callback) {
callback();
};
@@ -1,24 +0,0 @@
'use strict';
exports.up = function(db, callback) {
var cmd = "CREATE TABLE backups(" +
"filename VARCHAR(128) NOT NULL," +
"creationTime TIMESTAMP," +
"version VARCHAR(128) NOT NULL," +
"type VARCHAR(16) NOT NULL," +
"dependsOn VARCHAR(4096)," +
"state VARCHAR(16) NOT NULL," +
"PRIMARY KEY (filename))";
db.runSql(cmd, function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('DROP TABLE backups', function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,15 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.runSql('ALTER TABLE backups ADD COLUMN configJson TEXT', function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE backups DROP COLUMN configJson', function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,15 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.runSql('ALTER TABLE backups DROP COLUMN configJson', function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE backups ADD COLUMN configJson TEXT', function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,15 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.runSql('ALTER TABLE backups CHANGE filename id VARCHAR(128)', [], function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE backups CHANGE id filename VARCHAR(128)', [], function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,15 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.runSql('ALTER TABLE users MODIFY username VARCHAR(254) UNIQUE', [], function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE users MODIFY username VARCHAR(254) NOT NULL UNIQUE', [], function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,15 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.runSql('ALTER TABLE apps ADD COLUMN altDomain VARCHAR(256)', function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE apps DROP COLUMN altDomain', function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,23 +0,0 @@
'use strict';
exports.up = function(db, callback) {
var cmd = "CREATE TABLE eventlog(" +
"id VARCHAR(128) NOT NULL," +
"source TEXT," +
"creationTime TIMESTAMP," +
"action VARCHAR(128) NOT NULL," +
"data TEXT," +
"PRIMARY KEY (id))";
db.runSql(cmd, function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('DROP TABLE eventlog', function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,15 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.runSql('ALTER TABLE users ADD COLUMN showTutorial BOOLEAN DEFAULT 0', function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE users DROP COLUMN showTutorial', function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,21 +0,0 @@
'use strict';
exports.up = function(db, callback) {
var cmd = 'CREATE TABLE mailboxes(' +
'name VARCHAR(128) NOT NULL,' +
'aliasTarget VARCHAR(128),' +
'creationTime TIMESTAMP,' +
'PRIMARY KEY (name))';
db.runSql(cmd, function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('DROP TABLE mailboxes', function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,26 +0,0 @@
'use strict';
var async = require('async');
// imports mailbox entries for existing users
exports.up = function(db, callback) {
async.series([
db.runSql.bind(db, 'START TRANSACTION;'),
function addUserMailboxes(done) {
db.all('SELECT username FROM users', function (error, results) {
if (error) return done(error);
async.eachSeries(results, function (r, next) {
if (!r.username) return next();
db.runSql('INSERT INTO mailboxes (name) VALUES (?)', [ r.username ], next);
}, done);
});
},
db.runSql.bind(db, 'COMMIT')
], callback);
};
exports.down = function(db, callback) {
callback();
};
@@ -1,15 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.runSql('ALTER TABLE apps DROP COLUMN lastBackupConfigJson', function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE apps ADD COLUMN lastBackupConfigJson TEXT', function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,15 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.runSql('ALTER TABLE apps MODIFY installationProgress TEXT', [], function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE apps MODIFY installationProgress VARCHAR(512)', [], function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,15 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.runSql('ALTER TABLE apps ADD COLUMN xFrameOptions VARCHAR(512)', function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE apps DROP COLUMN xFrameOptions', function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,15 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.all('SELECT id FROM users', function (error, results) {
if (error) return callback(error);
// existing cloudrons have email enabled by default. future cloudrons will have it disabled by default
var enable = results.length !== 0;
db.runSql('INSERT settings (name, value) VALUES("mail_config", ?)', [ JSON.stringify({ enabled: enable }) ], callback);
});
};
exports.down = function(db, callback) {
db.runSql('DELETE * FROM settings WHERE name="mail_config"', [ ], callback);
};
@@ -1,73 +0,0 @@
'use strict';
var async = require('async');
exports.up = function(db, callback) {
async.series([
db.runSql.bind(db, 'ALTER TABLE mailboxes ADD COLUMN ownerId VARCHAR(128)'),
db.runSql.bind(db, 'ALTER TABLE mailboxes ADD COLUMN ownerType VARCHAR(16)'),
db.runSql.bind(db, 'START TRANSACTION;'),
function addGroupMailboxes(done) {
console.log('Importing group mailboxes');
db.all('SELECT id, name FROM groups', function (error, results) {
if (error) return done(error);
async.eachSeries(results, function (g, next) {
db.runSql('INSERT INTO mailboxes (ownerId, ownerType, name) VALUES (?, ?, ?)', [ g.id, 'group', g.name ], function (error) {
if (error) console.error('Error importing group ' + JSON.stringify(g) + error);
next();
});
}, done);
});
},
function addAppMailboxes(done) {
console.log('Importing app mail boxes');
db.all('SELECT id, location, manifestJson FROM apps', function (error, results) {
if (error) return done(error);
async.eachSeries(results, function (a, next) {
var manifest = JSON.parse(a.manifestJson);
if (!manifest.addons['sendmail'] && !manifest.addons['recvmail']) return next();
var mailboxName = (a.location ? a.location : manifest.title.replace(/[^a-zA-Z0-9]/g, '')) + '.app';
db.runSql('INSERT INTO mailboxes (ownerId, ownerType, name) VALUES (?, ?, ?)', [ a.id, 'app', mailboxName ], function (error) {
if (error) console.error('Error importing app ' + JSON.stringify(a) + error);
next();
});
}, done);
});
},
function setUserMailboxOwnerIds(done) {
console.log('Setting owner id of user mailboxes and aliases');
db.all('SELECT id, username FROM users', function (error, results) {
if (error) return done(error);
async.eachSeries(results, function (u, next) {
if (!u.username) return next();
db.runSql('UPDATE mailboxes SET ownerId = ?, ownerType = ? WHERE name = ? OR aliasTarget = ?', [ u.id, 'user', u.username, u.username ], function (error) {
if (error) console.error('Error setting ownerid ' + JSON.stringify(u) + error);
next();
});
}, done);
});
},
db.runSql.bind(db, 'COMMIT'),
db.runSql.bind(db, 'ALTER TABLE mailboxes MODIFY ownerId VARCHAR(128) NOT NULL'),
db.runSql.bind(db, 'ALTER TABLE mailboxes MODIFY ownerType VARCHAR(128) NOT NULL'),
], callback);
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE mailboxes DROP COLUMN ownerId', function (error) {
if (error) console.error(error);
db.runSql('ALTER TABLE mailboxes DROP COLUMN ownerType', function (error) {
if (error) console.error(error);
callback(error);
});
});
};
@@ -1,15 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.runSql('ALTER TABLE apps ADD COLUMN sso BOOLEAN DEFAULT 1', function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE apps DROP COLUMN sso', function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,15 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.runSql('ALTER TABLE apps DROP COLUMN oauthProxy', function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE apps ADD COLUMN oauthProxy BOOLEAN DEFAULT 0', function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,15 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.runSql('ALTER TABLE users DROP COLUMN showTutorial', function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE users ADD COLUMN showTutorial BOOLEAN DEFAULT 0', function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,15 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.runSql('ALTER TABLE apps ADD COLUMN debugModeJson TEXT', function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE apps DROP COLUMN debugModeJson ', function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,15 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.runSql('ALTER TABLE backups MODIFY dependsOn TEXT', [], function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE backups MODIFY dependsOn VARCHAR(4096)', [], function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,16 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.runSql('ALTER TABLE appAddonConfigs ADD COLUMN name VARCHAR(128)', function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE appAddonConfigs DROP COLUMN name', function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,14 +0,0 @@
'use strict';
var url = require('url');
exports.up = function(db, callback) {
var dbName = url.parse(process.env.DATABASE_URL).path.substr(1); // remove slash
// by default, mysql collates case insensitively. 'utf8_general_cs' is not available
db.runSql('ALTER DATABASE ' + dbName + ' DEFAULT CHARACTER SET=utf8mb4 DEFAULT COLLATE utf8mb4_unicode_ci', callback);
};
exports.down = function(db, callback) {
callback();
};
@@ -1,95 +0,0 @@
'use strict';
var async = require('async');
// from apps.js DO NOT UPDATE WHEN apps.js changes, as this is part of db migration!!
function postProcess(result) {
try {
result.manifest = JSON.parse(result.manifestJson);
delete result.manifestJson;
result.oldConfig = JSON.parse(result.oldConfigJson);
delete result.oldConfigJson;
result.portBindings = { };
var hostPorts = result.hostPorts === null ? [ ] : result.hostPorts.split(',');
var environmentVariables = result.environmentVariables === null ? [ ] : result.environmentVariables.split(',');
delete result.hostPorts;
delete result.environmentVariables;
for (var i = 0; i < environmentVariables.length; i++) {
result.portBindings[environmentVariables[i]] = parseInt(hostPorts[i], 10);
}
result.accessRestriction = JSON.parse(result.accessRestrictionJson);
if (result.accessRestriction && !result.accessRestriction.users) result.accessRestriction.users = [];
delete result.accessRestrictionJson;
// TODO remove later once all apps have this attribute
result.xFrameOptions = result.xFrameOptions || 'SAMEORIGIN';
result.sso = !!result.sso; // make it bool
result.debugMode = JSON.parse(result.debugModeJson);
delete result.debugModeJson;
} catch (e) {
console.error('Failed to get restoreConfig for app.', e);
console.error('Falling back to empty values to make the update succeed.');
result.manifest = null;
}
}
// from apps.js DO NOT UPDATE WHEN apps.js changes, as this is part of db migration!!
var APPS_FIELDS_PREFIXED = [ 'apps.id', 'apps.appStoreId', 'apps.installationState', 'apps.installationProgress', 'apps.runState',
'apps.health', 'apps.containerId', 'apps.manifestJson', 'apps.httpPort', 'apps.location', 'apps.dnsRecordId',
'apps.accessRestrictionJson', 'apps.lastBackupId', 'apps.oldConfigJson', 'apps.memoryLimit', 'apps.altDomain',
'apps.xFrameOptions', 'apps.sso', 'apps.debugModeJson' ].join(',');
exports.up = function(db, callback) {
async.series([
db.runSql.bind(db, 'ALTER TABLE backups ADD COLUMN restoreConfigJson TEXT'),
// fill all the backups with restoreConfigs from current apps
function addRestoreConfigs(callback) {
console.log('Importing restoreConfigs');
var appQuery = 'SELECT ' + APPS_FIELDS_PREFIXED + ',' +
'GROUP_CONCAT(CAST(appPortBindings.hostPort AS CHAR(6))) AS hostPorts, GROUP_CONCAT(appPortBindings.environmentVariable) AS environmentVariables' +
' FROM apps LEFT OUTER JOIN appPortBindings ON apps.id = appPortBindings.appId' +
' GROUP BY apps.id ORDER BY apps.id';
db.all(appQuery, function (error, apps) {
if (error) return callback(error);
apps.forEach(postProcess);
async.eachSeries(apps, function (app, next) {
if (app.manifest === null) return next();
db.all('SELECT * FROM backups WHERE type="app" AND id LIKE "%app%\\_' + app.id + '\\_%"', function (error, backups) {
if (error) return next(error);
// from apps.js:getAppConfig()
var restoreConfig = {
manifest: app.manifest,
location: app.location,
accessRestriction: app.accessRestriction,
portBindings: app.portBindings,
memoryLimit: app.memoryLimit,
xFrameOptions: app.xFrameOptions || 'SAMEORIGIN',
altDomain: app.altDomain
};
async.eachSeries(backups, function (backup, next) {
db.runSql('UPDATE backups SET restoreConfigJson=?,creationTime=creationTime WHERE id=?', [ JSON.stringify(restoreConfig), backup.id ], next);
}, next);
});
}, callback);
});
}
], callback);
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE backups DROP COLUMN restoreConfigJson', callback);
};
@@ -1,22 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.all('SELECT value FROM settings WHERE name="backup_config"', function (error, results) {
if (error || results.length === 0) return callback(error);
var backupConfig = JSON.parse(results[0].value);
if (backupConfig.provider === 'filesystem') {
backupConfig.retentionSecs = 2 * 24 * 60 * 60; // 2 days
} else if (backupConfig.provider === 's3') { // S3
backupConfig.retentionSecs = -1;
} else if (backupConfig.provider === 'caas') {
backupConfig.retentionSecs = 10 * 24 * 60 * 60; // 10 days
}
db.runSql('UPDATE settings SET value=? WHERE name="backup_config"', [ JSON.stringify(backupConfig) ], callback);
});
};
exports.down = function(db, callback) {
callback();
};
@@ -1,9 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.runSql('INSERT settings (name, value) VALUES("mail_relay", ?)', [ JSON.stringify({ provider: 'cloudron-smtp' }) ], callback);
};
exports.down = function(db, callback) {
db.runSql('DELETE * FROM settings WHERE name="mail_relay"', [ ], callback);
};
@@ -1,15 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.runSql('ALTER TABLE apps ADD COLUMN robotsTxt TEXT', function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE apps DROP COLUMN robotsTxt', function (error) {
if (error) console.error(error);
callback(error);
});
};
@@ -1,29 +0,0 @@
'use strict';
// we used to have JSON as the db type for those two, however mariadb does not support it
// and we never used any JSON related features, but have the TEXT pattern everywhere
// This ensures all old cloudrons will have the columns altered
exports.up = function(db, callback) {
db.runSql('ALTER TABLE eventlog MODIFY data TEXT', [], function (error) {
if (error) console.error(error);
db.runSql('ALTER TABLE eventlog MODIFY source TEXT', [], function (error) {
if (error) console.error(error);
callback(error);
});
});
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE eventlog MODIFY data TEXT', [], function (error) {
if (error) console.error(error);
db.runSql('ALTER TABLE eventlog MODIFY source TEXT', [], function (error) {
if (error) console.error(error);
callback(error);
});
});
};
@@ -1,16 +0,0 @@
'use strict';
exports.up = function(db, callback) {
db.runSql('ALTER TABLE apps ADD COLUMN enableBackup BOOLEAN DEFAULT 1', function (error) {
if (error) console.error(error);
callback(error);
});
};
exports.down = function(db, callback) {
db.runSql('ALTER TABLE apps DROP COLUMN enableBackup', function (error) {
if (error) console.error(error);
callback(error);
});
};
-67
View File
@@ -1,67 +0,0 @@
CREATE TABLE IF NOT EXISTS users(
id VARCHAR(128) NOT NULL UNIQUE,
username VARCHAR(512) NOT NULL,
email VARCHAR(512) NOT NULL,
password VARCHAR(1024) NOT NULL,
salt VARCHAR(512) NOT NULL,
createdAt VARCHAR(512) NOT NULL,
modifiedAt VARCHAR(512) NOT NULL,
admin INTEGER NOT NULL,
PRIMARY KEY(id));
CREATE TABLE IF NOT EXISTS tokens(
accessToken VARCHAR(128) NOT NULL UNIQUE,
userId VARCHAR(128) NOT NULL,
clientId VARCHAR(128),
scope VARCHAR(512) NOT NULL,
expires VARCHAR(512) NOT NULL,
PRIMARY KEY(accessToken));
CREATE TABLE IF NOT EXISTS clients(
id VARCHAR(128) NOT NULL UNIQUE,
appId VARCHAR(128) NOT NULL,
clientSecret VARCHAR(512) NOT NULL,
redirectURI VARCHAR(512) NOT NULL,
scope VARCHAR(512) NOT NULL,
PRIMARY KEY(id));
CREATE TABLE IF NOT EXISTS apps(
id VARCHAR(128) NOT NULL UNIQUE,
appStoreId VARCHAR(128) NOT NULL,
version VARCHAR(32),
installationState VARCHAR(512) NOT NULL,
installationProgress VARCHAR(512),
runState VARCHAR(512),
healthy INTEGER,
containerId VARCHAR(128),
manifestJson VARCHAR(2048),
httpPort INTEGER,
location VARCHAR(128) NOT NULL UNIQUE,
dnsRecordId VARCHAR(512),
accessRestriction VARCHAR(512),
PRIMARY KEY(id));
CREATE TABLE IF NOT EXISTS appPortBindings(
hostPort INTEGER NOT NULL UNIQUE,
containerPort VARCHAR(5) NOT NULL,
appId VARCHAR(128) NOT NULL,
FOREIGN KEY(appId) REFERENCES apps(id),
PRIMARY KEY(hostPort));
CREATE TABLE IF NOT EXISTS authcodes(
authCode VARCHAR(128) NOT NULL UNIQUE,
userId VARCHAR(128) NOT NULL,
clientId VARCHAR(128) NOT NULL,
PRIMARY KEY(authCode));
CREATE TABLE IF NOT EXISTS settings(
name VARCHAR(128) NOT NULL UNIQUE,
value VARCHAR(512),
PRIMARY KEY(name));
CREATE TABLE IF NOT EXISTS appAddonConfigs(
appId VARCHAR(128) NOT NULL,
addonId VARCHAR(32) NOT NULL,
value VARCHAR(512) NOT NULL,
FOREIGN KEY(appId) REFERENCES apps(id));
-137
View File
@@ -1,137 +0,0 @@
#### WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
#### This file is not used by any code and is here to document the latest schema
#### General ideas
#### Default char set is utf8 and DEFAULT COLLATE is utf8_bin. Collate affects comparisons in WHERE and ORDER
#### Strict mode is enabled
#### VARCHAR - stored as part of table row (use for strings)
#### TEXT - stored offline from table row (use for strings)
#### BLOB - stored offline from table row (use for binary data)
#### https://dev.mysql.com/doc/refman/5.0/en/storage-requirements.html
CREATE TABLE IF NOT EXISTS users(
id VARCHAR(128) NOT NULL UNIQUE,
username VARCHAR(254) UNIQUE,
email VARCHAR(254) NOT NULL UNIQUE,
password VARCHAR(1024) NOT NULL,
salt VARCHAR(512) NOT NULL,
createdAt VARCHAR(512) NOT NULL,
modifiedAt VARCHAR(512) NOT NULL,
admin INTEGER NOT NULL,
displayName VARCHAR(512) DEFAULT '',
PRIMARY KEY(id));
CREATE TABLE IF NOT EXISTS groups(
id VARCHAR(128) NOT NULL UNIQUE,
name VARCHAR(254) NOT NULL UNIQUE,
PRIMARY KEY(id));
CREATE TABLE IF NOT EXISTS groupMembers(
groupId VARCHAR(128) NOT NULL,
userId VARCHAR(128) NOT NULL,
FOREIGN KEY(groupId) REFERENCES groups(id),
FOREIGN KEY(userId) REFERENCES users(id));
CREATE TABLE IF NOT EXISTS tokens(
accessToken VARCHAR(128) NOT NULL UNIQUE,
identifier VARCHAR(128) NOT NULL,
clientId VARCHAR(128),
scope VARCHAR(512) NOT NULL,
expires BIGINT NOT NULL, // FIXME: make this a timestamp
PRIMARY KEY(accessToken));
CREATE TABLE IF NOT EXISTS clients(
id VARCHAR(128) NOT NULL UNIQUE, // prefixed with cid- to identify token easily in auth routes
appId VARCHAR(128) NOT NULL,
type VARCHAR(16) NOT NULL,
clientSecret VARCHAR(512) NOT NULL,
redirectURI VARCHAR(512) NOT NULL,
scope VARCHAR(512) NOT NULL,
PRIMARY KEY(id));
CREATE TABLE IF NOT EXISTS apps(
id VARCHAR(128) NOT NULL UNIQUE,
appStoreId VARCHAR(128) NOT NULL,
installationState VARCHAR(512) NOT NULL,
installationProgress TEXT,
runState VARCHAR(512),
health VARCHAR(128),
containerId VARCHAR(128),
manifestJson TEXT,
httpPort INTEGER, // this is the nginx proxy port and not manifest.httpPort
location VARCHAR(128) NOT NULL UNIQUE,
dnsRecordId VARCHAR(512), // tracks any id that we got back to track dns updates (unused)
accessRestrictionJson TEXT, // { users: [ ], groups: [ ] }
createdAt TIMESTAMP(2) NOT NULL DEFAULT CURRENT_TIMESTAMP,
memoryLimit BIGINT DEFAULT 0,
altDomain VARCHAR(256),
xFrameOptions VARCHAR(512),
sso BOOLEAN DEFAULT 1, // whether user chose to enable SSO
debugModeJson TEXT, // options for development mode
robotsTxt TEXT,
enableBackup BOOLEAN DEFAULT 1,
// the following fields do not belong here, they can be removed when we use a queue for apptask
lastBackupId VARCHAR(128), // used to pass backupId to restore from to apptask
oldConfigJson TEXT, // used to pass old config for apptask
PRIMARY KEY(id));
CREATE TABLE IF NOT EXISTS appPortBindings(
hostPort INTEGER NOT NULL UNIQUE,
environmentVariable VARCHAR(128) NOT NULL,
appId VARCHAR(128) NOT NULL,
FOREIGN KEY(appId) REFERENCES apps(id),
PRIMARY KEY(hostPort));
CREATE TABLE IF NOT EXISTS authcodes(
authCode VARCHAR(128) NOT NULL UNIQUE,
userId VARCHAR(128) NOT NULL,
clientId VARCHAR(128) NOT NULL,
expiresAt BIGINT NOT NULL, // ## FIXME: make this a timestamp
PRIMARY KEY(authCode));
CREATE TABLE IF NOT EXISTS settings(
name VARCHAR(128) NOT NULL UNIQUE,
value VARCHAR(512),
PRIMARY KEY(name));
CREATE TABLE IF NOT EXISTS appAddonConfigs(
appId VARCHAR(128) NOT NULL,
addonId VARCHAR(32) NOT NULL,
name VARCHAR(128) NOT NULL,
value VARCHAR(512) NOT NULL,
FOREIGN KEY(appId) REFERENCES apps(id));
CREATE TABLE IF NOT EXISTS backups(
id VARCHAR(128) NOT NULL,
creationTime TIMESTAMP,
version VARCHAR(128) NOT NULL, /* app version or box version */
type VARCHAR(16) NOT NULL, /* 'box' or 'app' */
dependsOn TEXT, /* comma separate list of objects this backup depends on */
state VARCHAR(16) NOT NULL,
restoreConfigJson TEXT, /* JSON including the manifest of the backed up app */
PRIMARY KEY (id));
CREATE TABLE IF NOT EXISTS eventlog(
id VARCHAR(128) NOT NULL,
action VARCHAR(128) NOT NULL,
source TEXT, /* { userId, username, ip }. userId can be null for cron,sysadmin */
data TEXT, /* free flowing json based on action */
creationTime TIMESTAMP, /* FIXME: precision must be TIMESTAMP(2) */
PRIMARY KEY (id));
/* Future fields:
* accessRestriction - to determine who can access it. So this has foreign keys
* quota - per mailbox quota
*/
CREATE TABLE IF NOT EXISTS mailboxes(
name VARCHAR(128) NOT NULL,
ownerId VARCHAR(128) NOT NULL, /* app id or user id or group id */
ownerType VARCHAR(16) NOT NULL, /* 'app' or 'user' or 'group' */
aliasTarget VARCHAR(128), /* the target name type is an alias */
creationTime TIMESTAMP,
PRIMARY KEY (name));
-2678
View File
File diff suppressed because it is too large Load Diff
+6548
View File
File diff suppressed because it is too large Load Diff
+28 -99
View File
@@ -1,109 +1,38 @@
{
"name": "cloudron",
"description": "Main code for a cloudron",
"name": "dashboard",
"version": "1.0.0",
"private": true,
"author": {
"name": "Cloudron authors"
"description": "[Cloudron](https://cloudron.io) is the best way to run apps on your server.",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"update-translations": "curl https://translate.cloudron.io/download/cloudron/dashboard/?format=zip -o lang.zip && unzip -jo lang.zip -d ./src/translation/ && rm lang.zip"
},
"repository": {
"type": "git",
"url": "https://git.cloudron.io/cloudron/box.git"
},
"engines": {
"node": ">=4.0.0 <=4.1.1"
"url": "ssh://git@git.cloudron.io:6000/cloudron/dashboard.git"
},
"author": "",
"license": "SEE LICENSE IN LICENSE",
"dependencies": {
"@sindresorhus/df": "^2.1.0",
"async": "^2.5.0",
"aws-sdk": "^2.97.0",
"body-parser": "^1.17.2",
"cloudron-manifestformat": "^2.9.0",
"connect-ensure-login": "^0.1.1",
"connect-lastmile": "^0.1.0",
"connect-timeout": "^1.9.0",
"cookie-parser": "^1.3.5",
"cookie-session": "^1.1.0",
"cron": "^1.0.9",
"csurf": "^1.6.6",
"db-migrate": "^0.10.0-beta.20",
"db-migrate-mysql": "^1.1.10",
"debug": "^3.0.0",
"dockerode": "^2.4.3",
"ejs": "^2.5.7",
"ejs-cli": "^2.0.0",
"express": "^4.15.4",
"express-session": "^1.15.5",
"gulp-sass": "^3.0.0",
"hat": "0.0.3",
"hock": "https://registry.npmjs.org/hock/-/hock-1.3.2.tgz",
"json": "^9.0.3",
"ldapjs": "^1.0.0",
"mime": "^1.3.4",
"moment-timezone": "^0.5.5",
"morgan": "^1.7.0",
"multiparty": "^4.1.2",
"mysql": "^2.7.0",
"nodemailer": "^4.0.1",
"nodemailer-smtp-transport": "^2.7.4",
"oauth2orize": "^1.0.1",
"once": "^1.3.2",
"parse-links": "^0.1.0",
"passport": "^0.2.2",
"passport-http": "^0.2.2",
"passport-http-bearer": "^1.0.1",
"passport-local": "^1.0.0",
"passport-oauth2-client-password": "^0.1.2",
"password-generator": "^2.0.2",
"progress-stream": "^2.0.0",
"proxy-middleware": "^0.13.0",
"s3-block-read-stream": "^0.2.0",
"safetydance": "^0.2.0",
"semver": "^4.3.6",
"showdown": "^1.6.0",
"split": "^1.0.0",
"superagent": "^3.5.2",
"supererror": "^0.7.1",
"tar-fs": "^1.15.3",
"tldjs": "^1.6.2",
"underscore": "^1.7.0",
"uuid": "^3.1.0",
"valid-url": "^1.0.9",
"validator": "^4.9.0",
"ws": "^2.3.1"
"@fortawesome/fontawesome-free": "^5.15.2",
"bootstrap-sass": "^3.4.1",
"gulp": "^4.0.2",
"gulp-autoprefixer": "^7.0.1",
"gulp-concat": "^2.6.1",
"gulp-cssnano": "^2.1.3",
"gulp-ejs": "^5.1.0",
"gulp-sass": "^4.1.0",
"gulp-serve": "^1.4.0",
"gulp-sourcemaps": "^3.0.0",
"monaco-editor": "^0.23.0",
"rimraf": "^3.0.2",
"xterm": "^4.11.0",
"xterm-addon-attach": "^0.6.0",
"xterm-addon-fit": "^0.5.0",
"yargs": "^16.2.0"
},
"devDependencies": {
"bootstrap-sass": "^3.3.3",
"del": "^1.1.1",
"expect.js": "*",
"gulp": "^3.9.1",
"gulp-autoprefixer": "^2.3.0",
"gulp-concat": "^2.4.3",
"gulp-cssnano": "^2.1.0",
"gulp-ejs": "^1.0.0",
"gulp-sass": "^3.0.0",
"gulp-serve": "^1.0.0",
"gulp-sourcemaps": "^1.5.2",
"gulp-uglify": "^1.1.0",
"hock": "~1.2.0",
"istanbul": "*",
"js2xmlparser": "^1.0.0",
"mocha": "*",
"mock-aws-s3": "^2.4.0",
"nock": "^9.0.14",
"node-sass": "^3.13.1",
"readdirp": "https://registry.npmjs.org/readdirp/-/readdirp-2.1.0.tgz",
"request": "^2.65.0",
"yargs": "^3.15.0"
},
"scripts": {
"migrate_local": "DATABASE_URL=mysql://root:@localhost/box node_modules/.bin/db-migrate up",
"migrate_test": "BOX_ENV=test DATABASE_URL=mysql://root:@localhost/boxtest node_modules/.bin/db-migrate up",
"test": "npm run migrate_test && src/test/setupTest && BOX_ENV=test ./node_modules/istanbul/lib/cli.js test $1 ./node_modules/mocha/bin/_mocha -- -R spec ./src/test ./src/routes/test/[^a]*",
"test_all": "npm run migrate_test && src/test/setupTest && BOX_ENV=test ./node_modules/istanbul/lib/cli.js test $1 ./node_modules/mocha/bin/_mocha -- -R spec ./src/test ./src/routes/test",
"postmerge": "/bin/true",
"precommit": "/bin/true",
"prepush": "npm test",
"webadmin": "node_modules/.bin/gulp"
"eslintConfig": {
"env": {
"browser": true
}
}
}
+66
View File
@@ -0,0 +1,66 @@
#!/usr/bin/env node
// This script creates many users to test the UI for such a case
// WARNING keep those in sync with delUsers.js
const USERNAME_PREFIX = 'manyuser';
const PASSOWRD_PREFIX = 'password';
const DISPLAYNAME_PREFIX = 'User ';
const EMAIL_DOMAIN = 'example.com'; // addresses will be username@EMAIL_DOMAIN
const COUNT = 100;
var async = require('async'),
readlineSync = require('readline-sync'),
superagent = require('superagent');
if (process.argv.length !== 3) {
console.log('Usage: ./addUsers.js <cloudronDomain>');
process.exit(1);
}
const cloudronDomain = process.argv[2];
function getAccessToken(callback) {
let username = readlineSync.question('Username: ', {});
let password = readlineSync.question('Password: ', { noEchoBack: true });
superagent.post(`https://${cloudronDomain}/api/v1/developer/login`, { username: username, password: password }).end(function (error, result) {
if (error || result.statusCode !== 200) {
console.log('Login failed');
return getAccessToken(callback);
}
callback(result.body.accessToken);
});
}
console.log(`Login to ${cloudronDomain}`);
getAccessToken(function (accessToken) {
console.log(`Now creating ${COUNT} users...`);
async.timesLimit(COUNT, 5, function (n, next) {
let user = {
username: USERNAME_PREFIX + n,
password: PASSOWRD_PREFIX + n,
email: USERNAME_PREFIX + n + '@' + EMAIL_DOMAIN,
displayName: DISPLAYNAME_PREFIX + n
};
superagent.post(`https://${cloudronDomain}/api/v1/users`, user).query({ access_token: accessToken }).end(function (error) {
if (error) return next(error);
process.stdout.write('.');
next();
});
}, function (error) {
console.log();
if (error) {
console.error(error);
process.exit(1);
}
console.log('Done');
});
});
-296
View File
@@ -1,296 +0,0 @@
#!/bin/bash
set -eu -o pipefail
if [[ ${EUID} -ne 0 ]]; then
echo "This script should be run as root." > /dev/stderr
exit 1
fi
if [[ $(lsb_release -rs) != "16.04" ]]; then
echo "Cloudron requires Ubuntu 16.04" > /dev/stderr
exit 1
fi
# change this to a hash when we make a upgrade release
readonly LOG_FILE="/var/log/cloudron-setup.log"
readonly DATA_FILE="/root/cloudron-install-data.json"
readonly MINIMUM_DISK_SIZE_GB="18" # this is the size of "/" and required to fit in docker images 18 is a safe bet for different reporting on 20GB min
readonly MINIMUM_MEMORY="974" # this is mostly reported for 1GB main memory (DO 992, EC2 990, Linode 989, Serverdiscounter.com 974)
readonly curl="curl --fail --connect-timeout 20 --retry 10 --retry-delay 2 --max-time 2400"
# copied from cloudron-resize-fs.sh
readonly rootfs_type=$(LC_ALL=C df --output=fstype / | tail -n1)
readonly physical_memory=$(LC_ALL=C free -m | awk '/Mem:/ { print $2 }')
readonly disk_size_bytes=$(LC_ALL=C df --output=size / | tail -n1)
readonly disk_size_gb=$((${disk_size_bytes}/1024/1024))
# verify the system has minimum requirements met
if [[ "${rootfs_type}" != "ext4" ]]; then
echo "Error: Cloudron requires '/' to be ext4" # see #364
exit 1
fi
if [[ "${physical_memory}" -lt "${MINIMUM_MEMORY}" ]]; then
echo "Error: Cloudron requires atleast 1GB physical memory"
exit 1
fi
if [[ "${disk_size_gb}" -lt "${MINIMUM_DISK_SIZE_GB}" ]]; then
echo "Error: Cloudron requires atleast 20GB disk space (Disk space on / is ${disk_size_gb}GB)"
exit 1
fi
initBaseImage="true"
# provisioning data
domain=""
zoneName=""
provider=""
encryptionKey=""
restoreUrl=""
dnsProvider="manual"
tlsProvider="le-prod"
requestedVersion=""
apiServerOrigin="https://api.cloudron.io"
webServerOrigin="https://cloudron.io"
dataJson=""
prerelease="false"
sourceTarballUrl=""
rebootServer="true"
baseDataDir=""
# TODO this is still there for the restore case, see other occasions below
versionsUrl="https://s3.amazonaws.com/prod-cloudron-releases/versions.json"
args=$(getopt -o "" -l "domain:,help,skip-baseimage-init,data:,data-dir:,provider:,encryption-key:,restore-url:,tls-provider:,version:,dns-provider:,env:,prerelease,skip-reboot,source-url:" -n "$0" -- "$@")
eval set -- "${args}"
while true; do
case "$1" in
--domain) domain="$2"; shift 2;;
--help) echo "See https://cloudron.io/references/selfhosting.html on how to install Cloudron"; exit 0;;
--provider) provider="$2"; shift 2;;
--encryption-key) encryptionKey="$2"; shift 2;;
--restore-url) restoreUrl="$2"; shift 2;;
--tls-provider) tlsProvider="$2"; shift 2;;
--dns-provider) dnsProvider="$2"; shift 2;;
--version) requestedVersion="$2"; shift 2;;
--env)
if [[ "$2" == "dev" ]]; then
versionsUrl="https://s3.amazonaws.com/dev-cloudron-releases/versions.json"
apiServerOrigin="https://api.dev.cloudron.io"
webServerOrigin="https://dev.cloudron.io"
tlsProvider="le-staging"
prerelease="true"
elif [[ "$2" == "staging" ]]; then
versionsUrl="https://s3.amazonaws.com/staging-cloudron-releases/versions.json"
apiServerOrigin="https://api.staging.cloudron.io"
webServerOrigin="https://staging.cloudron.io"
tlsProvider="le-staging"
prerelease="true"
fi
shift 2;;
--skip-baseimage-init) initBaseImage="false"; shift;;
--skip-reboot) rebootServer="false"; shift;;
--data) dataJson="$2"; shift 2;;
--prerelease) prerelease="true"; shift;;
--source-url) sourceTarballUrl="$2"; version="0.0.1+custom"; shift 2;;
--data-dir) baseDataDir=$(realpath "$2"); shift 2;;
--) break;;
*) echo "Unknown option $1"; exit 1;;
esac
done
# validate arguments in the absence of data
if [[ -z "${dataJson}" ]]; then
if [[ -z "${provider}" ]]; then
echo "--provider is required (azure, digitalocean, ec2, lightsail, linode, ovh, rosehosting, scaleway, vultr or generic)"
exit 1
elif [[ \
"${provider}" != "ami" && \
"${provider}" != "azure" && \
"${provider}" != "digitalocean" && \
"${provider}" != "ec2" && \
"${provider}" != "gce" && \
"${provider}" != "lightsail" && \
"${provider}" != "linode" && \
"${provider}" != "ovh" && \
"${provider}" != "rosehosting" && \
"${provider}" != "scaleway" && \
"${provider}" != "vultr" && \
"${provider}" != "generic" \
]]; then
echo "--provider must be one of: azure, digitalocean, ec2, gce, lightsail, linode, ovh, rosehosting, scaleway, vultr or generic"
exit 1
fi
if [[ "${tlsProvider}" != "fallback" && "${tlsProvider}" != "le-prod" && "${tlsProvider}" != "le-staging" ]]; then
echo "--tls-provider must be one of: le-prod, le-staging, fallback"
exit 1
fi
if [[ -z "${dnsProvider}" ]]; then
echo "--dns-provider is required (noop, manual)"
exit 1
elif [[ "${dnsProvider}" != "noop" && "${dnsProvider}" != "manual" ]]; then
echo "--dns-provider must be one of : manual, noop"
exit 1
fi
if [[ -n "${baseDataDir}" && ! -d "${baseDataDir}" ]]; then
echo "${baseDataDir} does not exist"
exit 1
fi
fi
echo ""
echo "##############################################"
echo " Cloudron Setup (${requestedVersion:-latest})"
echo "##############################################"
echo ""
echo " Follow setup logs in a second terminal with:"
echo " $ tail -f ${LOG_FILE}"
echo ""
echo " Join us at https://chat.cloudron.io for any questions."
echo ""
if [[ "${initBaseImage}" == "true" ]]; then
echo "=> Updating apt and installing script dependencies"
if ! apt-get update &>> "${LOG_FILE}"; then
echo "Could not update package repositories"
exit 1
fi
if ! apt-get install curl python3 ubuntu-standard -y &>> "${LOG_FILE}"; then
echo "Could not install setup dependencies (curl)"
exit 1
fi
fi
echo "=> Checking version"
if [[ "${sourceTarballUrl}" == "" ]]; then
if ! releaseJson=$($curl -s "${apiServerOrigin}/api/v1/releases?prerelease=${prerelease}&boxVersion=${requestedVersion}"); then
echo "Failed to get release information"
exit 1
fi
if [[ "$requestedVersion" == "" ]]; then
version=$(echo "${releaseJson}" | python3 -c 'import json,sys;obj=json.load(sys.stdin);print(obj["version"])')
else
version="${requestedVersion}"
fi
if ! sourceTarballUrl=$(echo "${releaseJson}" | python3 -c 'import json,sys;obj=json.load(sys.stdin);print(obj["info"]["sourceTarballUrl"])'); then
echo "No source code for version '${requestedVersion:-latest}'"
exit 1
fi
fi
# Build data
# TODO versionsUrl is still there for the cloudron restore case
if [[ -z "${dataJson}" ]]; then
if [[ -z "${restoreUrl}" ]]; then
data=$(cat <<EOF
{
"boxVersionsUrl": "${versionsUrl}",
"fqdn": "${domain}",
"zoneName": "${zoneName}",
"provider": "${provider}",
"apiServerOrigin": "${apiServerOrigin}",
"webServerOrigin": "${webServerOrigin}",
"tlsConfig": {
"provider": "${tlsProvider}"
},
"dnsConfig": {
"provider": "${dnsProvider}"
},
"backupConfig" : {
"provider": "filesystem",
"backupFolder": "/var/backups",
"key": "${encryptionKey}",
"retentionSecs": 172800
},
"updateConfig": {
"prerelease": ${prerelease}
},
"version": "${version}"
}
EOF
)
else
data=$(cat <<EOF
{
"boxVersionsUrl": "${versionsUrl}",
"fqdn": "${domain}",
"zoneName": "${zoneName}",
"provider": "${provider}",
"apiServerOrigin": "${apiServerOrigin}",
"webServerOrigin": "${webServerOrigin}",
"restore": {
"url": "${restoreUrl}",
"key": "${encryptionKey}"
},
"version": "${version}"
}
EOF
)
fi
else
data="${dataJson}"
fi
echo "=> Downloading version ${version} ..."
box_src_tmp_dir=$(mktemp -dt box-src-XXXXXX)
if ! $curl -sL "${sourceTarballUrl}" | tar -zxf - -C "${box_src_tmp_dir}"; then
echo "Could not download source tarball. See ${LOG_FILE} for details"
exit 1
fi
if [[ "${initBaseImage}" == "true" ]]; then
echo -n "=> Installing base dependencies and downloading docker images (this takes some time) ..."
if ! /bin/bash "${box_src_tmp_dir}/baseimage/initializeBaseUbuntuImage.sh" "${provider}" "../src" &>> "${LOG_FILE}"; then
echo "Init script failed. See ${LOG_FILE} for details"
exit 1
fi
echo ""
fi
echo "=> Installing version ${version} (this takes some time) ..."
echo "${data}" > "${DATA_FILE}"
# poor mans semver
if [[ ${version} == "0.10"* ]]; then
if ! /bin/bash "${box_src_tmp_dir}/scripts/installer.sh" --data-file "${DATA_FILE}" &>> "${LOG_FILE}"; then
echo "Failed to install cloudron. See ${LOG_FILE} for details"
exit 1
fi
else
if ! /bin/bash "${box_src_tmp_dir}/scripts/installer.sh" --data-file "${DATA_FILE}" --data-dir "${baseDataDir}" &>> "${LOG_FILE}"; then
echo "Failed to install cloudron. See ${LOG_FILE} for details"
exit 1
fi
fi
rm "${DATA_FILE}"
echo -n "=> Waiting for cloudron to be ready (this takes some time) ..."
while true; do
echo -n "."
if status=$($curl -q -f "http://localhost:3000/api/v1/cloudron/status" 2>/dev/null); then
[[ -z "$domain" ]] && break # with no domain, we are up and running
[[ "$status" == *"\"tls\": true"* ]] && break # with a domain, wait for the cert
fi
sleep 10
done
if [[ -n "${domain}" ]]; then
echo -e "\n\nVisit https://my.${domain} to finish setup once the server has rebooted.\n"
else
echo -e "\n\nVisit https://<IP> to finish setup once the server has rebooted.\n"
fi
if [[ "${rebootServer}" == "true" ]]; then
echo -e "\n\nRebooting this server now to let bootloader changes take effect.\n"
systemctl stop mysql # sometimes mysql ends up having corrupt privilege tables
systemctl reboot
fi
-86
View File
@@ -1,86 +0,0 @@
#!/bin/bash
set -eu
# Only GNU getopt supports long options. OS X comes bundled with the BSD getopt
# brew install gnu-getopt to get the GNU getopt on OS X
[[ $(uname -s) == "Darwin" ]] && GNU_GETOPT="/usr/local/opt/gnu-getopt/bin/getopt" || GNU_GETOPT="getopt"
readonly GNU_GETOPT
args=$(${GNU_GETOPT} -o "" -l "revision:,output:" -n "$0" -- "$@")
eval set -- "${args}"
readonly SOURCE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
commitish="HEAD"
bundle_file=""
while true; do
case "$1" in
--revision) commitish="$2"; shift 2;;
--output) bundle_file="$2"; shift 2;;
--) break;;
*) echo "Unknown option $1"; exit 1;;
esac
done
readonly TMPDIR=${TMPDIR:-/tmp} # why is this not set on mint?
if ! $(cd "${SOURCE_DIR}" && git diff --exit-code >/dev/null); then
echo "You have local changes, stash or commit them to proceed"
exit 1
fi
if [[ "$(node --version)" != "v6.11.2" ]]; then
echo "This script requires node 6.11.2"
exit 1
fi
version=$(cd "${SOURCE_DIR}" && git rev-parse "${commitish}")
bundle_dir=$(mktemp -d -t box 2>/dev/null || mktemp -d box-XXXXXXXXXX --tmpdir=$TMPDIR)
[[ -z "$bundle_file" ]] && bundle_file="${TMPDIR}/box-${version}.tar.gz"
chmod "o+rx,g+rx" "${bundle_dir}" # otherwise extracted tarball director won't be readable by others/group
echo "Checking out code [${version}] into ${bundle_dir}"
(cd "${SOURCE_DIR}" && git archive --format=tar ${version} | (cd "${bundle_dir}" && tar xf -))
if diff "${TMPDIR}/boxtarball.cache/npm-shrinkwrap.json.all" "${bundle_dir}/npm-shrinkwrap.json" >/dev/null 2>&1; then
echo "Reusing dev modules from cache"
cp -r "${TMPDIR}/boxtarball.cache/node_modules-all/." "${bundle_dir}/node_modules"
else
echo "Installing modules with dev dependencies"
(cd "${bundle_dir}" && npm install)
echo "Caching dev dependencies"
mkdir -p "${TMPDIR}/boxtarball.cache/node_modules-all"
rsync -a --delete "${bundle_dir}/node_modules/" "${TMPDIR}/boxtarball.cache/node_modules-all/"
cp "${bundle_dir}/npm-shrinkwrap.json" "${TMPDIR}/boxtarball.cache/npm-shrinkwrap.json.all"
fi
echo "Building webadmin assets"
(cd "${bundle_dir}" && ./node_modules/.bin/gulp)
echo "Remove intermediate files required at build-time only"
rm -rf "${bundle_dir}/node_modules/"
rm -rf "${bundle_dir}/webadmin/src"
rm -rf "${bundle_dir}/gulpfile.js"
if diff "${TMPDIR}/boxtarball.cache/npm-shrinkwrap.json.prod" "${bundle_dir}/npm-shrinkwrap.json" >/dev/null 2>&1; then
echo "Reusing prod modules from cache"
cp -r "${TMPDIR}/boxtarball.cache/node_modules-prod/." "${bundle_dir}/node_modules"
else
echo "Installing modules for production"
(cd "${bundle_dir}" && npm install --production --no-optional)
echo "Caching prod dependencies"
mkdir -p "${TMPDIR}/boxtarball.cache/node_modules-prod"
rsync -a --delete "${bundle_dir}/node_modules/" "${TMPDIR}/boxtarball.cache/node_modules-prod/"
cp "${bundle_dir}/npm-shrinkwrap.json" "${TMPDIR}/boxtarball.cache/npm-shrinkwrap.json.prod"
fi
echo "Create final tarball"
(cd "${bundle_dir}" && tar czf "${bundle_file}" .)
echo "Cleaning up ${bundle_dir}"
rm -rf "${bundle_dir}"
echo "Tarball saved at ${bundle_file}"
+387
View File
@@ -0,0 +1,387 @@
#!/usr/bin/env node
// This script creates a specific timezones.js to be consumed by the dashboard
var execSync = require('child_process').execSync,
fs = require('fs'),
path = require('path');
if (process.argv.length !== 3) {
console.log('Usage: createTimezones.js <output.js>');
process.exit(1);
}
const destinationFilePath = path.resolve(process.argv[2]);
console.log('Creating timezone info at:', destinationFilePath);
var ubuntuTimezones = execSync('timedatectl list-timezones --no-pager').toString().split('\n').filter(function (t) { return !!t; });
// from https://github.com/dmfilipenko/timezones.json/blob/master/timezones.json
var details = [
{ name: 'UTC', offset: '+00:00' },
{ name: 'Africa/Abidjan', offset: '+00:00' },
{ name: 'Africa/Accra', offset: '+00:00' },
{ name: 'Africa/Algiers', offset: '+01:00' },
{ name: 'Africa/Bissau', offset: '+00:00' },
{ name: 'Africa/Cairo', offset: '+02:00' },
{ name: 'Africa/Casablanca', offset: '+01:00' },
{ name: 'Africa/Ceuta', offset: '+01:00' },
{ name: 'Africa/El_Aaiun', offset: '+00:00' },
{ name: 'Africa/Johannesburg', offset: '+02:00' },
{ name: 'Africa/Juba', offset: '+03:00' },
{ name: 'Africa/Khartoum', offset: '+02:00' },
{ name: 'Africa/Lagos', offset: '+01:00' },
{ name: 'Africa/Maputo', offset: '+02:00' },
{ name: 'Africa/Monrovia', offset: '+00:00' },
{ name: 'Africa/Nairobi', offset: '+03:00' },
{ name: 'Africa/Ndjamena', offset: '+01:00' },
{ name: 'Africa/Tripoli', offset: '+02:00' },
{ name: 'Africa/Tunis', offset: '+01:00' },
{ name: 'Africa/Windhoek', offset: '+02:00' },
{ name: 'America/Adak', offset: '10:00' },
{ name: 'America/Anchorage', offset: '09:00' },
{ name: 'America/Araguaina', offset: '03:00' },
{ name: 'America/Argentina/Buenos_Aires', offset: '03:00' },
{ name: 'America/Argentina/Catamarca', offset: '03:00' },
{ name: 'America/Argentina/Cordoba', offset: '03:00' },
{ name: 'America/Argentina/Jujuy', offset: '03:00' },
{ name: 'America/Argentina/La_Rioja', offset: '03:00' },
{ name: 'America/Argentina/Mendoza', offset: '03:00' },
{ name: 'America/Argentina/Rio_Gallegos', offset: '03:00' },
{ name: 'America/Argentina/Salta', offset: '03:00' },
{ name: 'America/Argentina/San_Juan', offset: '03:00' },
{ name: 'America/Argentina/San_Luis', offset: '03:00' },
{ name: 'America/Argentina/Tucuman', offset: '03:00' },
{ name: 'America/Argentina/Ushuaia', offset: '03:00' },
{ name: 'America/Asuncion', offset: '04:00' },
{ name: 'America/Atikokan', offset: '05:00' },
{ name: 'America/Bahia', offset: '03:00' },
{ name: 'America/Bahia_Banderas', offset: '06:00' },
{ name: 'America/Barbados', offset: '04:00' },
{ name: 'America/Belem', offset: '03:00' },
{ name: 'America/Belize', offset: '06:00' },
{ name: 'America/Blanc-Sablon', offset: '04:00' },
{ name: 'America/Boa_Vista', offset: '04:00' },
{ name: 'America/Bogota', offset: '05:00' },
{ name: 'America/Boise', offset: '07:00' },
{ name: 'America/Cambridge_Bay', offset: '07:00' },
{ name: 'America/Campo_Grande', offset: '04:00' },
{ name: 'America/Cancun', offset: '05:00' },
{ name: 'America/Caracas', offset: '04:00' },
{ name: 'America/Cayenne', offset: '03:00' },
{ name: 'America/Chicago', offset: '06:00' },
{ name: 'America/Chihuahua', offset: '07:00' },
{ name: 'America/Costa_Rica', offset: '06:00' },
{ name: 'America/Creston', offset: '07:00' },
{ name: 'America/Cuiaba', offset: '04:00' },
{ name: 'America/Curacao', offset: '04:00' },
{ name: 'America/Danmarkshavn', offset: '+00:00' },
{ name: 'America/Dawson', offset: '08:00' },
{ name: 'America/Dawson_Creek', offset: '07:00' },
{ name: 'America/Denver', offset: '07:00' },
{ name: 'America/Detroit', offset: '05:00' },
{ name: 'America/Edmonton', offset: '07:00' },
{ name: 'America/Eirunepe', offset: '05:00' },
{ name: 'America/El_Salvador', offset: '06:00' },
{ name: 'America/Fort_Nelson', offset: '07:00' },
{ name: 'America/Fortaleza', offset: '03:00' },
{ name: 'America/Glace_Bay', offset: '04:00' },
{ name: 'America/Godthab', offset: '03:00' },
{ name: 'America/Goose_Bay', offset: '04:00' },
{ name: 'America/Grand_Turk', offset: '05:00' },
{ name: 'America/Guatemala', offset: '06:00' },
{ name: 'America/Guayaquil', offset: '05:00' },
{ name: 'America/Guyana', offset: '04:00' },
{ name: 'America/Halifax', offset: '04:00' },
{ name: 'America/Havana', offset: '05:00' },
{ name: 'America/Hermosillo', offset: '07:00' },
{ name: 'America/Indiana/Indianapolis', offset: '05:00' },
{ name: 'America/Indiana/Knox', offset: '06:00' },
{ name: 'America/Indiana/Marengo', offset: '05:00' },
{ name: 'America/Indiana/Petersburg', offset: '05:00' },
{ name: 'America/Indiana/Tell_City', offset: '06:00' },
{ name: 'America/Indiana/Vevay', offset: '05:00' },
{ name: 'America/Indiana/Vincennes', offset: '05:00' },
{ name: 'America/Indiana/Winamac', offset: '05:00' },
{ name: 'America/Inuvik', offset: '07:00' },
{ name: 'America/Iqaluit', offset: '05:00' },
{ name: 'America/Jamaica', offset: '05:00' },
{ name: 'America/Juneau', offset: '09:00' },
{ name: 'America/Kentucky/Louisville', offset: '05:00' },
{ name: 'America/Kentucky/Monticello', offset: '05:00' },
{ name: 'America/La_Paz', offset: '04:00' },
{ name: 'America/Lima', offset: '05:00' },
{ name: 'America/Los_Angeles', offset: '08:00' },
{ name: 'America/Maceio', offset: '03:00' },
{ name: 'America/Managua', offset: '06:00' },
{ name: 'America/Manaus', offset: '04:00' },
{ name: 'America/Martinique', offset: '04:00' },
{ name: 'America/Matamoros', offset: '06:00' },
{ name: 'America/Mazatlan', offset: '07:00' },
{ name: 'America/Menominee', offset: '06:00' },
{ name: 'America/Merida', offset: '06:00' },
{ name: 'America/Metlakatla', offset: '09:00' },
{ name: 'America/Mexico_City', offset: '06:00' },
{ name: 'America/Miquelon', offset: '03:00' },
{ name: 'America/Moncton', offset: '04:00' },
{ name: 'America/Monterrey', offset: '06:00' },
{ name: 'America/Montevideo', offset: '03:00' },
{ name: 'America/Nassau', offset: '05:00' },
{ name: 'America/New_York', offset: '05:00' },
{ name: 'America/Nipigon', offset: '05:00' },
{ name: 'America/Nome', offset: '09:00' },
{ name: 'America/Noronha', offset: '02:00' },
{ name: 'America/North_Dakota/Beulah', offset: '06:00' },
{ name: 'America/North_Dakota/Center', offset: '06:00' },
{ name: 'America/North_Dakota/New_Salem', offset: '06:00' },
{ name: 'America/Ojinaga', offset: '07:00' },
{ name: 'America/Panama', offset: '05:00' },
{ name: 'America/Pangnirtung', offset: '05:00' },
{ name: 'America/Paramaribo', offset: '03:00' },
{ name: 'America/Phoenix', offset: '07:00' },
{ name: 'America/Port_of_Spain', offset: '04:00' },
{ name: 'America/Port-au-Prince', offset: '05:00' },
{ name: 'America/Porto_Velho', offset: '04:00' },
{ name: 'America/Puerto_Rico', offset: '04:00' },
{ name: 'America/Punta_Arenas', offset: '03:00' },
{ name: 'America/Rainy_River', offset: '06:00' },
{ name: 'America/Rankin_Inlet', offset: '06:00' },
{ name: 'America/Recife', offset: '03:00' },
{ name: 'America/Regina', offset: '06:00' },
{ name: 'America/Resolute', offset: '06:00' },
{ name: 'America/Rio_Branco', offset: '05:00' },
{ name: 'America/Santarem', offset: '03:00' },
{ name: 'America/Santiago', offset: '04:00' },
{ name: 'America/Santo_Domingo', offset: '04:00' },
{ name: 'America/Sao_Paulo', offset: '03:00' },
{ name: 'America/Scoresbysund', offset: '01:00' },
{ name: 'America/Sitka', offset: '09:00' },
{ name: 'America/St_Johns', offset: '03:30' },
{ name: 'America/Swift_Current', offset: '06:00' },
{ name: 'America/Tegucigalpa', offset: '06:00' },
{ name: 'America/Thule', offset: '04:00' },
{ name: 'America/Thunder_Bay', offset: '05:00' },
{ name: 'America/Tijuana', offset: '08:00' },
{ name: 'America/Toronto', offset: '05:00' },
{ name: 'America/Vancouver', offset: '08:00' },
{ name: 'America/Whitehorse', offset: '08:00' },
{ name: 'America/Winnipeg', offset: '06:00' },
{ name: 'America/Yakutat', offset: '09:00' },
{ name: 'America/Yellowknife', offset: '07:00' },
{ name: 'Antarctica/Casey', offset: '+11:00' },
{ name: 'Antarctica/Davis', offset: '+07:00' },
{ name: 'Antarctica/DumontDUrville', offset: '+10:00' },
{ name: 'Antarctica/Macquarie', offset: '+11:00' },
{ name: 'Antarctica/Mawson', offset: '+05:00' },
{ name: 'Antarctica/Palmer', offset: '03:00' },
{ name: 'Antarctica/Rothera', offset: '03:00' },
{ name: 'Antarctica/Syowa', offset: '+03:00' },
{ name: 'Antarctica/Troll', offset: '+00:00' },
{ name: 'Antarctica/Vostok', offset: '+06:00' },
{ name: 'Asia/Almaty', offset: '+06:00' },
{ name: 'Asia/Amman', offset: '+02:00' },
{ name: 'Asia/Anadyr', offset: '+12:00' },
{ name: 'Asia/Aqtau', offset: '+05:00' },
{ name: 'Asia/Aqtobe', offset: '+05:00' },
{ name: 'Asia/Ashgabat', offset: '+05:00' },
{ name: 'Asia/Atyrau', offset: '+05:00' },
{ name: 'Asia/Baghdad', offset: '+03:00' },
{ name: 'Asia/Baku', offset: '+04:00' },
{ name: 'Asia/Bangkok', offset: '+07:00' },
{ name: 'Asia/Barnaul', offset: '+07:00' },
{ name: 'Asia/Beirut', offset: '+02:00' },
{ name: 'Asia/Bishkek', offset: '+06:00' },
{ name: 'Asia/Brunei', offset: '+08:00' },
{ name: 'Asia/Chita', offset: '+09:00' },
{ name: 'Asia/Choibalsan', offset: '+08:00' },
{ name: 'Asia/Colombo', offset: '+05:30' },
{ name: 'Asia/Damascus', offset: '+02:00' },
{ name: 'Asia/Dhaka', offset: '+06:00' },
{ name: 'Asia/Dili', offset: '+09:00' },
{ name: 'Asia/Dubai', offset: '+04:00' },
{ name: 'Asia/Dushanbe', offset: '+05:00' },
{ name: 'Asia/Famagusta', offset: '+02:00' },
{ name: 'Asia/Gaza', offset: '+02:00' },
{ name: 'Asia/Hebron', offset: '+02:00' },
{ name: 'Asia/Ho_Chi_Minh', offset: '+07:00' },
{ name: 'Asia/Hong_Kong', offset: '+08:00' },
{ name: 'Asia/Hovd', offset: '+07:00' },
{ name: 'Asia/Irkutsk', offset: '+08:00' },
{ name: 'Asia/Jakarta', offset: '+07:00' },
{ name: 'Asia/Jayapura', offset: '+09:00' },
{ name: 'Asia/Jerusalem', offset: '+02:00' },
{ name: 'Asia/Kabul', offset: '+04:30' },
{ name: 'Asia/Kamchatka', offset: '+12:00' },
{ name: 'Asia/Karachi', offset: '+05:00' },
{ name: 'Asia/Kathmandu', offset: '+05:45' },
{ name: 'Asia/Khandyga', offset: '+09:00' },
{ name: 'Asia/Kolkata', offset: '+05:30' },
{ name: 'Asia/Krasnoyarsk', offset: '+07:00' },
{ name: 'Asia/Kuala_Lumpur', offset: '+08:00' },
{ name: 'Asia/Kuching', offset: '+08:00' },
{ name: 'Asia/Macau', offset: '+08:00' },
{ name: 'Asia/Magadan', offset: '+11:00' },
{ name: 'Asia/Makassar', offset: '+08:00' },
{ name: 'Asia/Manila', offset: '+08:00' },
{ name: 'Asia/Novokuznetsk', offset: '+07:00' },
{ name: 'Asia/Novosibirsk', offset: '+07:00' },
{ name: 'Asia/Omsk', offset: '+06:00' },
{ name: 'Asia/Oral', offset: '+05:00' },
{ name: 'Asia/Pontianak', offset: '+07:00' },
{ name: 'Asia/Pyongyang', offset: '+09:00' },
{ name: 'Asia/Qatar', offset: '+03:00' },
{ name: 'Asia/Qyzylorda', offset: '+05:00' },
{ name: 'Asia/Riyadh', offset: '+03:00' },
{ name: 'Asia/Sakhalin', offset: '+11:00' },
{ name: 'Asia/Samarkand', offset: '+05:00' },
{ name: 'Asia/Seoul', offset: '+09:00' },
{ name: 'Asia/Shanghai', offset: '+08:00' },
{ name: 'Asia/Singapore', offset: '+08:00' },
{ name: 'Asia/Srednekolymsk', offset: '+11:00' },
{ name: 'Asia/Taipei', offset: '+08:00' },
{ name: 'Asia/Tashkent', offset: '+05:00' },
{ name: 'Asia/Tbilisi', offset: '+04:00' },
{ name: 'Asia/Tehran', offset: '+03:30' },
{ name: 'Asia/Thimphu', offset: '+06:00' },
{ name: 'Asia/Tokyo', offset: '+09:00' },
{ name: 'Asia/Tomsk', offset: '+07:00' },
{ name: 'Asia/Ulaanbaatar', offset: '+08:00' },
{ name: 'Asia/Urumqi', offset: '+06:00' },
{ name: 'Asia/Ust-Nera', offset: '+10:00' },
{ name: 'Asia/Vladivostok', offset: '+10:00' },
{ name: 'Asia/Yakutsk', offset: '+09:00' },
{ name: 'Asia/Yangon', offset: '+06:30' },
{ name: 'Asia/Yekaterinburg', offset: '+05:00' },
{ name: 'Asia/Yerevan', offset: '+04:00' },
{ name: 'Atlantic/Azores', offset: '01:00' },
{ name: 'Atlantic/Bermuda', offset: '04:00' },
{ name: 'Atlantic/Canary', offset: '+00:00' },
{ name: 'Atlantic/Cape_Verde', offset: '01:00' },
{ name: 'Atlantic/Faroe', offset: '+00:00' },
{ name: 'Atlantic/Madeira', offset: '+00:00' },
{ name: 'Atlantic/Reykjavik', offset: '+00:00' },
{ name: 'Atlantic/South_Georgia', offset: '02:00' },
{ name: 'Atlantic/Stanley', offset: '03:00' },
{ name: 'Australia/Adelaide', offset: '+09:30' },
{ name: 'Australia/Brisbane', offset: '+10:00' },
{ name: 'Australia/Broken_Hill', offset: '+09:30' },
{ name: 'Australia/Currie', offset: '+10:00' },
{ name: 'Australia/Darwin', offset: '+09:30' },
{ name: 'Australia/Eucla', offset: '+08:45' },
{ name: 'Australia/Hobart', offset: '+10:00' },
{ name: 'Australia/Lindeman', offset: '+10:00' },
{ name: 'Australia/Lord_Howe', offset: '+10:30' },
{ name: 'Australia/Melbourne', offset: '+10:00' },
{ name: 'Australia/Perth', offset: '+08:00' },
{ name: 'Australia/Sydney', offset: '+10:00' },
{ name: 'Europe/Amsterdam', offset: '+01:00' },
{ name: 'Europe/Andorra', offset: '+01:00' },
{ name: 'Europe/Astrakhan', offset: '+04:00' },
{ name: 'Europe/Athens', offset: '+02:00' },
{ name: 'Europe/Belgrade', offset: '+01:00' },
{ name: 'Europe/Berlin', offset: '+01:00' },
{ name: 'Europe/Brussels', offset: '+01:00' },
{ name: 'Europe/Bucharest', offset: '+02:00' },
{ name: 'Europe/Budapest', offset: '+01:00' },
{ name: 'Europe/Chisinau', offset: '+02:00' },
{ name: 'Europe/Copenhagen', offset: '+01:00' },
{ name: 'Europe/Dublin', offset: '+00:00' },
{ name: 'Europe/Gibraltar', offset: '+01:00' },
{ name: 'Europe/Helsinki', offset: '+02:00' },
{ name: 'Europe/Istanbul', offset: '+03:00' },
{ name: 'Europe/Kaliningrad', offset: '+02:00' },
{ name: 'Europe/Kiev', offset: '+02:00' },
{ name: 'Europe/Kirov', offset: '+03:00' },
{ name: 'Europe/Lisbon', offset: '+00:00' },
{ name: 'Europe/London', offset: '+00:00' },
{ name: 'Europe/Luxembourg', offset: '+01:00' },
{ name: 'Europe/Madrid', offset: '+01:00' },
{ name: 'Europe/Malta', offset: '+01:00' },
{ name: 'Europe/Minsk', offset: '+03:00' },
{ name: 'Europe/Monaco', offset: '+01:00' },
{ name: 'Europe/Moscow', offset: '+03:00' },
{ name: 'Asia/Nicosia', offset: '+02:00' },
{ name: 'Europe/Oslo', offset: '+01:00' },
{ name: 'Europe/Paris', offset: '+01:00' },
{ name: 'Europe/Prague', offset: '+01:00' },
{ name: 'Europe/Riga', offset: '+02:00' },
{ name: 'Europe/Rome', offset: '+01:00' },
{ name: 'Europe/Samara', offset: '+04:00' },
{ name: 'Europe/Saratov', offset: '+04:00' },
{ name: 'Europe/Simferopol', offset: '+03:00' },
{ name: 'Europe/Sofia', offset: '+02:00' },
{ name: 'Europe/Stockholm', offset: '+01:00' },
{ name: 'Europe/Tallinn', offset: '+02:00' },
{ name: 'Europe/Tirane', offset: '+01:00' },
{ name: 'Europe/Ulyanovsk', offset: '+04:00' },
{ name: 'Europe/Uzhgorod', offset: '+02:00' },
{ name: 'Europe/Vienna', offset: '+01:00' },
{ name: 'Europe/Vilnius', offset: '+02:00' },
{ name: 'Europe/Volgograd', offset: '+04:00' },
{ name: 'Europe/Warsaw', offset: '+01:00' },
{ name: 'Europe/Zaporozhye', offset: '+02:00' },
{ name: 'Europe/Zurich', offset: '+01:00' },
{ name: 'Indian/Chagos', offset: '+06:00' },
{ name: 'Indian/Christmas', offset: '+07:00' },
{ name: 'Indian/Cocos', offset: '+06:30' },
{ name: 'Indian/Kerguelen', offset: '+05:00' },
{ name: 'Indian/Mahe', offset: '+04:00' },
{ name: 'Indian/Maldives', offset: '+05:00' },
{ name: 'Indian/Mauritius', offset: '+04:00' },
{ name: 'Indian/Reunion', offset: '+04:00' },
{ name: 'Pacific/Apia', offset: '+13:00' },
{ name: 'Pacific/Auckland', offset: '+12:00' },
{ name: 'Pacific/Bougainville', offset: '+11:00' },
{ name: 'Pacific/Chatham', offset: '+12:45' },
{ name: 'Pacific/Chuuk', offset: '+10:00' },
{ name: 'Pacific/Easter', offset: '06:00' },
{ name: 'Pacific/Efate', offset: '+11:00' },
{ name: 'Pacific/Enderbury', offset: '+13:00' },
{ name: 'Pacific/Fakaofo', offset: '+13:00' },
{ name: 'Pacific/Fiji', offset: '+12:00' },
{ name: 'Pacific/Funafuti', offset: '+12:00' },
{ name: 'Pacific/Galapagos', offset: '06:00' },
{ name: 'Pacific/Gambier', offset: '09:00' },
{ name: 'Pacific/Guadalcanal', offset: '+11:00' },
{ name: 'Pacific/Guam', offset: '+10:00' },
{ name: 'Pacific/Honolulu', offset: '10:00' },
{ name: 'Pacific/Kiritimati', offset: '+14:00' },
{ name: 'Pacific/Kosrae', offset: '+11:00' },
{ name: 'Pacific/Kwajalein', offset: '+12:00' },
{ name: 'Pacific/Majuro', offset: '+12:00' },
{ name: 'Pacific/Marquesas', offset: '09:30' },
{ name: 'Pacific/Nauru', offset: '+12:00' },
{ name: 'Pacific/Niue', offset: '11:00' },
{ name: 'Pacific/Norfolk', offset: '+11:00' },
{ name: 'Pacific/Noumea', offset: '+11:00' },
{ name: 'Pacific/Pago_Pago', offset: '11:00' },
{ name: 'Pacific/Palau', offset: '+09:00' },
{ name: 'Pacific/Pitcairn', offset: '08:00' },
{ name: 'Pacific/Pohnpei', offset: '+11:00' },
{ name: 'Pacific/Port_Moresby', offset: '+10:00' },
{ name: 'Pacific/Rarotonga', offset: '10:00' },
{ name: 'Pacific/Tahiti', offset: '10:00' },
{ name: 'Pacific/Tarawa', offset: '+12:00' },
{ name: 'Pacific/Tongatapu', offset: '+13:00' },
{ name: 'Pacific/Wake', offset: '+12:00' },
{ name: 'Pacific/Wallis', offset: '+12:00' },
];
var timezones = ubuntuTimezones.map(function (t) {
var detail = details.find(function (d) {
return d.name === t;
});
if (!detail) return null;
return {
id: t,
display: `${t} (UTC${detail.offset})`
}
}).filter(function (t) { return !!t; });
var output = `(function () { window.timezones = ${JSON.stringify(timezones)}; })();\n`;
fs.writeFileSync(destinationFilePath, output, 'utf-8');
console.log('Done');
+69
View File
@@ -0,0 +1,69 @@
#!/usr/bin/env node
// This script deletes many users to test the UI for such a case
// WARNING keep those in sync with addUsers.js
const USERNAME_PREFIX = 'manyuser';
var async = require('async'),
readlineSync = require('readline-sync'),
superagent = require('superagent');
if (process.argv.length !== 3) {
console.log('Usage: ./delUsers.js <cloudronDomain>');
process.exit(1);
}
const cloudronDomain = process.argv[2];
function getAccessToken(callback) {
let username = readlineSync.question('Username: ', {});
let password = readlineSync.question('Password: ', { noEchoBack: true });
superagent.post(`https://${cloudronDomain}/api/v1/developer/login`, { username: username, password: password }).end(function (error, result) {
if (error || result.statusCode !== 200) {
console.log('Login failed');
return getAccessToken(callback);
}
callback(result.body.accessToken);
});
}
console.log(`Login to ${cloudronDomain}`);
getAccessToken(function (accessToken) {
console.log('Listing users...');
superagent.get(`https://${cloudronDomain}/api/v1/users`).query({ access_token: accessToken, per_page: 1000 }).end(function (error, result) {
if (error) {
console.error(error);
process.exit(1);
}
console.log(`Found ${result.body.users.length} users`);
let matchingUsers = result.body.users.filter(function (u) { return u.username.indexOf(USERNAME_PREFIX) === 0; });
console.log(`Found ${matchingUsers.length} users with matching prefix`);
console.log('Deleting users...');
async.eachLimit(matchingUsers, 5, function (user, next) {
superagent.del(`https://${cloudronDomain}/api/v1/users/${user.id}`).query({ access_token: accessToken }).end(function (error) {
if (error) return next(error);
process.stdout.write('.');
next();
});
}, function (error) {
console.log();
if (error) {
console.error(error);
process.exit(1);
}
console.log('Done');
});
});
});
-93
View File
@@ -1,93 +0,0 @@
#!/bin/bash
set -eu -o pipefail
if [[ ${EUID} -ne 0 ]]; then
echo "This script should be run as root." > /dev/stderr
exit 1
fi
readonly USER=yellowtent
readonly BOX_SRC_DIR=/home/${USER}/box
readonly BASE_DATA_DIR=/home/${USER}
readonly CLOUDRON_CONF=/home/yellowtent/configs/cloudron.conf
readonly curl="curl --fail --connect-timeout 20 --retry 10 --retry-delay 2 --max-time 2400"
readonly script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
readonly box_src_tmp_dir="$(realpath ${script_dir}/..)"
readonly is_update=$([[ -f "${CLOUDRON_CONF}" ]] && echo "yes" || echo "no")
arg_data=""
arg_data_dir=""
args=$(getopt -o "" -l "data:,data-file:,data-dir:" -n "$0" -- "$@")
eval set -- "${args}"
while true; do
case "$1" in
--data) arg_data="$2"; shift 2;;
--data-file) arg_data=$(cat $2); shift 2;;
--data-dir) arg_data_dir="$2"; shift 2;;
--) break;;
*) echo "Unknown option $1"; exit 1;;
esac
done
echo "==> installer: updating node"
if [[ "$(node --version)" != "v6.11.2" ]]; then
mkdir -p /usr/local/node-6.11.2
$curl -sL https://nodejs.org/dist/v6.11.2/node-v6.11.2-linux-x64.tar.gz | tar zxvf - --strip-components=1 -C /usr/local/node-6.11.2
ln -sf /usr/local/node-6.11.2/bin/node /usr/bin/node
ln -sf /usr/local/node-6.11.2/bin/npm /usr/bin/npm
rm -rf /usr/local/node-6.11.1
fi
for try in `seq 1 10`; do
# for reasons unknown, the dtrace package will fail. but rebuilding second time will work
# We need --unsafe-perm as we run as root and the folder is owned by root,
# however by default npm drops privileges for npm rebuild
# https://docs.npmjs.com/misc/config#unsafe-perm
if cd "${box_src_tmp_dir}" && npm rebuild --unsafe-perm; then break; fi
echo "Failed to rebuild, trying again"
sleep 5
done
if [[ ${try} -eq 10 ]]; then
echo "npm rebuild failed"
exit 4
fi
if ! id "${USER}" 2>/dev/null; then
useradd "${USER}" -m
fi
if [[ "${is_update}" == "yes" ]]; then
echo "Setting up update splash screen"
"${box_src_tmp_dir}/setup/splashpage.sh" --data "${arg_data}" || true # show splash from new code
${BOX_SRC_DIR}/setup/stop.sh # stop the old code
fi
# setup links to data directory
if [[ -n "${arg_data_dir}" ]]; then
echo "==> installer: setting up links to data directory"
mkdir "${arg_data_dir}/appsdata"
ln -s "${arg_data_dir}/appsdata" "${BASE_DATA_DIR}/appsdata"
mkdir "${arg_data_dir}/platformdata"
ln -s "${arg_data_dir}/platformdata" "${BASE_DATA_DIR}/platformdata"
fi
# ensure we are not inside the source directory, which we will remove now
cd /root
echo "==> installer: updating packages"
# add logic to update apt packages here
echo "==> installer: switching the box code"
rm -rf "${BOX_SRC_DIR}"
mv "${box_src_tmp_dir}" "${BOX_SRC_DIR}"
chown -R "${USER}:${USER}" "${BOX_SRC_DIR}"
echo "==> installer: calling box setup script"
"${BOX_SRC_DIR}/setup/start.sh" --data "${arg_data}"
+163
View File
@@ -0,0 +1,163 @@
{
"name": "scripts",
"version": "1.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"async": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/async/-/async-3.1.0.tgz",
"integrity": "sha512-4vx/aaY6j/j3Lw3fbCHNWP0pPaTCew3F6F3hYyl/tHs/ndmV1q7NW9T5yuJ2XAGwdQrP+6Wu20x06U4APo/iQQ=="
},
"asynckit": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
"integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="
},
"combined-stream": {
"version": "1.0.8",
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
"integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
"requires": {
"delayed-stream": "~1.0.0"
}
},
"component-emitter": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz",
"integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg=="
},
"cookiejar": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.2.tgz",
"integrity": "sha512-Mw+adcfzPxcPeI+0WlvRrr/3lGVO0bD75SxX6811cxSh1Wbxx7xZBGK1eVtDf6si8rg2lhnUjsVLMFMfbRIuwA=="
},
"debug": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
"integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
"requires": {
"ms": "^2.1.1"
}
},
"delayed-stream": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
"integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk="
},
"fast-safe-stringify": {
"version": "2.0.7",
"resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.0.7.tgz",
"integrity": "sha512-Utm6CdzT+6xsDk2m8S6uL8VHxNwI6Jub+e9NYTcAms28T84pTa25GJQV9j0CY0N1rM8hK4x6grpF2BQf+2qwVA=="
},
"form-data": {
"version": "2.5.1",
"resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.1.tgz",
"integrity": "sha512-m21N3WOmEEURgk6B9GLOE4RuWOFf28Lhh9qGYeNlGq4VDXUlJy2th2slBNU8Gp8EzloYZOibZJ7t5ecIrFSjVA==",
"requires": {
"asynckit": "^0.4.0",
"combined-stream": "^1.0.6",
"mime-types": "^2.1.12"
}
},
"formidable": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/formidable/-/formidable-1.2.1.tgz",
"integrity": "sha512-Fs9VRguL0gqGHkXS5GQiMCr1VhZBxz0JnJs4JmMp/2jL18Fmbzvv7vOFRU+U8TBkHEE/CX1qDXzJplVULgsLeg=="
},
"inherits": {
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
},
"methods": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
"integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4="
},
"mime": {
"version": "2.4.4",
"resolved": "https://registry.npmjs.org/mime/-/mime-2.4.4.tgz",
"integrity": "sha512-LRxmNwziLPT828z+4YkNzloCFC2YM4wrB99k+AV5ZbEyfGNWfG8SO1FUXLmLDBSo89NrJZ4DIWeLjy1CHGhMGA=="
},
"mime-db": {
"version": "1.40.0",
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.40.0.tgz",
"integrity": "sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA=="
},
"mime-types": {
"version": "2.1.24",
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.24.tgz",
"integrity": "sha512-WaFHS3MCl5fapm3oLxU4eYDw77IQM2ACcxQ9RIxfaC3ooc6PFuBMGZZsYpvoXS5D5QTWPieo1jjLdAm3TBP3cQ==",
"requires": {
"mime-db": "1.40.0"
}
},
"ms": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
},
"qs": {
"version": "6.9.0",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.9.0.tgz",
"integrity": "sha512-27RP4UotQORTpmNQDX8BHPukOnBP3p1uUJY5UnDhaJB+rMt9iMsok724XL+UHU23bEFOHRMQ2ZhI99qOWUMGFA=="
},
"readable-stream": {
"version": "3.4.0",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.4.0.tgz",
"integrity": "sha512-jItXPLmrSR8jmTRmRWJXCnGJsfy85mB3Wd/uINMXA65yrnFo0cPClFIUWzo2najVNSl+mx7/4W8ttlLWJe99pQ==",
"requires": {
"inherits": "^2.0.3",
"string_decoder": "^1.1.1",
"util-deprecate": "^1.0.1"
}
},
"readline-sync": {
"version": "1.4.10",
"resolved": "https://registry.npmjs.org/readline-sync/-/readline-sync-1.4.10.tgz",
"integrity": "sha512-gNva8/6UAe8QYepIQH/jQ2qn91Qj0B9sYjMBBs3QOB8F2CXcKgLxQaJRP76sWVRQt+QU+8fAkCbCvjjMFu7Ycw=="
},
"safe-buffer": {
"version": "5.2.0",
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz",
"integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg=="
},
"semver": {
"version": "6.3.0",
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
"integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw=="
},
"string_decoder": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
"integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
"requires": {
"safe-buffer": "~5.2.0"
}
},
"superagent": {
"version": "5.1.0",
"resolved": "https://registry.npmjs.org/superagent/-/superagent-5.1.0.tgz",
"integrity": "sha512-7V6JVx5N+eTL1MMqRBX0v0bG04UjrjAvvZJTF/VDH/SH2GjSLqlrcYepFlpTrXpm37aSY6h3GGVWGxXl/98TKA==",
"requires": {
"component-emitter": "^1.3.0",
"cookiejar": "^2.1.2",
"debug": "^4.1.1",
"fast-safe-stringify": "^2.0.6",
"form-data": "^2.3.3",
"formidable": "^1.2.1",
"methods": "^1.1.2",
"mime": "^2.4.4",
"qs": "^6.7.0",
"readable-stream": "^3.4.0",
"semver": "^6.1.1"
}
},
"util-deprecate": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
"integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8="
}
}
}
+16
View File
@@ -0,0 +1,16 @@
{
"name": "scripts",
"version": "1.0.0",
"description": "",
"main": "manyUsers.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"async": "^3.1.0",
"readline-sync": "^1.4.10",
"superagent": "^5.1.0"
}
}
-112
View File
@@ -1,112 +0,0 @@
#!/bin/bash
source_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
json="${source_dir}/../node_modules/.bin/json"
# IMPORTANT: Fix cloudron.js:doUpdate if you add/remove any arg. keep these sorted for readability
arg_api_server_origin=""
arg_fqdn=""
arg_zone_name=""
arg_is_custom_domain="false"
arg_restore_key=""
arg_restore_url=""
arg_retire_reason=""
arg_retire_info=""
arg_tls_config=""
arg_tls_cert=""
arg_tls_key=""
arg_token=""
arg_version=""
arg_web_server_origin=""
arg_backup_config=""
arg_dns_config=""
arg_update_config=""
arg_provider=""
arg_app_bundle=""
arg_is_demo="false"
args=$(getopt -o "" -l "data:,retire-reason:,retire-info:" -n "$0" -- "$@")
eval set -- "${args}"
while true; do
case "$1" in
--retire-reason)
arg_retire_reason="$2"
shift 2
;;
--retire-info)
arg_retire_info="$2"
shift 2
;;
--data)
# these params must be valid in all cases
arg_fqdn=$(echo "$2" | $json fqdn)
arg_zone_name=$(echo "$2" | $json zoneName)
arg_is_custom_domain=$(echo "$2" | $json isCustomDomain)
[[ "${arg_is_custom_domain}" == "" ]] && arg_is_custom_domain="true"
# only update/restore have this valid (but not migrate)
arg_api_server_origin=$(echo "$2" | $json apiServerOrigin)
[[ "${arg_api_server_origin}" == "" ]] && arg_api_server_origin="https://api.cloudron.io"
arg_web_server_origin=$(echo "$2" | $json webServerOrigin)
[[ "${arg_web_server_origin}" == "" ]] && arg_web_server_origin="https://cloudron.io"
# TODO check if an where this is used
arg_version=$(echo "$2" | $json version)
# read possibly empty parameters here
arg_app_bundle=$(echo "$2" | $json appBundle)
[[ "${arg_app_bundle}" == "" ]] && arg_app_bundle="[]"
arg_is_demo=$(echo "$2" | $json isDemo)
[[ "${arg_is_demo}" == "" ]] && arg_is_demo="false"
arg_tls_cert=$(echo "$2" | $json tlsCert)
[[ "${arg_tls_cert}" == "null" ]] && arg_tls_cert=""
arg_tls_key=$(echo "$2" | $json tlsKey)
[[ "${arg_tls_key}" == "null" ]] && arg_tls_key=""
arg_token=$(echo "$2" | $json token)
arg_provider=$(echo "$2" | $json provider)
[[ "${arg_provider}" == "" ]] && arg_provider="generic"
arg_tls_config=$(echo "$2" | $json tlsConfig)
[[ "${arg_tls_config}" == "null" ]] && arg_tls_config=""
arg_restore_url=$(echo "$2" | $json restore.url)
[[ "${arg_restore_url}" == "null" ]] && arg_restore_url=""
arg_restore_key=$(echo "$2" | $json restore.key)
[[ "${arg_restore_key}" == "null" ]] && arg_restore_key=""
arg_backup_config=$(echo "$2" | $json backupConfig)
[[ "${arg_backup_config}" == "null" ]] && arg_backup_config=""
arg_dns_config=$(echo "$2" | $json dnsConfig)
[[ "${arg_dns_config}" == "null" ]] && arg_dns_config=""
arg_update_config=$(echo "$2" | $json updateConfig)
[[ "${arg_update_config}" == "null" ]] && arg_update_config=""
shift 2
;;
--) break;;
*) echo "Unknown option $1"; exit 1;;
esac
done
echo "Parsed arguments:"
echo "api server: ${arg_api_server_origin}"
echo "fqdn: ${arg_fqdn}"
echo "custom domain: ${arg_is_custom_domain}"
echo "restore url: ${arg_restore_url}"
echo "tls cert: ${arg_tls_cert}"
# do not dump these as they might become available via logs API
#echo "restore key: ${arg_restore_key}"
#echo "tls key: ${arg_tls_key}"
#echo "token: ${arg_token}"
echo "tlsConfig: ${arg_tls_config}"
echo "version: ${arg_version}"
echo "web server: ${arg_web_server_origin}"
echo "provider: ${arg_provider}"
-50
View File
@@ -1,50 +0,0 @@
#!/bin/bash
set -eu -o pipefail
readonly SETUP_WEBSITE_DIR="/home/yellowtent/setup/website"
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
readonly box_src_dir="$(realpath ${script_dir}/..)"
readonly PLATFORM_DATA_DIR="/home/yellowtent/platformdata"
readonly ADMIN_LOCATION="my" # keep this in sync with constants.js
echo "Setting up nginx update page"
if [[ ! -f "${PLATFORM_DATA_DIR}/nginx/applications/admin.conf" ]]; then
echo "No admin.conf found. This Cloudron has no domain yet. Skip splash setup"
exit
fi
source "${script_dir}/argparser.sh" "$@" # this injects the arg_* variables used below
# keep this is sync with config.js appFqdn()
admin_fqdn=$([[ "${arg_is_custom_domain}" == "true" ]] && echo "${ADMIN_LOCATION}.${arg_fqdn}" || echo "${ADMIN_LOCATION}-${arg_fqdn}")
admin_origin="https://${admin_fqdn}"
# copy the website
rm -rf "${SETUP_WEBSITE_DIR}" && mkdir -p "${SETUP_WEBSITE_DIR}"
cp -r "${script_dir}/splash/website/"* "${SETUP_WEBSITE_DIR}"
# create nginx config
readonly current_infra=$(node -e "console.log(require('${script_dir}/../src/infra_version.js').version);")
existing_infra="none"
[[ -f "${PLATFORM_DATA_DIR}/INFRA_VERSION" ]] && existing_infra=$(node -e "console.log(JSON.parse(require('fs').readFileSync('${PLATFORM_DATA_DIR}/INFRA_VERSION', 'utf8')).version);")
if [[ "${arg_retire_reason}" != "" || "${existing_infra}" != "${current_infra}" ]]; then
echo "Showing progress bar on all subdomains in retired mode or infra update. retire: ${arg_retire_reason} existing: ${existing_infra} current: ${current_infra}"
rm -f ${PLATFORM_DATA_DIR}/nginx/applications/*
${box_src_dir}/node_modules/.bin/ejs-cli -f "${script_dir}/start/nginx/appconfig.ejs" \
-O "{ \"vhost\": \"~^(.+)\$\", \"adminOrigin\": \"${admin_origin}\", \"endpoint\": \"splash\", \"sourceDir\": \"${SETUP_WEBSITE_DIR}\", \"certFilePath\": \"cert/host.cert\", \"keyFilePath\": \"cert/host.key\", \"xFrameOptions\": \"SAMEORIGIN\", \"robotsTxtQuoted\": null }" > "${PLATFORM_DATA_DIR}/nginx/applications/admin.conf"
else
echo "Show progress bar only on admin domain for normal update"
${box_src_dir}/node_modules/.bin/ejs-cli -f "${script_dir}/start/nginx/appconfig.ejs" \
-O "{ \"vhost\": \"${admin_fqdn}\", \"adminOrigin\": \"${admin_origin}\", \"endpoint\": \"splash\", \"sourceDir\": \"${SETUP_WEBSITE_DIR}\", \"certFilePath\": \"cert/host.cert\", \"keyFilePath\": \"cert/host.key\", \"xFrameOptions\": \"SAMEORIGIN\", \"robotsTxtQuoted\": null }" > "${PLATFORM_DATA_DIR}/nginx/applications/admin.conf"
fi
if [[ "${arg_retire_reason}" == "migrate" ]]; then
echo "{ \"migrate\": { \"percent\": \"10\", \"message\": \"Migrating cloudron. This could take up to 15 minutes.\", \"info\": ${arg_retire_info} }, \"backup\": null, \"apiServerOrigin\": \"${arg_api_server_origin}\" }" > "${SETUP_WEBSITE_DIR}/progress.json"
else
echo '{ "update": { "percent": "10", "message": "Updating cloudron software" }, "backup": null }' > "${SETUP_WEBSITE_DIR}/progress.json"
fi
nginx -s reload
-327
View File
@@ -1,327 +0,0 @@
#!/bin/bash
set -eu -o pipefail
echo "==> Cloudron Start"
readonly USER="yellowtent"
readonly HOME_DIR="/home/${USER}"
readonly BOX_SRC_DIR="${HOME_DIR}/box"
readonly OLD_DATA_DIR="${HOME_DIR}/data";
readonly PLATFORM_DATA_DIR="${HOME_DIR}/platformdata" # platform data
readonly APPS_DATA_DIR="${HOME_DIR}/appsdata" # app data
readonly BOX_DATA_DIR="${HOME_DIR}/boxdata" # box data
readonly CONFIG_DIR="${HOME_DIR}/configs"
readonly SETUP_PROGRESS_JSON="${HOME_DIR}/setup/website/progress.json"
readonly curl="curl --fail --connect-timeout 20 --retry 10 --retry-delay 2 --max-time 2400"
readonly script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "${script_dir}/argparser.sh" "$@" # this injects the arg_* variables used below
set_progress() {
local percent="$1"
local message="$2"
echo "==> ${percent} - ${message}"
(echo "{ \"update\": { \"percent\": \"${percent}\", \"message\": \"${message}\" }, \"backup\": {} }" > "${SETUP_PROGRESS_JSON}") 2> /dev/null || true # as this will fail in non-update mode
}
set_progress "20" "Configuring host"
sed -e 's/^#NTP=/NTP=0.ubuntu.pool.ntp.org 1.ubuntu.pool.ntp.org 2.ubuntu.pool.ntp.org 3.ubuntu.pool.ntp.org/' -i /etc/systemd/timesyncd.conf
timedatectl set-ntp 1
timedatectl set-timezone UTC
hostnamectl set-hostname "${arg_fqdn}"
echo "==> Configuring docker"
cp "${script_dir}/start/docker-cloudron-app.apparmor" /etc/apparmor.d/docker-cloudron-app
systemctl enable apparmor
systemctl restart apparmor
usermod ${USER} -a -G docker
# preserve the existing storage driver (user might be using overlay2)
storage_driver=$(docker info | grep "Storage Driver" | sed 's/.*: //')
[[ -n "${storage_driver}" ]] || storage_driver="overlay2" # if the above command fails
temp_file=$(mktemp)
# create systemd drop-in. some apps do not work with aufs
echo -e "[Service]\nExecStart=\nExecStart=/usr/bin/dockerd -H fd:// --log-driver=journald --exec-opt native.cgroupdriver=cgroupfs --storage-driver=${storage_driver}" > "${temp_file}"
systemctl enable docker
# restart docker if options changed
if [[ ! -f /etc/systemd/system/docker.service.d/cloudron.conf ]] || ! diff -q /etc/systemd/system/docker.service.d/cloudron.conf "${temp_file}" >/dev/null; then
mkdir -p /etc/systemd/system/docker.service.d
mv "${temp_file}" /etc/systemd/system/docker.service.d/cloudron.conf
systemctl daemon-reload
systemctl restart docker
fi
docker network create --subnet=172.18.0.0/16 cloudron || true
# caas has ssh on port 202 and we disable password login
if [[ "${arg_provider}" == "caas" ]]; then
# https://stackoverflow.com/questions/4348166/using-with-sed on why ? must be escaped
sed -e 's/^#\?PermitRootLogin .*/PermitRootLogin without-password/g' \
-e 's/^#\?PermitEmptyPasswords .*/PermitEmptyPasswords no/g' \
-e 's/^#\?PasswordAuthentication .*/PasswordAuthentication no/g' \
-e 's/^#\?Port .*/Port 202/g' \
-i /etc/ssh/sshd_config
# required so we can connect to this machine since port 22 is blocked by iptables by now
systemctl reload sshd
fi
mkdir -p "${BOX_DATA_DIR}"
mkdir -p "${APPS_DATA_DIR}"
mkdir -p "${PLATFORM_DATA_DIR}"
# keep these in sync with paths.js
echo "==> Ensuring directories"
if [[ ! -d "${PLATFORM_DATA_DIR}/mail" ]]; then
if [[ -d "${OLD_DATA_DIR}/mail" ]]; then
echo "==> Migrate old mail data"
# Migrate mail data to new format
docker stop mail || true # otherwise the move below might fail if mail container writes in the middle
mkdir -p "${PLATFORM_DATA_DIR}/mail"
# we can't move the whole folder as it is a btrfs subvolume mount
mv -f "${OLD_DATA_DIR}/mail/"* "${PLATFORM_DATA_DIR}/mail/" # this used to be mail container's run directory
else
echo "==> Create new mail data dir"
mkdir -p "${PLATFORM_DATA_DIR}/mail"
fi
fi
mkdir -p "${PLATFORM_DATA_DIR}/graphite"
mkdir -p "${PLATFORM_DATA_DIR}/mail/dkim"
mkdir -p "${PLATFORM_DATA_DIR}/mysql"
mkdir -p "${PLATFORM_DATA_DIR}/postgresql"
mkdir -p "${PLATFORM_DATA_DIR}/mongodb"
mkdir -p "${PLATFORM_DATA_DIR}/snapshots"
mkdir -p "${PLATFORM_DATA_DIR}/addons/mail"
mkdir -p "${PLATFORM_DATA_DIR}/collectd/collectd.conf.d"
mkdir -p "${PLATFORM_DATA_DIR}/logrotate.d"
mkdir -p "${PLATFORM_DATA_DIR}/acme"
mkdir -p "${BOX_DATA_DIR}/appicons"
mkdir -p "${BOX_DATA_DIR}/certs"
mkdir -p "${BOX_DATA_DIR}/acme" # acme keys
# ensure backups folder exists and is writeable
mkdir -p /var/backups
chmod 777 /var/backups
echo "==> Check for old btrfs volumes"
if mountpoint -q "${OLD_DATA_DIR}"; then
echo "==> Cleanup btrfs volumes"
# First stop all container to be able to unmount
docker ps -q | xargs docker stop
umount "${OLD_DATA_DIR}"
rm -rf "/root/user_data.img"
else
echo "==> No btrfs volumes found";
fi
echo "==> Configuring journald"
sed -e "s/^#SystemMaxUse=.*$/SystemMaxUse=100M/" \
-e "s/^#ForwardToSyslog=.*$/ForwardToSyslog=no/" \
-i /etc/systemd/journald.conf
# When rotating logs, systemd kills journald too soon sometimes
# See https://github.com/systemd/systemd/issues/1353 (this is upstream default)
sed -e "s/^WatchdogSec=.*$/WatchdogSec=3min/" \
-i /lib/systemd/system/systemd-journald.service
# Give user access to system logs
usermod -a -G systemd-journal ${USER}
mkdir -p /var/log/journal # in some images, this directory is not created making system log to /run/systemd instead
chown root:systemd-journal /var/log/journal
systemctl daemon-reload
systemctl restart systemd-journald
setfacl -n -m u:${USER}:r /var/log/journal/*/system.journal
echo "==> Creating config directory"
rm -rf "${CONFIG_DIR}" && mkdir "${CONFIG_DIR}"
echo "==> Setting up unbound"
# DO uses Google nameservers by default. This causes RBL queries to fail (host 2.0.0.127.zen.spamhaus.org)
# We do not use dnsmasq because it is not a recursive resolver and defaults to the value in the interfaces file (which is Google DNS!)
# We listen on 0.0.0.0 because there is no way control ordering of docker (which creates the 172.18.0.0/16) and unbound
echo -e "server:\n\tinterface: 0.0.0.0\n\taccess-control: 127.0.0.1 allow\n\taccess-control: 172.18.0.1/16 allow\n\tcache-max-negative-ttl: 30\n\tcache-max-ttl: 300" > /etc/unbound/unbound.conf.d/cloudron-network.conf
echo "==> Adding systemd services"
cp -r "${script_dir}/start/systemd/." /etc/systemd/system/
systemctl daemon-reload
systemctl enable unbound
systemctl enable cloudron.target
systemctl enable cloudron-firewall
# update firewall rules
systemctl restart cloudron-firewall
# For logrotate
systemctl enable --now cron
# ensure unbound runs
systemctl restart unbound
echo "==> Configuring sudoers"
rm -f /etc/sudoers.d/${USER}
cp "${script_dir}/start/sudoers" /etc/sudoers.d/${USER}
echo "==> Configuring collectd"
rm -rf /etc/collectd
ln -sfF "${PLATFORM_DATA_DIR}/collectd" /etc/collectd
cp "${script_dir}/start/collectd/collectd.conf" "${PLATFORM_DATA_DIR}/collectd/collectd.conf"
systemctl restart collectd
echo "==> Configuring logrotate"
if ! grep -q "^include ${PLATFORM_DATA_DIR}/logrotate.d" /etc/logrotate.conf; then
echo -e "\ninclude ${PLATFORM_DATA_DIR}/logrotate.d\n" >> /etc/logrotate.conf
fi
echo "==> Adding motd message for admins"
cp "${script_dir}/start/cloudron-motd" /etc/update-motd.d/92-cloudron
echo "==> Configuring nginx"
# link nginx config to system config
unlink /etc/nginx 2>/dev/null || rm -rf /etc/nginx
ln -s "${PLATFORM_DATA_DIR}/nginx" /etc/nginx
mkdir -p "${PLATFORM_DATA_DIR}/nginx/applications"
mkdir -p "${PLATFORM_DATA_DIR}/nginx/cert"
cp "${script_dir}/start/nginx/nginx.conf" "${PLATFORM_DATA_DIR}/nginx/nginx.conf"
cp "${script_dir}/start/nginx/mime.types" "${PLATFORM_DATA_DIR}/nginx/mime.types"
if ! grep -q "^Restart=" /etc/systemd/system/multi-user.target.wants/nginx.service; then
# default nginx service file does not restart on crash
echo -e "\n[Service]\nRestart=always\n" >> /etc/systemd/system/multi-user.target.wants/nginx.service
systemctl daemon-reload
fi
systemctl start nginx
# bookkeep the version as part of data
echo "{ \"version\": \"${arg_version}\", \"apiServerOrigin\": \"${arg_api_server_origin}\" }" > "${BOX_DATA_DIR}/version"
# restart mysql to make sure it has latest config
if [[ ! -f /etc/mysql/mysql.cnf ]] || ! diff -q "${script_dir}/start/mysql.cnf" /etc/mysql/mysql.cnf >/dev/null; then
# wait for all running mysql jobs
cp "${script_dir}/start/mysql.cnf" /etc/mysql/mysql.cnf
while true; do
if ! systemctl list-jobs | grep mysql; then break; fi
echo "Waiting for mysql jobs..."
sleep 1
done
systemctl restart mysql
else
systemctl start mysql
fi
readonly mysql_root_password="password"
mysqladmin -u root -ppassword password password # reset default root password
mysql -u root -p${mysql_root_password} -e 'CREATE DATABASE IF NOT EXISTS box'
if [[ -n "${arg_restore_url}" ]]; then
set_progress "30" "Downloading restore data"
decrypt=""
if [[ "${arg_restore_url}" == *.tar.gz.enc || -n "${arg_restore_key}" ]]; then
echo "==> Downloading encrypted backup: ${arg_restore_url} and key: ${arg_restore_key}"
decrypt=(openssl aes-256-cbc -d -nosalt -pass "pass:${arg_restore_key}")
else
echo "==> Downloading backup: ${arg_restore_url}"
decrypt=(cat -)
fi
while true; do
if $curl -L "${arg_restore_url}" | "${decrypt[@]}" \
| tar -zxf - --overwrite --transform="s,^box/\?,boxdata/," --transform="s,^mail/\?,platformdata/mail/," --show-transformed-names -C "${HOME_DIR}"; then break; fi
echo "Failed to download data, trying again"
done
set_progress "35" "Setting up MySQL"
if [[ -f "${BOX_DATA_DIR}/box.mysqldump" ]]; then
echo "==> Importing existing database into MySQL"
mysql -u root -p${mysql_root_password} box < "${BOX_DATA_DIR}/box.mysqldump"
fi
fi
set_progress "40" "Migrating data"
sudo -u "${USER}" -H bash <<EOF
set -eu
cd "${BOX_SRC_DIR}"
BOX_ENV=cloudron DATABASE_URL=mysql://root:${mysql_root_password}@localhost/box "${BOX_SRC_DIR}/node_modules/.bin/db-migrate" up
EOF
echo "==> Creating cloudron.conf"
cat > "${CONFIG_DIR}/cloudron.conf" <<CONF_END
{
"version": "${arg_version}",
"token": "${arg_token}",
"apiServerOrigin": "${arg_api_server_origin}",
"webServerOrigin": "${arg_web_server_origin}",
"fqdn": "${arg_fqdn}",
"zoneName": "${arg_zone_name}",
"isCustomDomain": ${arg_is_custom_domain},
"provider": "${arg_provider}",
"isDemo": ${arg_is_demo},
"database": {
"hostname": "localhost",
"username": "root",
"password": "${mysql_root_password}",
"port": 3306,
"name": "box"
},
"appBundle": ${arg_app_bundle}
}
CONF_END
# pass these out-of-band because they have new lines which interfere with json
if [[ -n "${arg_tls_cert}" && -n "${arg_tls_key}" ]]; then
echo "${arg_tls_cert}" > "${CONFIG_DIR}/host.cert"
echo "${arg_tls_key}" > "${CONFIG_DIR}/host.key"
fi
echo "==> Creating config.json for webadmin"
cat > "${BOX_SRC_DIR}/webadmin/dist/config.json" <<CONF_END
{
"webServerOrigin": "${arg_web_server_origin}"
}
CONF_END
echo "==> Changing ownership"
chown "${USER}:${USER}" -R "${CONFIG_DIR}"
chown "${USER}:${USER}" -R "${PLATFORM_DATA_DIR}/nginx" "${PLATFORM_DATA_DIR}/collectd" "${PLATFORM_DATA_DIR}/logrotate.d" "${PLATFORM_DATA_DIR}/addons" "${PLATFORM_DATA_DIR}/acme"
chown "${USER}:${USER}" -R "${BOX_DATA_DIR}"
chown "${USER}:${USER}" -R "${PLATFORM_DATA_DIR}/mail/dkim" # this is owned by box currently since it generates the keys
chown "${USER}:${USER}" "${PLATFORM_DATA_DIR}/INFRA_VERSION" 2>/dev/null || true
chown "${USER}:${USER}" "${PLATFORM_DATA_DIR}"
echo "==> Adding automated configs"
if [[ ! -z "${arg_backup_config}" ]]; then
mysql -u root -p${mysql_root_password} \
-e "REPLACE INTO settings (name, value) VALUES (\"backup_config\", '$arg_backup_config')" box
fi
if [[ ! -z "${arg_dns_config}" ]]; then
mysql -u root -p${mysql_root_password} \
-e "REPLACE INTO settings (name, value) VALUES (\"dns_config\", '$arg_dns_config')" box
fi
if [[ ! -z "${arg_update_config}" ]]; then
mysql -u root -p${mysql_root_password} \
-e "REPLACE INTO settings (name, value) VALUES (\"update_config\", '$arg_update_config')" box
fi
if [[ ! -z "${arg_tls_config}" ]]; then
mysql -u root -p${mysql_root_password} \
-e "REPLACE INTO settings (name, value) VALUES (\"tls_config\", '$arg_tls_config')" box
fi
echo "==> Generating dhparams (takes forever)"
if [[ ! -f "${BOX_DATA_DIR}/dhparams.pem" ]]; then
openssl dhparam -out "${BOX_DATA_DIR}/dhparams.pem" 2048
fi
set_progress "60" "Starting Cloudron"
systemctl start cloudron.target
sleep 2 # give systemd sometime to start the processes
set_progress "90" "Almost done"
-75
View File
@@ -1,75 +0,0 @@
#!/bin/bash
set -eu -o pipefail
echo "==> Setting up firewall"
iptables -t filter -N CLOUDRON || true
iptables -t filter -F CLOUDRON # empty any existing rules
# NOTE: keep these in sync with src/apps.js validatePortBindings
# allow ssh, http, https, ping, dns
iptables -t filter -I CLOUDRON -m state --state RELATED,ESTABLISHED -j ACCEPT
# caas has ssh on port 202
iptables -A CLOUDRON -p tcp -m tcp -m multiport --dports 22,25,80,202,443,587,993,4190 -j ACCEPT
iptables -t filter -A CLOUDRON -p icmp --icmp-type echo-request -j ACCEPT
iptables -t filter -A CLOUDRON -p icmp --icmp-type echo-reply -j ACCEPT
iptables -t filter -A CLOUDRON -p udp --sport 53 -j ACCEPT
iptables -t filter -A CLOUDRON -s 172.18.0.0/16 -j ACCEPT # required to accept any connections from apps to our IP:<public port>
iptables -t filter -A CLOUDRON -i lo -j ACCEPT # required for localhost connections (mysql)
# log dropped incoming. keep this at the end of all the rules
iptables -t filter -A CLOUDRON -m limit --limit 2/min -j LOG --log-prefix "IPTables Packet Dropped: " --log-level 7
iptables -t filter -A CLOUDRON -j DROP
if ! iptables -t filter -C INPUT -j CLOUDRON 2>/dev/null; then
iptables -t filter -I INPUT -j CLOUDRON
fi
# Setup rate limit chain (the recent info is at /proc/net/xt_recent)
iptables -t filter -N CLOUDRON_RATELIMIT || true
iptables -t filter -F CLOUDRON_RATELIMIT # empty any existing rules
# log dropped incoming. keep this at the end of all the rules
iptables -t filter -N CLOUDRON_RATELIMIT_LOG || true
iptables -t filter -F CLOUDRON_RATELIMIT_LOG # empty any existing rules
iptables -t filter -A CLOUDRON_RATELIMIT_LOG -m limit --limit 2/min -j LOG --log-prefix "IPTables RateLimit: " --log-level 7
iptables -t filter -A CLOUDRON_RATELIMIT_LOG -j DROP
# http https
for port in 80 443; do
iptables -A CLOUDRON_RATELIMIT -p tcp --syn --dport ${port} -m connlimit --connlimit-above 5000 -j CLOUDRON_RATELIMIT_LOG
done
# ssh smtp ssh msa imap sieve
for port in 22 202; do
iptables -A CLOUDRON_RATELIMIT -p tcp --dport ${port} -m state --state NEW -m recent --set --name "public-${port}"
iptables -A CLOUDRON_RATELIMIT -p tcp --dport ${port} -m state --state NEW -m recent --update --name "public-${port}" --seconds 10 --hitcount 5 -j CLOUDRON_RATELIMIT_LOG
done
# TODO: move docker platform rules to platform.js so it can be specialized to rate limit only when destination is the mail container
# docker translates (dnat) 25, 587, 993, 4190 in the PREROUTING step
for port in 2525 4190 9993; do
iptables -A CLOUDRON_RATELIMIT -p tcp --syn ! -s 172.18.0.0/16 -d 172.18.0.0/16 --dport ${port} -m connlimit --connlimit-above 50 -j CLOUDRON_RATELIMIT_LOG
done
# msa, ldap, imap, sieve
for port in 2525 3002 4190 9993; do
iptables -A CLOUDRON_RATELIMIT -p tcp --syn -s 172.18.0.0/16 -d 172.18.0.0/16 --dport ${port} -m connlimit --connlimit-above 500 -j CLOUDRON_RATELIMIT_LOG
done
# cloudron docker network: mysql postgresql redis mongodb
for port in 3306 5432 6379 27017; do
iptables -A CLOUDRON_RATELIMIT -p tcp --syn -s 172.18.0.0/16 -d 172.18.0.0/16 --dport ${port} -m connlimit --connlimit-above 5000 -j CLOUDRON_RATELIMIT_LOG
done
# For ssh, http, https
if ! iptables -t filter -C INPUT -j CLOUDRON_RATELIMIT 2>/dev/null; then
iptables -t filter -I INPUT 1 -j CLOUDRON_RATELIMIT
fi
# For smtp, imap etc routed via docker/nat
# Workaroud issue where Docker insists on adding itself first in FORWARD table
iptables -D FORWARD -j CLOUDRON_RATELIMIT || true
iptables -I FORWARD 1 -j CLOUDRON_RATELIMIT
-9
View File
@@ -1,9 +0,0 @@
#!/bin/sh
# motd hook to remind admins about updates
printf "\t\t\tNOTE TO CLOUDRON ADMINS\n"
printf "\t\t\t-----------------------\n"
printf "Please do not run apt upgrade manually as it will update packages that\n"
printf "Cloudron relies on and may break your installation. Ubuntu security updates\n"
printf "are automatically installed on this server every night.\n"
printf "\n"
printf "Read more at https://cloudron.io/documentation/security/#os-updates\n"
-43
View File
@@ -1,43 +0,0 @@
#!/bin/bash
set -eu -o pipefail
readonly APPS_SWAP_FILE="/apps.swap"
# all sizes are in mb
readonly physical_memory=$(LC_ALL=C free -m | awk '/Mem:/ { print $2 }')
readonly swap_size=$((${physical_memory} > 4096 ? 4096 : ${physical_memory})) # min(RAM, 4GB) if you change this, fix enoughResourcesAvailable() in client.js
readonly app_count=$((${physical_memory} / 200)) # estimated app count
readonly disk_size_bytes=$(LC_ALL=C df --output=size / | tail -n1)
readonly disk_size=$((${disk_size_bytes}/1024))
readonly system_size=10240 # 10 gigs for system libs, apps images, installer, box code, data and tmp
readonly ext4_reserved=$((disk_size * 5 / 100)) # this can be changes using tune2fs -m percent /dev/vda1
echo "Physical memory: ${physical_memory}"
echo "Estimated app count: ${app_count}"
echo "Disk size: ${disk_size}M"
# Allocate swap for general app usage
readonly current_swap=$(swapon --show="name,size" --noheadings --bytes | awk 'BEGIN{s=0}{s+=$2}END{printf "%.0f", s/1024/1024}')
readonly needed_swap_size=$((swap_size - current_swap))
if [[ ${needed_swap_size} -gt 0 ]]; then
echo "Need more swap of ${needed_swap_size}M"
# compute size of apps.swap ignoring what is already set
without_apps_swap=$(swapon --show="name,size" --noheadings --bytes | awk 'BEGIN{s=0}{if ($1!="/apps.swap") s+=$2}END{printf "%.0f", s/1024/1024}')
apps_swap_size=$((swap_size - without_apps_swap))
echo "Creating Apps swap file of size ${apps_swap_size}M"
if [[ -f "${APPS_SWAP_FILE}" ]]; then
echo "Swapping off before resizing swap"
swapoff "${APPS_SWAP_FILE}" || true
fi
fallocate -l "${apps_swap_size}m" "${APPS_SWAP_FILE}"
chmod 600 "${APPS_SWAP_FILE}"
mkswap "${APPS_SWAP_FILE}"
swapon "${APPS_SWAP_FILE}"
if ! grep -q "${APPS_SWAP_FILE}" /etc/fstab; then
echo "Adding swap to fstab"
echo "${APPS_SWAP_FILE} none swap sw 0 0" >> /etc/fstab
fi
else
echo "Swap requirements already met"
fi
-262
View File
@@ -1,262 +0,0 @@
# Config file for collectd(1).
#
# Some plugins need additional configuration and are disabled by default.
# Please read collectd.conf(5) for details.
#
# You should also read /usr/share/doc/collectd-core/README.Debian.plugins
# before enabling any more plugins.
##############################################################################
# Global #
#----------------------------------------------------------------------------#
# Global settings for the daemon. #
##############################################################################
Hostname "localhost"
#FQDNLookup true
#BaseDir "/var/lib/collectd"
#PluginDir "/usr/lib/collectd"
#TypesDB "/usr/share/collectd/types.db" "/etc/collectd/my_types.db"
#----------------------------------------------------------------------------#
# When enabled, plugins are loaded automatically with the default options #
# when an appropriate <Plugin ...> block is encountered. #
# Disabled by default. #
#----------------------------------------------------------------------------#
#AutoLoadPlugin false
#----------------------------------------------------------------------------#
# Interval at which to query values. This may be overwritten on a per-plugin #
# base by using the 'Interval' option of the LoadPlugin block: #
# <LoadPlugin foo> #
# Interval 60 #
# </LoadPlugin> #
#----------------------------------------------------------------------------#
# IMPORTANT: changing this value requires a change in whisper schema as well
Interval 20
#Timeout 2
#ReadThreads 5
#WriteThreads 5
# Limit the size of the write queue. Default is no limit. Setting up a limit
# is recommended for servers handling a high volume of traffic.
#WriteQueueLimitHigh 1000000
#WriteQueueLimitLow 800000
##############################################################################
# Logging #
#----------------------------------------------------------------------------#
# Plugins which provide logging functions should be loaded first, so log #
# messages generated when loading or configuring other plugins can be #
# accessed. #
##############################################################################
LoadPlugin logfile
#LoadPlugin syslog
<Plugin logfile>
LogLevel "info"
File "/var/log/collectd.log"
Timestamp true
PrintSeverity false
</Plugin>
#<Plugin syslog>
# LogLevel info
#</Plugin>
##############################################################################
# LoadPlugin section #
#----------------------------------------------------------------------------#
# Specify what features to activate. #
##############################################################################
LoadPlugin aggregation
#LoadPlugin amqp
#LoadPlugin apache
#LoadPlugin apcups
#LoadPlugin ascent
#LoadPlugin battery
#LoadPlugin bind
#LoadPlugin cgroups
#LoadPlugin conntrack
#LoadPlugin contextswitch
LoadPlugin cpu
#LoadPlugin cpufreq
#LoadPlugin csv
#LoadPlugin curl
#LoadPlugin curl_json
#LoadPlugin curl_xml
#LoadPlugin dbi
#LoadPlugin df
#LoadPlugin disk
#LoadPlugin dns
#LoadPlugin email
#LoadPlugin entropy
#LoadPlugin ethstat
#LoadPlugin exec
#LoadPlugin filecount
#LoadPlugin fscache
#LoadPlugin gmond
#LoadPlugin hddtemp
LoadPlugin interface
#LoadPlugin ipmi
#LoadPlugin iptables
#LoadPlugin ipvs
#LoadPlugin irq
#LoadPlugin java
#LoadPlugin libvirt
LoadPlugin load
#LoadPlugin lvm
#LoadPlugin madwifi
#LoadPlugin mbmon
#LoadPlugin md
#LoadPlugin memcachec
#LoadPlugin memcached
LoadPlugin memory
#LoadPlugin modbus
#LoadPlugin multimeter
#LoadPlugin mysql
#LoadPlugin netlink
#LoadPlugin network
#LoadPlugin nfs
LoadPlugin nginx
#LoadPlugin notify_desktop
#LoadPlugin notify_email
#LoadPlugin ntpd
#LoadPlugin numa
#LoadPlugin nut
#LoadPlugin olsrd
#LoadPlugin openvpn
#<LoadPlugin perl>
# Globals true
#</LoadPlugin>
#LoadPlugin pinba
#LoadPlugin ping
#LoadPlugin postgresql
#LoadPlugin powerdns
#LoadPlugin processes
#LoadPlugin protocols
<LoadPlugin python>
Globals true
</LoadPlugin>
#LoadPlugin rrdcached
#LoadPlugin rrdtool
#LoadPlugin sensors
#LoadPlugin serial
#LoadPlugin snmp
#LoadPlugin statsd
LoadPlugin swap
#LoadPlugin table
LoadPlugin tail
#LoadPlugin tail_csv
#LoadPlugin tcpconns
#LoadPlugin teamspeak2
#LoadPlugin ted
#LoadPlugin thermal
#LoadPlugin tokyotyrant
#LoadPlugin unixsock
#LoadPlugin uptime
#LoadPlugin users
#LoadPlugin uuid
#LoadPlugin varnish
#LoadPlugin vmem
#LoadPlugin vserver
#LoadPlugin wireless
LoadPlugin write_graphite
#LoadPlugin write_http
#LoadPlugin write_riemann
##############################################################################
# Plugin configuration #
#----------------------------------------------------------------------------#
# In this section configuration stubs for each plugin are provided. A desc- #
# ription of those options is available in the collectd.conf(5) manual page. #
##############################################################################
<Plugin "aggregation">
<Aggregation>
Plugin "cpu"
Type "cpu"
GroupBy "Host"
GroupBy "TypeInstance"
CalculateNum false
CalculateSum true
CalculateAverage true
CalculateMinimum false
CalculateMaximum true
CalculateStddev false
</Aggregation>
</Plugin>
<Plugin interface>
Interface "eth0"
IgnoreSelected false
</Plugin>
<Plugin nginx>
URL "http://127.0.0.1/nginx_status"
</Plugin>
<Plugin swap>
ReportByDevice false
ReportBytes true
</Plugin>
<Plugin "tail">
<File "/var/log/nginx/error.log">
Instance "nginx"
<Match>
Regex ".*"
DSType "CounterInc"
Type counter
Instance "errors"
</Match>
</File>
<File "/var/log/nginx/access.log">
Instance "nginx"
<Match>
Regex ".*"
DSType "CounterInc"
Type counter
Instance "requests"
</Match>
<Match>
Regex " \".*\" [0-9]+ [0-9]+ ([0-9]+)"
DSType GaugeAverage
Type delay
Instance "response"
</Match>
</File>
</Plugin>
<Plugin python>
# https://blog.dbrgn.ch/2017/3/10/write-a-collectd-python-plugin/
ModulePath "/home/yellowtent/box/setup/start/collectd/"
LogTraces false # enable this to get traces in /var/log/collectd.log
Interactive false
Import "df"
# <Module df>
# </Module>
</Plugin>
<Plugin write_graphite>
<Node "graphing">
Host "localhost"
Port "2003"
Protocol "tcp"
LogSendErrors true
Prefix "collectd."
StoreRates true
AlwaysAppendDS false
EscapeCharacter "_"
</Node>
</Plugin>
<Include "/etc/collectd/collectd.conf.d">
Filter "*.conf"
</Include>
-36
View File
@@ -1,36 +0,0 @@
import collectd,os,subprocess
# https://blog.dbrgn.ch/2017/3/10/write-a-collectd-python-plugin/
disks = []
def init():
global disks
lines = [s.split() for s in subprocess.check_output(["df", "--type=ext4", "--output=source,target,size,used,avail"]).splitlines()]
disks = lines[1:] # strip header
collectd.info('custom df plugin initialized with %s' % disks)
def read():
for d in disks:
device = d[0]
if 'devicemapper' in d[1] or not device.startswith('/dev/'): continue
instance = device[len('/dev/'):].replace('/', '_') # see #348
try:
st = os.statvfs(d[1]) # handle disk removal
except:
continue
val = collectd.Values(type='df_complex', plugin='df', plugin_instance=instance)
free = st.f_bavail * st.f_frsize # bavail is for non-root user. bfree is total
val.dispatch(values=[free], type_instance='free')
reserved = (st.f_bfree - st.f_bavail) * st.f_frsize # root took these
val.dispatch(values=[reserved], type_instance='reserved')
used = (st.f_blocks - st.f_bfree) * st.f_frsize
val.dispatch(values=[used], type_instance='used')
collectd.register_init(init)
collectd.register_read(read)
-32
View File
@@ -1,32 +0,0 @@
#include <tunables/global>
profile docker-cloudron-app flags=(attach_disconnected,mediate_deleted) {
#include <abstractions/base>
ptrace peer=@{profile_name},
network,
capability,
file,
umount,
deny @{PROC}/sys/fs/** wklx,
deny @{PROC}/sysrq-trigger rwklx,
deny @{PROC}/mem rwklx,
deny @{PROC}/kmem rwklx,
deny @{PROC}/sys/kernel/[^s][^h][^m]* wklx,
deny @{PROC}/sys/kernel/*/** wklx,
deny mount,
deny /sys/[^f]*/** wklx,
deny /sys/f[^s]*/** wklx,
deny /sys/fs/[^c]*/** wklx,
deny /sys/fs/c[^g]*/** wklx,
deny /sys/fs/cg[^r]*/** wklx,
deny /sys/firmware/efi/efivars/** rwklx,
deny /sys/kernel/security/** rwklx,
}
-26
View File
@@ -1,26 +0,0 @@
!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mysql.conf.d/
# http://bugs.mysql.com/bug.php?id=68514
[mysqld]
performance_schema=OFF
max_connections=50
# on ec2, without this we get a sporadic connection drop when doing the initial migration
max_allowed_packet=32M
# https://mathiasbynens.be/notes/mysql-utf8mb4
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
default-character-set = utf8mb4
[mysql]
default-character-set = utf8mb4
[client]
default-character-set = utf8mb4
-163
View File
@@ -1,163 +0,0 @@
# http://nginx.org/en/docs/http/websocket.html
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
<% if (vhost) { %>
listen 443 http2;
server_name <%= vhost %>;
<% } else { %>
listen 443 http2 default_server;
<% } %>
ssl on;
# paths are relative to prefix and not to this file
ssl_certificate <%= certFilePath %>;
ssl_certificate_key <%= keyFilePath %>;
ssl_session_timeout 5m;
ssl_session_cache shared:SSL:50m;
# https://bettercrypto.org/static/applied-crypto-hardening.pdf
# https://mozilla.github.io/server-side-tls/ssl-config-generator/
# https://cipherli.st/
# https://raymii.org/s/tutorials/Strong_SSL_Security_On_nginx.html
ssl_prefer_server_ciphers on;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # don't use SSLv3 ref: POODLE
# ciphers according to https://weakdh.org/sysadmin.html
ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA';
ssl_dhparam /home/yellowtent/boxdata/dhparams.pem;
add_header Strict-Transport-Security "max-age=15768000";
# https://developer.mozilla.org/en-US/docs/Web/HTTP/X-Frame-Options
add_header X-Frame-Options "<%= xFrameOptions %>";
proxy_hide_header X-Frame-Options;
# https://github.com/twitter/secureheaders
# https://www.owasp.org/index.php/OWASP_Secure_Headers_Project#tab=Compatibility_Matrix
# https://wiki.mozilla.org/Security/Guidelines/Web_Security
add_header X-XSS-Protection "1; mode=block";
proxy_hide_header X-XSS-Protection;
add_header X-Download-Options "noopen";
proxy_hide_header X-Download-Options;
add_header X-Content-Type-Options "nosniff";
proxy_hide_header X-Content-Type-Options;
add_header X-Permitted-Cross-Domain-Policies "none";
proxy_hide_header X-Permitted-Cross-Domain-Policies;
add_header Referrer-Policy "no-referrer-when-downgrade";
proxy_hide_header Referrer-Policy;
proxy_http_version 1.1;
proxy_intercept_errors on;
proxy_read_timeout 3500;
proxy_connect_timeout 3250;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-Ssl on;
# upgrade is a hop-by-hop header (http://nginx.org/en/docs/http/websocket.html)
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
# only serve up the status page if we get proxy gateway errors
root <%= sourceDir %>/webadmin/dist;
error_page 502 503 504 /appstatus.html;
location /appstatus.html {
internal;
}
location / {
# increase the proxy buffer sizes to not run into buffer issues (http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_buffers)
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
# No buffering to temp files, it fails for large downloads
proxy_max_temp_file_size 0;
# Disable check to allow unlimited body sizes. this allows apps to accept whatever size they want
client_max_body_size 0;
<% if (robotsTxtQuoted) { %>
location = /robots.txt {
return 200 <%- robotsTxtQuoted %>;
}
<% } %>
<% if ( endpoint === 'admin' ) { %>
location /api/ {
proxy_pass http://127.0.0.1:3000;
client_max_body_size 1m;
}
location ~ ^/api/v1/(developer|session)/login$ {
proxy_pass http://127.0.0.1:3000;
client_max_body_size 1m;
limit_req zone=admin_login burst=5;
}
# the read timeout is between successive reads and not the whole connection
location ~ ^/api/v1/apps/.*/exec$ {
proxy_pass http://127.0.0.1:3000;
proxy_read_timeout 30m;
}
location ~ ^/api/v1/apps/.*/upload$ {
proxy_pass http://127.0.0.1:3000;
client_max_body_size 0;
}
# graphite paths (uncomment block below and visit /graphite/index.html)
# location ~ ^/(graphite|content|metrics|dashboard|render|browser|composer)/ {
# proxy_pass http://127.0.0.1:8000;
# client_max_body_size 1m;
# }
location / {
root <%= sourceDir %>/webadmin/dist;
index index.html index.htm;
}
<% } else if ( endpoint === 'app' ) { %>
proxy_pass http://127.0.0.1:<%= port %>;
<% } else if ( endpoint === 'splash' ) { %>
root <%= sourceDir %>;
error_page 503 /update.html;
location /update.html {
add_header Cache-Control no-cache;
}
location /theme.css {
add_header Cache-Control no-cache;
}
location /3rdparty/ {
add_header Cache-Control no-cache;
}
location /js/ {
add_header Cache-Control no-cache;
}
location /progress.json {
add_header Cache-Control no-cache;
}
location /api/v1/cloudron/progress {
add_header Cache-Control no-cache;
default_type application/json;
alias <%= sourceDir %>/progress.json;
}
location / {
return 503;
}
<% } %>
}
}
-80
View File
@@ -1,80 +0,0 @@
types {
text/html html htm shtml;
text/css css;
text/xml xml;
image/gif gif;
image/jpeg jpeg jpg;
application/x-javascript js;
application/atom+xml atom;
application/rss+xml rss;
text/mathml mml;
text/plain txt;
text/vnd.sun.j2me.app-descriptor jad;
text/vnd.wap.wml wml;
text/x-component htc;
image/png png;
image/tiff tif tiff;
image/vnd.wap.wbmp wbmp;
image/x-icon ico;
image/x-jng jng;
image/x-ms-bmp bmp;
image/svg+xml svg svgz;
image/webp webp;
application/java-archive jar war ear;
application/mac-binhex40 hqx;
application/msword doc;
application/pdf pdf;
application/postscript ps eps ai;
application/rtf rtf;
application/vnd.ms-excel xls;
application/vnd.ms-powerpoint ppt;
application/vnd.wap.wmlc wmlc;
application/vnd.google-earth.kml+xml kml;
application/vnd.google-earth.kmz kmz;
application/x-7z-compressed 7z;
application/x-cocoa cco;
application/x-java-archive-diff jardiff;
application/x-java-jnlp-file jnlp;
application/x-makeself run;
application/x-perl pl pm;
application/x-pilot prc pdb;
application/x-rar-compressed rar;
application/x-redhat-package-manager rpm;
application/x-sea sea;
application/x-shockwave-flash swf;
application/x-stuffit sit;
application/x-tcl tcl tk;
application/x-x509-ca-cert der pem crt;
application/x-xpinstall xpi;
application/xhtml+xml xhtml;
application/zip zip;
application/octet-stream bin exe dll;
application/octet-stream deb;
application/octet-stream dmg;
application/octet-stream eot;
application/octet-stream iso img;
application/octet-stream msi msp msm;
audio/midi mid midi kar;
audio/mpeg mp3;
audio/ogg ogg;
audio/x-m4a m4a;
audio/x-realaudio ra;
video/3gpp 3gpp 3gp;
video/mp4 mp4;
video/mpeg mpeg mpg;
video/quicktime mov;
video/webm webm;
video/x-flv flv;
video/x-m4v m4v;
video/x-mng mng;
video/x-ms-asf asx asf;
video/x-ms-wmv wmv;
video/x-msvideo avi;
}
-64
View File
@@ -1,64 +0,0 @@
user www-data;
worker_processes 1;
pid /run/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
# the collectd config depends on this log format
log_format combined2 '$remote_addr - [$time_local] '
'"$request" $status $body_bytes_sent $request_time '
'"$http_referer" "$host" "$http_user_agent"';
# required for long host names
server_names_hash_bucket_size 128;
access_log /var/log/nginx/access.log combined2;
sendfile on;
# timeout for client to finish sending headers
client_header_timeout 30s;
# timeout for reading client request body (successive read timeout and not whole body!)
client_body_timeout 60s;
# keep-alive connections timeout in 65s. this is because many browsers timeout in 60 seconds
keepalive_timeout 65s;
# zones for rate limiting
limit_req_zone $binary_remote_addr zone=admin_login:10m rate=10r/s; # 10 request a second
# HTTP server
server {
listen 80;
# collectd
location /nginx_status {
stub_status on;
access_log off;
allow 127.0.0.1;
deny all;
}
# acme challenges
location /.well-known/acme-challenge/ {
default_type text/plain;
alias /home/yellowtent/platformdata/acme/;
}
location / {
# redirect everything to HTTPS
return 301 https://$host$request_uri;
}
}
include applications/*.conf;
}
-38
View File
@@ -1,38 +0,0 @@
# sudo logging breaks journalctl output with very long urls (systemd bug)
Defaults !syslog
Defaults!/home/yellowtent/box/src/scripts/createappdir.sh env_keep="HOME BOX_ENV"
yellowtent ALL=(root) NOPASSWD: /home/yellowtent/box/src/scripts/createappdir.sh
Defaults!/home/yellowtent/box/src/scripts/rmappdir.sh env_keep="HOME BOX_ENV"
yellowtent ALL=(root) NOPASSWD: /home/yellowtent/box/src/scripts/rmappdir.sh
Defaults!/home/yellowtent/box/src/scripts/reloadnginx.sh env_keep="HOME BOX_ENV"
yellowtent ALL=(root) NOPASSWD: /home/yellowtent/box/src/scripts/reloadnginx.sh
Defaults!/home/yellowtent/box/src/scripts/reboot.sh env_keep="HOME BOX_ENV"
yellowtent ALL=(root) NOPASSWD: /home/yellowtent/box/src/scripts/reboot.sh
Defaults!/home/yellowtent/box/src/scripts/reloadcollectd.sh env_keep="HOME BOX_ENV"
yellowtent ALL=(root) NOPASSWD: /home/yellowtent/box/src/scripts/reloadcollectd.sh
Defaults!/home/yellowtent/box/src/scripts/collectlogs.sh env_keep="HOME BOX_ENV"
yellowtent ALL=(root) NOPASSWD: /home/yellowtent/box/src/scripts/collectlogs.sh
Defaults!/home/yellowtent/box/src/scripts/retire.sh env_keep="HOME BOX_ENV"
yellowtent ALL=(root) NOPASSWD: /home/yellowtent/box/src/scripts/retire.sh
Defaults!/home/yellowtent/box/src/scripts/update.sh env_keep="HOME BOX_ENV"
yellowtent ALL=(root) NOPASSWD: /home/yellowtent/box/src/scripts/update.sh
Defaults!/home/yellowtent/box/src/scripts/authorized_keys.sh env_keep="HOME BOX_ENV"
yellowtent ALL=(root) NOPASSWD: /home/yellowtent/box/src/scripts/authorized_keys.sh
Defaults!/home/yellowtent/box/src/scripts/node.sh env_keep="HOME BOX_ENV NODE_ENV"
yellowtent ALL=(root) NOPASSWD: /home/yellowtent/box/src/scripts/node.sh
Defaults!/home/yellowtent/box/src/scripts/mvlogrotateconfig.sh env_keep="HOME BOX_ENV"
yellowtent ALL=(root) NOPASSWD: /home/yellowtent/box/src/scripts/mvlogrotateconfig.sh
Defaults!/home/yellowtent/box/src/scripts/rmlogrotateconfig.sh env_keep="HOME BOX_ENV"
yellowtent ALL=(root) NOPASSWD: /home/yellowtent/box/src/scripts/rmlogrotateconfig.sh

Some files were not shown because too many files have changed in this diff Show More