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
a928abcb
Commit
a928abcb
authored
2 years ago
by
Jan Hartig
Browse files
Options
Downloads
Patches
Plain Diff
Get URL from environment variable
parent
b1ccf69a
No related branches found
No related tags found
1 merge request
!16
Get URL from environment variable
Pipeline
#15120
passed
2 years ago
Stage: test
Changes
2
Pipelines
1
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 @
a928abcb
...
...
@@ -17,8 +17,9 @@ services:
- 8000:8000
environment:
- TZ=Europe/Berlin
- SANIC_JITSI_APP_ID=
- SANIC_JITSI_APP_SECRET=
- SANIC_JITSI_PUBLIC_URL=vc.ptb.de
- SANIC_JITSI_APP_ID=MY_APP_ID
- SANIC_JITSI_APP_SECRET=MY_VERY_SECURE_SECRET
- SANIC_TOKEN_VALID_FOR=15
volumes:
- /path/to/serial2room.json:/data/serial2room.json:ro
...
...
This diff is collapsed.
Click to expand it.
server.py
+
2
−
1
View file @
a928abcb
...
...
@@ -15,6 +15,7 @@ app = Sanic(__name__)
'''
Config ###
Set via environment variable
SANIC_JITSI_PUBLIC_URL: vc.ptb.de
SANIC_JITSI_APP_ID
SANIC_JITSI_APP_SECRET: Jitsi App Secret
SANIC_TOKEN_VALID_FOR: Time in seconds generated JWT will be valid for
...
...
@@ -91,7 +92,7 @@ def gen_jwt(room):
claims
=
json
.
dumps
({
"
context
"
:
{},
# Setting name and email here leads to auth failure
"
iss
"
:
app
.
config
.
JITSI_APP_ID
,
"
sub
"
:
'
vc.ptb.de
'
,
"
sub
"
:
app
.
config
.
JITSI_PUBLIC_URL
,
"
iat
"
:
now
,
"
nbf
"
:
now
,
"
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