Girish Ramakrishnan
6fbbf0ad61
Use curl with options
2016-12-28 09:49:04 -08:00
Girish Ramakrishnan
61789e3fda
Use the installer.sh from the source tarball
...
This redesigns how update works. installer.sh now rebuild the package,
stops the old code and starts the new code. Importantly, it does not
download the new package, this is left to the caller. cloudron-setup
downloads the code and calls installer.sh of the downloaded code.
Same goes for updater.sh. This means that installer.sh itself is now
easily updatable.
Part of #152
2016-12-28 08:59:07 -08:00
Girish Ramakrishnan
fae0ba5678
Decouple installer from the base image script
...
This means that the base image does not have the installer anymore
and needs to be copied over.
Part of #152
2016-12-28 08:58:10 -08:00
Girish Ramakrishnan
691f6c7c5c
Use docker 1.12.5
...
Docker uses an embedded DNS server (127.0.0.11) for user defined networks (UDN).
With the latest releases of docker, specifying 127.0.0.1 as --dns makes the
containers resolve 127.0.0.1 _inside_ the container's networking namespace
(not sure how it worked before this).
The next idea was to only specify --dns-search=. but this does not work.
This makes docker setup the containers to use 127.0.0.1 (or 127.0.0.11 for UDN).
In my mind, the UDN case should work but doesn't (not sure why).
So, the solution is to simply go with no --dns or --dns-search. Sadly,
setting dns-search just at container level does not work either :/ Strangely,
docker run --network=cloudron --dns-search=. appimage # does not work
docker run --network=cloudron appimage # works if you manually remove search from /etc/resolv.conf
So clearly, something inside docker triggers when one of the dns* options is set.
This means that #130 has to be fixed at app level (For Go, this means to use the cgo resolver).
2016-12-28 08:57:48 -08:00
Girish Ramakrishnan
f07e6b29a3
Check for manual DNS provider
2016-12-21 15:10:56 -08:00
Girish Ramakrishnan
ca8b61caba
Allow backup encryption key to be set
2016-12-19 12:41:35 -08:00
Girish Ramakrishnan
22ae39323b
use Math.floor instead of parseInt
2016-12-19 11:56:35 -08:00
Johannes Zellner
420a57aef9
Randomize appstore requests for updates and alive status
...
Fixes #137
2016-12-19 16:55:39 +01:00
Johannes Zellner
33e87c7ffa
Add analytics pixel tracking in html mails
...
This is currently hardcoded to our piwik instance including the website
id
2016-12-16 13:11:13 +01:00
Girish Ramakrishnan
cf98d2a9d5
Remove ip from config
...
This is unused. But more importantly, it causes the cloudron to
internal error and the whole UI goes down just because we cannot
detect the IP via the generic sysinfo provider.
2016-12-15 12:15:06 -08:00
Girish Ramakrishnan
ec75b14d9e
Set timeout for dns queries
2016-12-15 12:00:51 -08:00
Johannes Zellner
4bad31f7cc
Skip mailbox update if name has not changed
2016-12-15 16:57:29 +01:00
Johannes Zellner
288baa7e94
Rename mailbox when location changes
...
Fixes #118
2016-12-15 16:57:29 +01:00
Johannes Zellner
d1161b3ff8
Add mailboxdb.updateName()
2016-12-15 16:57:29 +01:00
Johannes Zellner
27e5886a0b
Add tests for mail dns records
2016-12-15 16:57:29 +01:00
Johannes Zellner
eaebf9fd73
Fix typo when comparing dkim values
2016-12-15 16:57:29 +01:00
Johannes Zellner
66a4abeb50
Ensure txtRecords is a valid array
...
The dns api will respond with undefined if no records are found
Mostly related to https://github.com/tjfontaine/node-dns/issues/95
2016-12-15 16:57:29 +01:00
Johannes Zellner
e7fc40cfdd
Minor code style changes
2016-12-15 16:57:29 +01:00
Johannes Zellner
55d306c938
we use single quotes
2016-12-15 16:57:29 +01:00
Johannes Zellner
8fe1f2fef1
Rename email dns records route
2016-12-15 16:57:29 +01:00
Dennis Schwerdel
1065b56380
Check dns records for generic dns providers
2016-12-15 16:57:29 +01:00
Girish Ramakrishnan
54a388af5e
Add debug
2016-12-15 07:30:38 -08:00
Girish Ramakrishnan
5dda872917
Add note about the log message
2016-12-14 19:21:43 -08:00
Girish Ramakrishnan
c759a1c3f6
Fix test
2016-12-14 15:04:14 -08:00
Girish Ramakrishnan
855de8565e
Allow setting manual dns provider in api
2016-12-14 14:58:08 -08:00
Girish Ramakrishnan
f1ad003b41
Switch dns backend default to manual
...
Existing cloudrons should be OK because there is no entry in the db
by default for dnsConfig.
2016-12-14 14:56:48 -08:00
Girish Ramakrishnan
f6507ecbe3
noop dns backend does not wait for dns anymore
2016-12-14 14:56:03 -08:00
Girish Ramakrishnan
79083925d1
Add manual dns backend
...
The manual differs from noop in that it will perform the
wait for dns check.
2016-12-14 14:54:14 -08:00
Girish Ramakrishnan
de1c677e75
Simply get admin cert after waiting for dns
...
Removes some specialized code that was in installAdminCertificate.
2016-12-14 14:52:42 -08:00
Girish Ramakrishnan
3ede9af34b
remove subdomains.status
2016-12-14 14:47:03 -08:00
Girish Ramakrishnan
d475d9bcbf
Make waitForDns provider specific
...
This will allow us to create a proper 'noop' backend that does
not wait for dns to be in sync. This is required for local/intranet
setups.
2016-12-14 14:43:20 -08:00
Girish Ramakrishnan
bf095f0698
Skip admin cert installation with fallback tls provider
2016-12-13 18:58:07 -08:00
Girish Ramakrishnan
5ed4d66dfe
Make apps test pass
2016-12-13 11:31:14 -08:00
Girish Ramakrishnan
29aad624d5
Remove redundant fallback
2016-12-13 10:18:16 -08:00
Johannes Zellner
2bf8584f30
Do not take the addon object, but the boolean
2016-12-12 17:29:42 +01:00
Johannes Zellner
b6e96d77aa
Thanks shell
2016-12-12 14:59:30 +01:00
Johannes Zellner
6e1751d0ed
Set empty endpoint url for caas storage backend
...
Caas storage backend also uses the s3 code branches
2016-12-12 14:00:07 +01:00
Johannes Zellner
b2dbb5a100
Fixup bugs with updated backup scripts
2016-12-12 09:51:52 +01:00
Johannes Zellner
816911d071
Make s3 backup scripts aware of endpoints
...
Part of #123
2016-12-12 09:51:52 +01:00
Girish Ramakrishnan
2cf0d6db9d
customAuth is obsolete
2016-12-09 18:43:26 -08:00
Johannes Zellner
74c89cf7d4
Do not print out error if app nginx file does not exist
2016-12-07 13:20:37 +01:00
Johannes Zellner
7d93cfaac1
Add missing return
...
Fixes #128
2016-12-06 17:26:56 +01:00
Johannes Zellner
b1be65d9ce
Add fallback certificate backend
2016-12-05 17:01:23 +01:00
Johannes Zellner
eacc4412ba
We don't use tabs but 4 spaces
2016-12-05 16:07:06 +01:00
Johannes
ebd9249f87
Check dns record change and dns lookup for app install/configure
...
Fixes #121
2016-11-30 18:51:54 +01:00
Johannes
e1ee4973eb
Add route53 dns tests
...
Fixes #120
2016-11-30 18:04:47 +01:00
Johannes
d54e02eed4
Enable and fix test for multiple dns upserts with digitalocean
2016-11-30 17:00:47 +01:00
Johannes
db41633663
Support multiple DNS record upserts with digitalocean
...
Fixes #99
2016-11-30 17:00:16 +01:00
Johannes
0568387679
Add digitalocean dns tests
...
Part of #120
2016-11-30 16:36:54 +01:00
Johannes
ffbbb88917
Add dns noop test
...
Part of #120
2016-11-30 15:36:03 +01:00