allow all to publish
This commit is contained in:
parent
2b471b0587
commit
6346682556
@ -24,7 +24,7 @@ in {
|
|||||||
};
|
};
|
||||||
httpLocation = lib.mkOption {
|
httpLocation = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
default = "/tmp/stream";
|
default = "/tmp";
|
||||||
description = "the path of the tmp http files";
|
description = "the path of the tmp http files";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -37,7 +37,10 @@ in {
|
|||||||
virtualHosts.${cfg.hostname} = {
|
virtualHosts.${cfg.hostname} = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
locations."/stream".root = cfg.httpLocation;
|
locations = {
|
||||||
|
"/stream/hls".root = "${cfg.httpLocation}/hls";
|
||||||
|
"/stream/dash".root = "${cfg.httpLocation}/dash";
|
||||||
|
};
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
location /stat {
|
location /stat {
|
||||||
rtmp_stat all;
|
rtmp_stat all;
|
||||||
@ -51,8 +54,7 @@ in {
|
|||||||
listen 1935;
|
listen 1935;
|
||||||
chunk_size 4096;
|
chunk_size 4096;
|
||||||
application ${cfg.rtmpName} {
|
application ${cfg.rtmpName} {
|
||||||
allow publish 127.0.0.1;
|
allow publish all;
|
||||||
deny publish all;
|
|
||||||
allow publish all;
|
allow publish all;
|
||||||
live on;
|
live on;
|
||||||
record off;
|
record off;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user