Girish Ramakrishnan
65210ea91d
rework dns api to take domainObject
...
the DNS backends require many different params, it's just easier to
pass them all together and have backends do whatever.
For example, route53 API requires the fqdn. Some other backends require just the
"part" to insert.
* location - location in the database (where app is installed)
* zoneName - the dns zone name
* domain - domain in the database (where apps are installed into)
* name/getName() - this returns the name to insert in the DNS based on zoneName/location
* fqdn - the fully resolved location in zoneName
verifyDnsConfig also takes a domain object even if it's not in db just so that we can
test even existing domain objects, if required. The IP param is removed since it's not
required.
for caas, we also don't need the fqdn hack in dnsConfig anymore
2019-01-04 22:38:12 -08:00
Girish Ramakrishnan
16c1622b1f
Make domains.fqdn take config and domain separately
...
This way it can be used in the dns backends which don't have the domain object
2019-01-04 14:11:29 -08:00
Girish Ramakrishnan
635557ca45
Fix failing tests
2019-01-04 10:56:56 -08:00
Johannes Zellner
b9daa62ece
Add notification tests for business logic
2019-01-04 17:13:52 +01:00
Girish Ramakrishnan
808be96de3
gpg is not installed on gandi
2019-01-03 12:28:30 -08:00
Girish Ramakrishnan
1e93289f23
cloudflare: preserve proxied parameter
2019-01-03 10:42:09 -08:00
Girish Ramakrishnan
ccf0f84598
cloudflare: getDnsRecordsByZoneId -> getDnsRecords
...
This misleading name creates much confusion
2019-01-03 10:39:10 -08:00
Girish Ramakrishnan
3ec4c7501d
cloudflare: rename confusing callback param
2019-01-03 10:39:10 -08:00
Girish Ramakrishnan
f55034906c
Set oldConfig.fqdn
...
Without this, the re-configure task unregisters the domain since
it thinks the domain has changed
2019-01-03 10:08:55 -08:00
Girish Ramakrishnan
cbd3c60c5d
Use a relay token for no-reply emails
2018-12-28 13:32:59 -08:00
Girish Ramakrishnan
2037fec878
new mail container does not require default domain
2018-12-28 12:12:34 -08:00
Girish Ramakrishnan
772fd1b563
Add cloudron-support to path
2018-12-26 19:42:45 -08:00
Girish Ramakrishnan
d9309cb215
Use a separate event for tarExtract
2018-12-22 21:23:20 -08:00
Girish Ramakrishnan
433c34e4ce
better debugs
2018-12-22 21:23:17 -08:00
Girish Ramakrishnan
68a4769f1e
Fix typo
2018-12-22 19:53:50 -08:00
Girish Ramakrishnan
248569d0a8
awscli is unused
2018-12-21 12:41:43 -08:00
Girish Ramakrishnan
5146e39023
contabo: fix DNS
...
we disable the DNS servers in initializeBaseImage. On normal VPS,
unbound seems to start by itself but on contabo it doesn't because
the default unbound config on ubuntu does not work without ip6
2018-12-21 11:44:39 -08:00
Girish Ramakrishnan
ecd1d69863
install software-properties-common
...
on contabo,
root@vmi232343:~# add-apt-repository
Command 'add-apt-repository' not found, but can be installed with:
apt install software-properties-common
2018-12-21 11:28:21 -08:00
Girish Ramakrishnan
06219b0c58
add contabo
2018-12-21 11:09:20 -08:00
Girish Ramakrishnan
0a74bd1718
add note on saveFsMetadata
2018-12-20 15:11:15 -08:00
Girish Ramakrishnan
8a5b24afff
Make tarPack and tarExtract have consistent style
2018-12-20 11:49:37 -08:00
Girish Ramakrishnan
6bdd7f7a57
Give more memory to the control group
...
this allows backups to take more memory as part of the systemd group.
the node box code itself runs under little more constraints using
--max_old_space_size=150
2018-12-20 10:44:42 -08:00
Girish Ramakrishnan
1bb2552384
move feedback test
2018-12-19 14:32:54 -08:00
Girish Ramakrishnan
b5b20452cc
Fix reverseProxy.getCertificate API
2018-12-19 14:20:48 -08:00
Girish Ramakrishnan
4a34703cd3
rework code to enable/disable remote support
...
we had a generic ssh key management api. this was causing issues because
the ssh format is more complicated than what we had implemented. currently,
the only use case we have is to add our ssh key.
Fixes #600
2018-12-19 13:35:20 -08:00
Girish Ramakrishnan
a8d9b57c47
remove unused tar.js
2018-12-19 11:58:08 -08:00
Girish Ramakrishnan
52bbf3be21
move support to separate file
2018-12-19 10:54:33 -08:00
Girish Ramakrishnan
3bde0666e2
volume -> app data directory
...
the appdata directory is just a place to "hold" various parts
of an app together for backup purposes
2018-12-18 21:16:25 -08:00
Girish Ramakrishnan
b5374a1f90
3.5 changes
2018-12-18 15:33:36 -08:00
Girish Ramakrishnan
18b8d23148
Add progress percent for prepareDashboardDomain
2018-12-18 15:26:37 -08:00
Girish Ramakrishnan
f51b1e1b6b
installationProgress must contain the percent
2018-12-17 15:42:40 -08:00
Johannes Zellner
ffc4f9d930
Fix typo
2018-12-17 17:40:53 +01:00
Johannes Zellner
5680fc839b
Send new user notification via notifications api
2018-12-17 17:35:19 +01:00
Johannes Zellner
57d435ccf4
Add basic notification rest api
2018-12-17 16:37:19 +01:00
Johannes Zellner
4b90b8e6d8
Add notificationdb tests
2018-12-17 15:53:00 +01:00
Johannes Zellner
fc8dcec2bb
Add notificationdb table and db wrapper
2018-12-17 15:52:52 +01:00
Girish Ramakrishnan
a5245fda65
3.4.3 changes
...
(cherry picked from commit fd723cf7eb )
2018-12-16 21:08:07 -08:00
Girish Ramakrishnan
4eec2a6414
Add LDAP_MAILBOXES_BASE_DN
...
this got removed by mistake in the email refactor assuming this
was unused (but it is used by sogo)
(cherry picked from commit 6589ba0988 )
2018-12-16 21:06:52 -08:00
Girish Ramakrishnan
a536e9fc4b
track last oom time using a global variable
...
because it was a local variable, we were just sending out oom mails
like crazy
also, fixes an issue that if docker.getEvents gets stuck because
docker does not respond then we do not do any health monitoring.
i guess this can happen if the docker API gets stuck.
2018-12-16 20:52:42 -08:00
Girish Ramakrishnan
a961407379
Fix setup and restore to have a task style API
2018-12-16 11:02:49 -08:00
Girish Ramakrishnan
1fd6c363ba
3.4.2 changes
...
(cherry picked from commit 2d7f0c3ebe )
2018-12-15 09:35:35 -08:00
Girish Ramakrishnan
0a7f1faad1
Better progress message
2018-12-14 23:20:32 -08:00
Girish Ramakrishnan
e79d963802
do not append to task log file
2018-12-14 22:22:57 -08:00
Girish Ramakrishnan
1b4bbacd5f
3.4.1 changes
...
(cherry picked from commit a66bc7192d )
2018-12-14 22:22:47 -08:00
Girish Ramakrishnan
447c6fbb5f
cloudron.conf has to writable
2018-12-14 16:32:51 -08:00
Girish Ramakrishnan
78acaccd89
wording
2018-12-14 16:32:51 -08:00
Girish Ramakrishnan
bdf9671280
Split dashboard dns setup and db operations
...
The dns setup is now a task that we can wait on. Once that task
is done, we can do db operations to switch the domain in a separate
route
2018-12-14 09:57:28 -08:00
Girish Ramakrishnan
357e44284d
Write nginx config into my.<domain>.conf
...
This way we can switch the domain as an independent task that does
not affect the existing admin conf
2018-12-14 09:20:10 -08:00
Girish Ramakrishnan
9dced3f596
Add domains.setupAdminDnsRecord
2018-12-14 09:20:10 -08:00
Girish Ramakrishnan
63e3560dd7
on startup, only re-generate the admin config
...
should not try to get certificates on startup
2018-12-14 09:20:06 -08:00