Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
J
jitsi-cert-auth
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Hartig
jitsi-cert-auth
Commits
de0f0bd9
Commit
de0f0bd9
authored
2 years ago
by
Jan Hartig
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' into 'main'
Get URL from environment variable See merge request
!16
parents
ed63a326
a928abcb
No related branches found
No related tags found
1 merge request
!16
Get URL from environment variable
Pipeline
#17773
passed
2 years ago
Stage: test
Changes
2
Pipelines
14
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+3
-2
3 additions, 2 deletions
README.md
server.py
+2
-1
2 additions, 1 deletion
server.py
with
5 additions
and
3 deletions
README.md
+
3
−
2
View file @
de0f0bd9
...
@@ -17,8 +17,9 @@ services:
...
@@ -17,8 +17,9 @@ services:
- 8000:8000
- 8000:8000
environment:
environment:
- TZ=Europe/Berlin
- TZ=Europe/Berlin
- SANIC_JITSI_APP_ID=
- SANIC_JITSI_PUBLIC_URL=vc.ptb.de
- SANIC_JITSI_APP_SECRET=
- SANIC_JITSI_APP_ID=MY_APP_ID
- SANIC_JITSI_APP_SECRET=MY_VERY_SECURE_SECRET
- SANIC_TOKEN_VALID_FOR=15
- SANIC_TOKEN_VALID_FOR=15
volumes:
volumes:
- /path/to/serial2room.json:/data/serial2room.json:ro
- /path/to/serial2room.json:/data/serial2room.json:ro
...
...
This diff is collapsed.
Click to expand it.
server.py
+
2
−
1
View file @
de0f0bd9
...
@@ -15,6 +15,7 @@ app = Sanic(__name__)
...
@@ -15,6 +15,7 @@ app = Sanic(__name__)
'''
Config ###
'''
Config ###
Set via environment variable
Set via environment variable
SANIC_JITSI_PUBLIC_URL: vc.ptb.de
SANIC_JITSI_APP_ID
SANIC_JITSI_APP_ID
SANIC_JITSI_APP_SECRET: Jitsi App Secret
SANIC_JITSI_APP_SECRET: Jitsi App Secret
SANIC_TOKEN_VALID_FOR: Time in seconds generated JWT will be valid for
SANIC_TOKEN_VALID_FOR: Time in seconds generated JWT will be valid for
...
@@ -91,7 +92,7 @@ def gen_jwt(room):
...
@@ -91,7 +92,7 @@ def gen_jwt(room):
claims
=
json
.
dumps
({
claims
=
json
.
dumps
({
"
context
"
:
{},
# Setting name and email here leads to auth failure
"
context
"
:
{},
# Setting name and email here leads to auth failure
"
iss
"
:
app
.
config
.
JITSI_APP_ID
,
"
iss
"
:
app
.
config
.
JITSI_APP_ID
,
"
sub
"
:
'
vc.ptb.de
'
,
"
sub
"
:
app
.
config
.
JITSI_PUBLIC_URL
,
"
iat
"
:
now
,
"
iat
"
:
now
,
"
nbf
"
:
now
,
"
nbf
"
:
now
,
"
exp
"
:
now
+
app
.
config
.
TOKEN_VALID_FOR
,
"
exp
"
:
now
+
app
.
config
.
TOKEN_VALID_FOR
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment