nixos-config/modules/system/services/server/social/owncast/nginx/default.nix

12 lines
279 B
Nix
Raw Normal View History

{ config, lib, ... }:
2024-10-09 03:36:08 -04:00
{
services.nginx.virtualHosts."live.${config.domains.p1}" = lib.mkIf config.services.owncast.enable {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:8060";
proxyWebsockets = true;
};
};
}