hainich/nginx: disable interest cohort globally
This commit is contained in:
parent
0c55ccb47b
commit
25568db129
1 changed files with 25 additions and 20 deletions
|
@ -25,27 +25,32 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 1935 ];
|
networking.firewall.allowedTCPPorts = [ 1935 ];
|
||||||
services.nginx.appendConfig = ''
|
services.nginx = {
|
||||||
rtmp {
|
appendHttpConfig = ''
|
||||||
server {
|
add_header Permissions-Policy "interest-cohort=()";
|
||||||
listen 1935;
|
'';
|
||||||
application cutiestream {
|
appendConfig = ''
|
||||||
live on;
|
rtmp {
|
||||||
allow publish all;
|
server {
|
||||||
allow play all;
|
listen 1935;
|
||||||
}
|
application cutiestream {
|
||||||
application ingest {
|
live on;
|
||||||
live on;
|
allow publish all;
|
||||||
|
allow play all;
|
||||||
|
}
|
||||||
|
application ingest {
|
||||||
|
live on;
|
||||||
|
|
||||||
record all;
|
record all;
|
||||||
record_path /data/ingest;
|
record_path /data/ingest;
|
||||||
record_unique on;
|
record_unique on;
|
||||||
|
|
||||||
# include /var/secrets/ingest.conf;
|
# include /var/secrets/ingest.conf;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
'';
|
||||||
}
|
};
|
||||||
'';
|
|
||||||
|
|
||||||
systemd.services.nginx.serviceConfig.ReadWriteDirectories = "/data/ingest /var/secrets";
|
systemd.services.nginx.serviceConfig.ReadWriteDirectories = "/data/ingest /var/secrets";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue