owncast: format
This commit is contained in:
parent
d4bdffecdb
commit
4f8e8119b8
|
@ -14,33 +14,37 @@
|
||||||
|
|
||||||
networking.hostName = "owncast";
|
networking.hostName = "owncast";
|
||||||
|
|
||||||
services.owncast = {
|
services = {
|
||||||
enable = true;
|
nginx = {
|
||||||
openFirewall = true;
|
enable = true;
|
||||||
};
|
additionalModules = [ pkgs.nginxModules.fancyindex ];
|
||||||
|
virtualHosts."owncast.c3d2.de" = {
|
||||||
|
default = true;
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
|
||||||
services.nginx = {
|
locations = {
|
||||||
enable = true;
|
"/" = {
|
||||||
additionalModules = [ pkgs.nginxModules.fancyindex ];
|
proxyPass = "http://127.0.0.1:${toString config.services.owncast.port}";
|
||||||
virtualHosts."owncast.c3d2.de" = {
|
proxyWebsockets = true;
|
||||||
default = true;
|
};
|
||||||
forceSSL = true;
|
"/archive".return = "307 /archive/";
|
||||||
enableACME = true;
|
"/archive/" = {
|
||||||
|
alias = "${config.services.owncast-archiver.targetDir}/";
|
||||||
locations."/" = {
|
extraConfig = ''
|
||||||
proxyPass = "http://127.0.0.1:${toString config.services.owncast.port}";
|
fancyindex on;
|
||||||
proxyWebsockets = true;
|
fancyindex_exact_size off;
|
||||||
};
|
'';
|
||||||
locations."/archive".return = "307 /archive/";
|
};
|
||||||
locations."/archive/" = {
|
};
|
||||||
alias = "${config.services.owncast-archiver.targetDir}/";
|
|
||||||
extraConfig = ''
|
|
||||||
fancyindex on;
|
|
||||||
fancyindex_exact_size off;
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
owncast = {
|
||||||
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.nginx.serviceConfig.ReadWritePaths = [
|
systemd.services.nginx.serviceConfig.ReadWritePaths = [
|
||||||
config.services.owncast-archiver.targetDir
|
config.services.owncast-archiver.targetDir
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue