mirror of https://gitlab.crans.org/nounous/nixos
Fix problème CSP
parent
1998ca8b2e
commit
6497e4ee23
|
@ -34,6 +34,8 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
users.users.nginx.extraGroups = [ "peertube" ];
|
||||||
|
|
||||||
systemd.services.peertube = {
|
systemd.services.peertube = {
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
SystemCallFilter = lib.mkForce [ ];
|
SystemCallFilter = lib.mkForce [ ];
|
||||||
|
@ -130,13 +132,13 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
csp.enabled = true;
|
csp.enabled = false;
|
||||||
history.videos.max_age = "4 years";
|
history.videos.max_age = "4 years";
|
||||||
geo_ip.enabled = false;
|
geo_ip.enabled = false;
|
||||||
|
|
||||||
webadmin.configuration.edition.allowed = false;
|
webadmin.configuration.edition.allowed = false;
|
||||||
|
|
||||||
admin.email = "contact@crans.org";
|
admin.email = "root@crans.org";
|
||||||
|
|
||||||
user = {
|
user = {
|
||||||
video_quota = "10GB";
|
video_quota = "10GB";
|
||||||
|
@ -152,7 +154,7 @@ in
|
||||||
"480p" = true;
|
"480p" = true;
|
||||||
"1080p" = true;
|
"1080p" = true;
|
||||||
};
|
};
|
||||||
always_transcode_original_resolution = false;
|
always_transcode_original_resolution = true;
|
||||||
hls = {
|
hls = {
|
||||||
enabled = true;
|
enabled = true;
|
||||||
split_audio_and_video = true;
|
split_audio_and_video = true;
|
||||||
|
@ -200,6 +202,10 @@ in
|
||||||
short_description = "Instance Peertube du Crans.";
|
short_description = "Instance Peertube du Crans.";
|
||||||
description = ''
|
description = ''
|
||||||
Bienvenue sur l'instance [Peertube](https://joinpeertube.org) du [Crans](https://crans.org) !
|
Bienvenue sur l'instance [Peertube](https://joinpeertube.org) du [Crans](https://crans.org) !
|
||||||
|
|
||||||
|
Le Crans est l'association réseau de l'ENS Paris-Saclay, qui fournit
|
||||||
|
des services numériques et une couverture internet filaire aux
|
||||||
|
associations et clubs de l'ENS Paris-Saclay.
|
||||||
'';
|
'';
|
||||||
code_of_conduct = "Soyez sympas sinon conséquences.";
|
code_of_conduct = "Soyez sympas sinon conséquences.";
|
||||||
administrator = "Les membres actif⋅ves du Crans";
|
administrator = "Les membres actif⋅ves du Crans";
|
||||||
|
@ -216,12 +222,6 @@ in
|
||||||
|
|
||||||
theme = {
|
theme = {
|
||||||
default = "default";
|
default = "default";
|
||||||
|
|
||||||
customization = {
|
|
||||||
primary_color = "#AD1F1F";
|
|
||||||
background_color = "#1F2424";
|
|
||||||
background_secondary_color = "#1F95AD";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
broadcast_message = {
|
broadcast_message = {
|
||||||
|
|
Loading…
Reference in New Issue