-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unify hidden domain usage for recording and transcription #1737
base: master
Are you sure you want to change the base?
Changes from all commits
3008851
ba024c2
0699717
fc48755
601cc24
6e250c9
7684c09
9fca6ad
2dd66de
48e66eb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
{{ $ENABLE_SUBDOMAINS := .Env.ENABLE_SUBDOMAINS | default "true" | toBool -}} | ||
{{ $ENABLE_XMPP_WEBSOCKET := .Env.ENABLE_XMPP_WEBSOCKET | default "1" | toBool -}} | ||
{{ $JIBRI_RECORDER_USER := .Env.JIBRI_RECORDER_USER | default "recorder" -}} | ||
{{ $JIGASI_TRANSCRIBER_USER := .Env.JIGASI_TRANSCRIBER_USER | default "transcriber" -}} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why was this removed? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The transcriber user was combined with the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Jigasi has two connections. First is the the XMPP command/control connection to the brewery MUC where jicofo can dispatch it to a conference. This first connection uses the JIGASI_XMPP_USER, which is a service account never seen by end users. |
||
{{ $LIMIT_MESSAGES_CHECK_TOKEN := .Env.PROSODY_LIMIT_MESSAGES_CHECK_TOKEN | default "0" | toBool -}} | ||
{{ $RATE_LIMIT_LOGIN_RATE := .Env.PROSODY_RATE_LIMIT_LOGIN_RATE | default "3" -}} | ||
{{ $RATE_LIMIT_SESSION_RATE := .Env.PROSODY_RATE_LIMIT_SESSION_RATE | default "200" -}} | ||
|
@@ -35,7 +34,7 @@ | |
{{ $XMPP_MUC_DOMAIN_PREFIX := (split "." $XMPP_MUC_DOMAIN)._0 -}} | ||
{{ $XMPP_SERVER := .Env.XMPP_SERVER | default "xmpp.meet.jitsi" -}} | ||
{{ $XMPP_SERVER_S2S_PORT := .Env.XMPP_SERVER_S2S_PORT | default $S2S_PORT -}} | ||
{{ $XMPP_RECORDER_DOMAIN := .Env.XMPP_RECORDER_DOMAIN | default "recorder.meet.jitsi" -}} | ||
{{ $XMPP_HIDDEN_DOMAIN := .Env.XMPP_HIDDEN_DOMAIN | default "hidden.meet.jitsi" -}} | ||
|
||
plugin_paths = { "/prosody-plugins/", "/prosody-plugins-custom", "/prosody-plugins-contrib" } | ||
|
||
|
@@ -176,22 +175,26 @@ Component '{{ $VISITORS_MUC_PREFIX }}.v{{ $VISITOR_INDEX }}.{{ $VISITORS_XMPP_DO | |
|
||
{{ if $ENABLE_RATE_LIMITS -}} | ||
-- Max allowed join/login rate in events per second. | ||
rate_limit_login_rate = {{ $RATE_LIMIT_LOGIN_RATE }}; | ||
-- The rate to which sessions from IPs exceeding the join rate will be limited, in bytes per second. | ||
rate_limit_session_rate = {{ $RATE_LIMIT_SESSION_RATE }}; | ||
-- The time in seconds, after which the limit for an IP address is lifted. | ||
rate_limit_timeout = {{ $RATE_LIMIT_TIMEOUT }}; | ||
-- List of regular expressions for IP addresses that are not limited by this module. | ||
rate_limit_whitelist = { | ||
"127.0.0.1"; | ||
{{ range $index, $cidr := (splitList "," $RATE_LIMIT_ALLOW_RANGES) -}} | ||
"{{ $cidr }}"; | ||
{{ end -}} | ||
rate_limit_login_rate = {{ $RATE_LIMIT_LOGIN_RATE }}; | ||
-- The rate to which sessions from IPs exceeding the join rate will be limited, in bytes per second. | ||
rate_limit_session_rate = {{ $RATE_LIMIT_SESSION_RATE }}; | ||
-- The time in seconds, after which the limit for an IP address is lifted. | ||
rate_limit_timeout = {{ $RATE_LIMIT_TIMEOUT }}; | ||
-- List of regular expressions for IP addresses that are not limited by this module. | ||
rate_limit_whitelist = { | ||
"127.0.0.1"; | ||
{{ range $index, $cidr := (splitList "," $RATE_LIMIT_ALLOW_RANGES) -}} | ||
"{{ $cidr }}"; | ||
{{ end -}} | ||
}; | ||
|
||
rate_limit_whitelist_jids = { | ||
"{{ $JIBRI_RECORDER_USER }}@{{ $XMPP_HIDDEN_DOMAIN }}", | ||
"{{ $JIGASI_XMPP_USER }}@{{ $XMPP_HIDDEN_DOMAIN }}" | ||
} | ||
{{ end -}} | ||
|
||
-- The size of the cache that saves state for IP addresses | ||
-- The size of the cache that saves state for IP addresses | ||
rate_limit_cache_size = {{ $RATE_LIMIT_CACHE_SIZE }}; | ||
|
||
muc_rate_joins = 30; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These properties are already defined at line ~145: what's the difference between
JIGASI_TRANSCRIBER_USER
andJIGASI_XMPP_USER
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know. This may be a question to the architects of jigasi, whether a separate authentication for the transcriber is desired. I found preparations for a dedicated authentication in the code and just wanted to make the feature work.
Maybe it has to do with other jigasi features (SIP) that a separate authentication is desired?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need an extra user. JIgasi can be configured either as a trascriber or a SIP audio bridge, but not both at the same time. Thus, JIGASI_XMPP_USER (and the other ones) should be good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I plan to work shortly on transcribers as a first-class docker-jitsi-meet component, separated from the jigasi SIP component. I should have PRs open by next week, in case this helps.