Râu Cao
03fa49ed0c
Remove unused import
2023-01-17 17:15:16 +08: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
2ecb4e2385
Upgrade Ruby to 3.0.4
2022-12-01 15:29:38 +01:00
Râu Cao
cdd3f026c4
Always use config for skipping post-deployment migrations
2022-12-01 15:05:24 +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
greg
4bfb7d5f5d
Extract mastodon db backup to its own recipe
2022-11-07 16:22:15 +01:00
Râu Cao
4188b2976b
Use Ruby 3.0.3, skip post-deployment migrations
2022-11-07 14:53:52 +01:00
Râu Cao
3620a43190
Upgrade Elasticsearch from 6.x to latest 7.x
2022-11-06 13:56:15 +01:00
basti
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
basti
341806ec8a
Update jemalloc binary path
...
Co-authored-by Greg Karékinian <greg@karekinian.com >
2022-02-10 15:26:37 -06:00
basti
a0de016e1c
Add single sidekiq process for new scheduler queue
2021-12-05 16:27:05 -06:00
basti
38756fd296
Upgrade Mastodon to latest version
...
Using a new branch with freshly added Kosmos changes on top of the
upstream release code.
2021-12-05 16:11:09 -06:00
basti
a184f27c96
Update kosmos postgres cookbook name in other cookbooks
2021-11-30 08:47:15 -06:00
basti
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
greg
bb0e73d1b9
Switch ejabberd, mastodon and gitea to a hostname for Postgres
2021-01-23 17:11:45 +01:00
basti
05cd38a5b9
Re-enable and improve Tor access for kosmos.social
2021-01-23 14:22:34 +01:00
basti
12a3fa5b4e
Use default Redis database now
2021-01-13 17:06:36 +01:00
basti
047526e0fc
Don't configure HTTPS site when certs missing
2021-01-13 09:49:49 +01:00
basti
9d13acd41a
Don't fail on first run, when Tor hostname missing
2021-01-13 09:49:36 +01:00
basti
4d0259493f
Update system package dependencies for 20.04
2021-01-13 09:48:23 +01:00
basti
c4fa9e6ec1
Remove extra license headers
...
And update year in LICENSE file
2021-01-12 18:42:14 +01:00
greg
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
004a6913b4
Remove dependency to an old PostgreSQL in the Systemd unit
...
Refs #186
2020-06-26 15:22:05 +02:00
basti
5fcb047505
Update Mastodon system dependencies
...
Needs new Ruby, and why not upgrade Yarn in the process. Running in
production.
2020-05-25 17:49:22 +02:00
greg
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
basti
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
basti
66782f1f05
Update installed Ruby version for Mastodon 3.x
2019-10-13 20:16:54 +02:00
greg
3be9b2fb44
Update yarn to the latest version
2019-09-27 10:57:58 +02:00
greg
438c5ff72d
Fix the services restarting every time the recipe is executed
...
* Manually send a restart action from the application_git resource
* Do not depend on application_ruby anymore
2019-09-27 10:57:35 +02:00
greg
4b39ea60dd
Set the NODE_ENV variable when running yarn
...
The assets precompilation task runs yarn with NODE_ENV=production,
before this change yarn would install a different set of packages, with
this change the run from the assets precompilation is idempotent
2019-09-27 10:55:32 +02:00
greg
b1cfa6f6f7
Install Java for Elasticsearch
...
It was missing from the recipe
2019-09-27 10:51:26 +02:00
greg
dace5672e4
Move the java heap size to an attribute
2019-09-27 10:50:56 +02:00
raucao
0ca002c67c
Merge branch 'bugfix/tor_attributes' of kosmos/chef into master
2019-09-11 12:53:50 +00:00
greg
2ecc128abd
Move the hidden service attributes to the attributes file
...
When it is set in the recipe the hidden service dir doesn't get set
correctly (nil), resulting in a broken torrc file
2019-09-11 13:47:42 +02:00
greg
fdb4353ac0
Raise the memory limit for Elasticsearch
2019-09-11 11:21:10 +02:00
greg
245392c4ad
Install Elasticsearch 6.8.2
...
Version 7 isn't compatible with Mastodon yet
2019-09-10 12:29:24 +02:00
greg
efa958a374
Merge branch 'master' into feature/96-elasticsearch_mastodon
2019-09-09 16:20:46 +02:00
basti
40eb94f091
Move Tor attributes to recipe files
2019-09-09 13:36:49 +02:00
greg
039da3d35a
Install Elasticsearch and enable it in Mastodon
...
Refs #96
2019-09-06 17:26:06 +02:00
basti
10b6f6370e
Configure Mastodon to use its Tor hidden service
2019-09-02 14:39:25 +02:00
basti
0d20cddbf5
Prep cookbooks for Tor hidden services for Mastodon
2019-08-31 15:37:50 +02:00
greg
d398c167ca
Allow to pass extra attributes to backup PostgreSQL databases
2019-05-14 16:39:21 +02:00
greg
90815bb274
Fix the postgresql credentials for the backup attributes
2019-05-08 16:58:47 +02:00
greg
7271065c5b
Add names to the execute resources
2019-05-08 16:58:31 +02:00
basti
89027f1f32
Fix maintenance page paths
2019-05-07 16:10:23 +02:00