Commit Graph

24 Commits

Author SHA1 Message Date
Greg Karékinian
4583421597 Connect to the PostgreSQL primary server instead of localhost
Move the db and user creation to its own recipe

Refs #186
2020-06-26 15:22:14 +02:00
Greg Karékinian
004a6913b4 Remove dependency to an old PostgreSQL in the Systemd unit
Refs #186
2020-06-26 15:22:05 +02:00
Greg Karékinian
0b579b1fea Remove the redirection from HTTP to HTTPS from the mastodon vhost
This is already done in the certbot vhost
(https://gitea.kosmos.org/kosmos/chef/src/branch/master/site-cookbooks/kosmos-nginx/templates/default/nginx_conf_certbot.erb)
and it redirects every request to HTTPS, breaking Let's Encrypt
validation

Fixes #110
2019-10-28 11:18:31 +01:00
c7d91f68f9 Fix Mastodon Web systemd service
Removes a legacy property from the config, which made the service fail
to start after having upgraded systemd on Andromeda.
2019-10-16 08:29:34 +02:00
Greg Karékinian
efa958a374 Merge branch 'master' into feature/96-elasticsearch_mastodon 2019-09-09 16:20:46 +02:00
Greg Karékinian
039da3d35a Install Elasticsearch and enable it in Mastodon
Refs #96
2019-09-06 17:26:06 +02:00
10b6f6370e Configure Mastodon to use its Tor hidden service 2019-09-02 14:39:25 +02:00
89027f1f32 Fix maintenance page paths 2019-05-07 16:10:23 +02:00
99a677ec47 Configure maintenance error page for 503 2019-05-07 15:52:58 +02:00
1ee2b5ad41 Add maintenance page feature to Mastodon nginx site 2019-05-07 15:49:01 +02:00
Greg Karékinian
e65374c893 Add TODO prefix 2019-04-12 11:21:37 +02:00
Greg Karékinian
126b5f8dd5 Update the kosmos-mastodon cookbook to use the new postgresql cookbook
Don't depend on the deprecated database cookbook to create the database
2019-04-10 11:49:26 +02:00
Greg Karékinian
17f1b2a20a Create a nginx_certbot_site resource to remove duplication
It creates a folder, the nginx vhost for certbot and HTTP redirects, and
also runs certbot and recreates the nginx vhost that includes the TLS
cert
2019-03-15 19:03:28 +01:00
Greg Karékinian
e6a3460a2c Make the number of sidekiq threads configurable, bump to 25 2018-09-03 19:11:42 +02:00
Greg Karékinian
c3933012dd We install nodejs from package, update paths 2018-04-17 13:19:23 +02:00
Greg Karékinian
8653a8fa97 Use jemalloc1 on Puma and Sidekiq to lower the memory usage
More details:
https://www.speedshop.co/2017/12/04/malloc-doubles-ruby-memory.html
2018-03-20 16:07:55 +01:00
Greg Karékinian
6ae27293ce Set the number of ActiveRecord DB pools to 50 in the Sidekiq service 2018-02-28 15:11:22 +01:00
0a3763fe5d Fix accidental error in Mastodon nginx config
The well-known folder wasn't served properly anymore.
2017-09-04 10:06:41 +02:00
8afa5ef106 Add vapid keys to template; don't cache SW 2017-07-31 13:55:27 +02:00
e39792ea36 Update Mastodon Redis config
They introduced Redis URLs for the config, so I removed our own
additions and added the URL.
2017-06-16 12:09:22 -07:00
54332db8de Use ruby-build for Mastodon, update cookbooks
This uses the ruby_build provider for Mastodon, installing Ruby 2.4.1
currently. It also updates some other cookbooks and the runlists.
2017-04-17 11:40:31 +02:00
Greg Karékinian
e3bcf9b1b8 Add reload support to mastodon-web systemd service 2017-04-07 18:27:02 +02:00
Greg Karékinian
3549b8594a Enable IPv6 and HTTP2 on Mastodon 2017-04-07 18:26:49 +02:00
Greg Karékinian
de11c0d691 Set up an instance of Mastodon for Kosmos
Refs #19

Use new application cookbook, update our cookbooks
2017-04-06 21:20:51 +02:00