Râu Cao
8071f44f41
Upgrade Mastodon to 4.2.1
2023-11-05 00:57:43 +01:00
Râu Cao
cb0fc27134
Refactor tor usage, set up new tor proxy on draco
2023-07-29 16:26:20 +02:00
Râu Cao
15b2ea284a
Migrate mastodon proxy to openresty
2023-07-26 15:44:04 +02:00
Greg Karékinian
3cf9c3868b
Deploy mastodon without the application cookbooks
2023-06-28 17:23:05 +02:00
Râu Cao
ed0e030106
Set up libretranslate for kosmos.social
2023-01-17 17:12:22 +08:00
Râu Cao
f777af22b8
Finish up Garage S3 config for kosmos.social
2023-01-14 15:59:47 +08:00
Râu Cao
a460302728
Add missing sidekiq queue
2022-12-01 17:08:17 +01:00
Râu Cao
f3ca307e64
Fix Tor access
...
Configure alternate_domains for Rails app to re-enable Tor access (was
throwing 403s without this config)
2022-11-30 12:06:25 +01:00
Râu Cao
66f5217a41
Refactor Mastodon nginx recipe for proxy usage
...
Works both as local deployment and proxy (via roles and environments)
* Use upstreams for proxy_pass
* Access static assets from proxy, configure caching for them
* Move Tor config to environment, install via role
* ...
2022-11-30 12:02:17 +01:00
Râu Cao
83e55c84a2
Use domain name for log file paths
2022-11-30 12:00:01 +01:00
Râu Cao
c4d43b7f4e
Make Mastodon services listen on private IP in prod
...
And allow access to them from the private network
2022-11-30 11:57:51 +01:00
b823ad5e59
Switch Mastodon cookbook to new Redis cookbook
...
Also add new node config.
refs #349
Co-authored-by Greg Karékinian <greg@karekinian.com>
2022-02-10 15:29:02 -06:00
341806ec8a
Update jemalloc binary path
...
Co-authored-by Greg Karékinian <greg@karekinian.com>
2022-02-10 15:26:37 -06:00
a0de016e1c
Add single sidekiq process for new scheduler queue
2021-12-05 16:27:05 -06:00
49c75bbb05
Add Onion-Location header for kosmos.social
...
Tells Tor Browser where to find the native onion site.
refs #201
2021-01-25 12:09:28 +01:00
05cd38a5b9
Re-enable and improve Tor access for kosmos.social
2021-01-23 14:22:34 +01:00
047526e0fc
Don't configure HTTPS site when certs missing
2021-01-13 09:49:49 +01:00
9d13acd41a
Don't fail on first run, when Tor hostname missing
2021-01-13 09:49:36 +01:00
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