Skip to content

Commit e867100

Browse files
mastodon: 4.3.4 -> 4.3.6 (#388668)
2 parents bd40c4e + c06efc8 commit e867100

File tree

3 files changed

+32
-30
lines changed

3 files changed

+32
-30
lines changed

nixos/modules/services/web-apps/mastodon.nix

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ in {
195195
affect other virtualHosts running on your nginx instance, if any.
196196
Alternatively you can configure a reverse-proxy of your choice to serve these paths:
197197
198-
`/ -> $(nix-instantiate --eval '<nixpkgs>' -A mastodon.outPath)/public`
198+
`/ -> ''${pkgs.mastodon}/public`
199199
200200
`/ -> 127.0.0.1:{{ webPort }} `(If there was no file in the directory above.)
201201
@@ -324,6 +324,21 @@ in {
324324
type = lib.types.str;
325325
};
326326

327+
vapidPrivateKeyFile = lib.mkOption {
328+
description = ''
329+
Path to file containing the private key used for Web Push
330+
Voluntary Application Server Identification. A new keypair can
331+
be generated by running:
332+
333+
`nix build -f '<nixpkgs>' mastodon; cd result; bin/rake webpush:generate_keys`
334+
335+
If this file does not exist, it will be created with a new
336+
private key.
337+
'';
338+
default = "/var/lib/mastodon/secrets/vapid-private-key";
339+
type = lib.types.str;
340+
};
341+
327342
localDomain = lib.mkOption {
328343
description = "The domain serving your Mastodon instance.";
329344
example = "social.example.org";
@@ -401,21 +416,6 @@ in {
401416
type = lib.types.str;
402417
};
403418

404-
vapidPrivateKeyFile = lib.mkOption {
405-
description = ''
406-
Path to file containing the private key used for Web Push
407-
Voluntary Application Server Identification. A new keypair can
408-
be generated by running:
409-
410-
`nix build -f '<nixpkgs>' mastodon; cd result; bin/rake webpush:generate_keys`
411-
412-
If this file does not exist, it will be created with a new
413-
private key.
414-
'';
415-
default = "/var/lib/mastodon/secrets/vapid-private-key";
416-
type = lib.types.str;
417-
};
418-
419419
trustedProxy = lib.mkOption {
420420
description = ''
421421
You need to set it to the IP from which your reverse proxy sends requests to Mastodon's web process,
@@ -945,6 +945,7 @@ in {
945945
enable = true;
946946
hostname = lib.mkDefault "${cfg.localDomain}";
947947
};
948+
948949
services.redis.servers.mastodon = lib.mkIf redisActuallyCreateLocally (lib.mkMerge [
949950
{
950951
enable = true;
@@ -953,6 +954,7 @@ in {
953954
port = cfg.redis.port;
954955
})
955956
]);
957+
956958
services.postgresql = lib.mkIf databaseActuallyCreateLocally {
957959
enable = true;
958960
ensureUsers = [

pkgs/servers/mastodon/gemset.nix

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1368,10 +1368,10 @@
13681368
platforms = [ ];
13691369
source = {
13701370
remotes = [ "https://rubygems.org" ];
1371-
sha256 = "13wcwdpdx1asjxvqpyxwlcazzsjisls28jjn28d9cqw9zwszcm1p";
1371+
sha256 = "06yllpzx5ib7cv1ar03279gm2qywnzsqfiz42g5y9fmp7z24yiik";
13721372
type = "gem";
13731373
};
1374-
version = "2.3.3";
1374+
version = "2.3.4";
13751375
};
13761376
flatware-rspec = {
13771377
dependencies = [
@@ -1382,10 +1382,10 @@
13821382
platforms = [ ];
13831383
source = {
13841384
remotes = [ "https://rubygems.org" ];
1385-
sha256 = "0dgl20mi9a5iwcy6v9jq148ljy9rrvyjhp1rpd1sgadfw6kxzbhc";
1385+
sha256 = "1gqkjilaqbd6qq80rx3fbjppjbllndvhd629yyd29943lrp3m9nb";
13861386
type = "gem";
13871387
};
1388-
version = "2.3.3";
1388+
version = "2.3.4";
13891389
};
13901390
fog-core = {
13911391
dependencies = [
@@ -2460,10 +2460,10 @@
24602460
platforms = [ ];
24612461
source = {
24622462
remotes = [ "https://rubygems.org" ];
2463-
sha256 = "1km0wqx9pj609jidvrqfsvzbzfgdnlpdnv7i7xfqm3wb55vk5w6y";
2463+
sha256 = "1hjnb5b5m549irs0h1455ipzsv82pikdagx9wjb6r4j1bkjy494d";
24642464
type = "gem";
24652465
};
2466-
version = "2.1.2";
2466+
version = "2.1.3";
24672467
};
24682468
omniauth-cas = {
24692469
dependencies = [
@@ -2503,10 +2503,10 @@
25032503
platforms = [ ];
25042504
source = {
25052505
remotes = [ "https://rubygems.org" ];
2506-
sha256 = "00nn24s74miy7p65y8lwpjfwgcn7fwld61f9ghngal4asgw6pfwa";
2506+
sha256 = "1c2i8yry06qpqg4k8xps5aj0hfw7l7m5vdqf85sbpr04ngfdpq6l";
25072507
type = "gem";
25082508
};
2509-
version = "2.2.1";
2509+
version = "2.2.3";
25102510
};
25112511
omniauth_openid_connect = {
25122512
dependencies = [
@@ -3204,10 +3204,10 @@
32043204
platforms = [ ];
32053205
source = {
32063206
remotes = [ "https://rubygems.org" ];
3207-
sha256 = "12mv97fz3jp6nl4bc36wiqwdiivv5lgqcpfnan91w20rzapljk22";
3207+
sha256 = "1yzhcwvfkrlb8l79w24yjclv636jn6rnznp95shmssk934bi1vnc";
32083208
type = "gem";
32093209
};
3210-
version = "2.2.11";
3210+
version = "2.2.13";
32113211
};
32123212
rack-attack = {
32133213
dependencies = [ "rack" ];
@@ -3970,10 +3970,10 @@
39703970
platforms = [ ];
39713971
source = {
39723972
remotes = [ "https://rubygems.org" ];
3973-
sha256 = "1adq06m684gnpjp6qyb8shgj8jjy2npcfg7y6mg2ab9ilfdq6684";
3973+
sha256 = "0vgsvdaglz1spx9gxrr6xh7qqhi4qd8jd06h2ihwxmazj9ajld6y";
39743974
type = "gem";
39753975
};
3976-
version = "1.17.0";
3976+
version = "1.18.0";
39773977
};
39783978
ruby-vips = {
39793979
dependencies = [

pkgs/servers/mastodon/source.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
patches ? [ ],
66
}:
77
let
8-
version = "4.3.4";
8+
version = "4.3.6";
99
in
1010
(applyPatches {
1111
src = fetchFromGitHub {
1212
owner = "mastodon";
1313
repo = "mastodon";
1414
rev = "v${version}";
15-
hash = "sha256-2FpiFSK9CBm7eHqVvV8pPp6fLc5jCcUektpSyxNnXtw=";
15+
hash = "sha256-cTJmSrQ+xlDfrAyHKeiIvrUOgAh9DQT2NNizN8XT3P0=";
1616
};
1717
patches = patches ++ [ ];
1818
})

0 commit comments

Comments
 (0)