Commit Graph

3187 Commits

Author SHA1 Message Date
Girish Ramakrishnan 5b53280cd4 make baseImage an array 2016-08-20 10:24:29 -07:00
Girish Ramakrishnan 15e6873c14 doc: base image 0.9.0 2016-08-20 10:22:49 -07:00
Girish Ramakrishnan f3978897ae use a different exit code to signal external errors
http://tldp.org/LDP/abs/html/exitcodes.html
2016-08-19 21:54:14 -07:00
Girish Ramakrishnan ba4bb1fd90 box-setup must be run before nginx
nginx configs are in the data volume which get mounted only after
box-setup script.

part of #8
2016-08-19 19:37:44 -07:00
Girish Ramakrishnan bbbc3837b0 box-setup: run before sshd since we modify ssh config files 2016-08-19 19:34:58 -07:00
Girish Ramakrishnan 311e997619 DO: do-resize service has folded into cloud-init 2016-08-19 19:34:12 -07:00
Girish Ramakrishnan 8ee2a7016d installer: retry fetching installer data 5 times
On some VPS providers, getting the userData is "flaky".

Fixes #3
2016-08-19 17:51:14 -07:00
Girish Ramakrishnan 02c5e731a9 add debug log for already provisioned 2016-08-19 17:33:55 -07:00
Girish Ramakrishnan b932a9be10 Set X-Forwarded-Ssl to on
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/nginx.md#supporting-proxied-ssl
http://stackoverflow.com/questions/16042647/whats-the-de-facto-standard-for-a-reverse-proxy-to-tell-the-backend-ssl-is-used
2016-08-17 17:46:36 -07:00
Girish Ramakrishnan 56618cab23 add docs 2016-08-17 10:59:09 -07:00
Girish Ramakrishnan 2f7fa54fc8 Add API and CLI 2016-08-17 09:41:25 -07:00
Girish Ramakrishnan b538c75f05 Add links to other repos 2016-08-17 09:23:57 -07:00
Girish Ramakrishnan 813950a0e5 Add features 2016-08-17 02:04:19 -07:00
Girish Ramakrishnan 8ef004f7f5 fix README 2016-08-17 00:47:14 -07:00
Girish Ramakrishnan 897326675e Add a logo for gitlab 2016-08-15 22:29:55 -07:00
Girish 06a8508c48 Add license 2016-08-15 19:22:47 +00:00
Girish Ramakrishnan 979f63f3f8 add link to upgrade docs 2016-08-14 19:42:16 -07:00
Girish Ramakrishnan 55ba9a351f mail container bugfix (typo in delay deny patch) v0.18.0 2016-08-13 14:19:52 -07:00
Girish Ramakrishnan bb6ee2b5a0 more 0.18.0 changes 2016-08-13 11:30:26 -07:00
Girish Ramakrishnan b58b350827 Throw exception if dkim keys could not be generated 2016-08-13 00:23:55 -07:00
Girish Ramakrishnan 3bd9fcae6a fix dkim dir perms 2016-08-13 00:23:07 -07:00
Girish Ramakrishnan 020ad746a0 change ownership of box directory 2016-08-12 23:55:20 -07:00
Girish Ramakrishnan b049989eb1 do not change ownership of mail data when updating cloudron
the mail container is still running and changing the ownership behind it's
back causes the mail container to be very upset.
2016-08-12 23:36:41 -07:00
Girish Ramakrishnan c25cc560d8 bump memory for mail container 2016-08-12 19:57:49 -07:00
Girish Ramakrishnan d342652212 bump mail container version (spam support) 2016-08-12 17:17:48 -07:00
Johannes Zellner c30cfefcc5 Reduce LDAP account password length
(This is currently ignored)

256 might be a common db field restriction. At least in openproject
it is based on their table layout.
2016-08-12 21:14:32 +02:00
Girish Ramakrishnan 6cfb8226a9 we are tied to docker 1.10 for now 2016-08-11 16:29:03 -07:00
Girish Ramakrishnan 19fad669f1 Use the unbound dns server
docker filters out the localhost in /etc/resolv.conf by design
and will use the Google DNS nameservers as fallback.

https://docs.docker.com/engine/userguide/networking/configure-dns/
2016-08-11 14:52:34 -07:00
Johannes Zellner 30074ae961 Removing ssh keys has to be done with ssh202 2016-08-11 20:45:49 +02:00
Girish Ramakrishnan 6d5dc0d5c4 0.18.0 changes 2016-08-11 10:52:35 -07:00
Girish Ramakrishnan 7bc5ae17cc Use unbound as nameserver
DO uses Google nameservers by default. This causes RBL queries to fail.

Can be tested with the following command:
$ host 2.0.0.127.zen.spamhaus.org
Host 2.0.0.127.zen.spamhaus.org not found: 3(NXDOMAIN)

With unbound we get:
$ host 2.0.0.127.zen.spamhaus.org
2.0.0.127.zen.spamhaus.org has address 127.0.0.2
2.0.0.127.zen.spamhaus.org has address 127.0.0.10
2.0.0.127.zen.spamhaus.org has address 127.0.0.4

Also, we do not use dnsmasq because it is not a recursive resolver. It will
always forward and this defaults to the value in /etc/network/interfaces
(which is Google DNS on DO!).
2016-08-11 10:32:54 -07:00
Johannes Zellner 65994f307f Make infra_version.js option and fix base image on DO 2016-08-10 12:45:23 +02:00
Johannes Zellner 855bc71ba7 Add changes for 0.17.6 2016-08-05 17:28:24 +02:00
Johannes Zellner f3e842ed45 Retry to acquire a db connection when starting a transaction
This fixes db issues just like we do for regular queries.
Also we now use the .on('connection') to setup the session and db
this is how the docs recommend it
2016-08-05 15:18:32 +02:00
Johannes Zellner 1ec5d8c03b Fix error usage 2016-08-05 14:01:19 +02:00
Johannes Zellner 26a590b827 Name the DatabaseError so we get better logs 2016-08-05 12:30:28 +02:00
Johannes Zellner ed734ef2ae fix tests, purchase api is gone 2016-08-04 16:22:50 +02:00
Johannes Zellner 41ff92f747 Only unpurchase if the app has an appstoreId v0.17.5 2016-08-04 15:53:55 +02:00
Johannes Zellner 8702b4320d Wait for all mysql jobs to be finished 2016-08-04 14:06:52 +02:00
Johannes Zellner 6b4675cca1 Remove the ec2 swappiness setting
This revealed mixed results, overall the burstmode ec2
instances are simply a bit underpowered
2016-08-04 10:56:26 +02:00
Johannes Zellner 15f94a5134 Use the correct result object 2016-08-04 09:46:03 +02:00
Johannes Zellner 9c65fae4ec Also unpurchase on app uninstall 2016-08-04 09:38:00 +02:00
Johannes Zellner 65b4c83b75 Use the correct token when calling the appstore for purchase 2016-08-03 23:07:31 +02:00
Johannes Zellner 568c8fa100 Show appstore login if purchase fails 2016-08-03 22:41:27 +02:00
Johannes Zellner a91f89c7dd Rework the purchase api to use the new rest api on the appstore server 2016-08-03 18:30:41 +02:00
Johannes Zellner dde597742c Do not expose purchase function 2016-08-03 17:57:53 +02:00
Girish Ramakrishnan 42fda25718 use systemctl instead of upstart service 2016-08-02 18:45:20 -07:00
Girish Ramakrishnan 9fd40e506d Add TODO note for relaunching mail container when cert path changes 2016-08-02 18:37:43 -07:00
Girish Ramakrishnan 2e51251cac fix debug message 2016-08-02 18:09:45 -07:00
Girish Ramakrishnan b0286a6f7f updatechecker: ensure box state information is not lost
the box and app update checker run in parallel. be sure not to lose
the box state information.
2016-08-02 17:39:43 -07:00