ROCKPro64-Server/system/services/server/owncast/nginx/default.nix

12 lines
270 B
Nix
Raw Normal View History

2025-02-28 12:21:09 -05:00
{ config, lib, ... }:
{
services.nginx.virtualHosts."live.example.com" = lib.mkIf config.services.owncast.enable {
2025-02-28 12:21:09 -05:00
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:8060";
proxyWebsockets = true;
};
};
}