refactor: update livekit build config and fix style problem and add event log

pull/105/merge
moonrailgun
parent 7cb5cadab4
commit 7c02848214

@ -15,8 +15,8 @@ services:
- redis - redis
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.admin.rule=PathPrefix(`/livekit/webhook`)" - "traefik.http.routers.livekit.rule=PathPrefix(`/livekit/webhook`)"
- "traefik.http.services.admin.loadbalancer.server.port=3000" - "traefik.http.services.livekit.loadbalancer.server.port=3000"
networks: networks:
- internal - internal
command: cd server/dist/plugins/com.msgbyte.livekit/webhook && node index.js command: node server/dist/plugins/com.msgbyte.livekit/webhook/index.js

@ -5,6 +5,7 @@ import styled from 'styled-components';
const Root = styled.div.attrs({ const Root = styled.div.attrs({
className: 'lk-button', className: 'lk-button',
})` })`
.lk-participant-tile & {
position: absolute; position: absolute;
top: 0.25rem; top: 0.25rem;
right: 2.25rem; right: 2.25rem;
@ -15,6 +16,7 @@ const Root = styled.div.attrs({
opacity: 0; opacity: 0;
transition: opacity 0.2s ease-in-out; transition: opacity 0.2s ease-in-out;
transition-delay: 0.2s; transition-delay: 0.2s;
}
.lk-participant-tile:hover & { .lk-participant-tile:hover & {
opacity: 1; opacity: 1;

@ -29,6 +29,8 @@ app.post('/livekit/webhook', (req, res) => {
try { try {
const event = receiver.receive(req.body, req.get('Authorization')); const event = receiver.receive(req.body, req.get('Authorization'));
console.log(JSON.stringify(event));
callBrokerAction('plugin:com.msgbyte.livekit.webhook', event); callBrokerAction('plugin:com.msgbyte.livekit.webhook', event);
} finally { } finally {
res.json({ result: true }); res.json({ result: true });

Loading…
Cancel
Save