Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
fairblue
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hosting
chat
fairblue
Commits
3f882b11
Commit
3f882b11
authored
10 years ago
by
Jesus Federico
Browse files
Options
Downloads
Patches
Plain Diff
bbb-lti: Fixed issue that prevented https to work on nginx/tomcat
parent
52c7aceb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bbb-lti/grails-app/controllers/org/bigbluebutton/ToolController.groovy
+15
-1
15 additions, 1 deletion
...s-app/controllers/org/bigbluebutton/ToolController.groovy
bbb-lti/lti.nginx
+1
-0
1 addition, 0 deletions
bbb-lti/lti.nginx
with
16 additions
and
1 deletion
bbb-lti/grails-app/controllers/org/bigbluebutton/ToolController.groovy
+
15
−
1
View file @
3f882b11
...
...
@@ -54,7 +54,7 @@ class ToolController {
ltiService
.
logParameters
(
params
)
if
(
request
.
post
){
def
endPoint
=
(
request
.
isSecure
()?
"https"
:
"http"
)
+
"://"
+
ltiService
.
endPoint
+
"/"
+
grailsApplication
.
metadata
[
'app.name'
]
+
"/"
+
params
.
get
(
"controller"
)
+
(
params
.
get
(
"format"
)
!=
null
?
"."
+
params
.
get
(
"format"
):
""
)
def
endPoint
=
getScheme
(
)
+
"://"
+
ltiService
.
endPoint
+
"/"
+
grailsApplication
.
metadata
[
'app.name'
]
+
"/"
+
params
.
get
(
"controller"
)
+
(
params
.
get
(
"format"
)
!=
null
?
"."
+
params
.
get
(
"format"
):
""
)
Map
<
String
,
String
>
result
=
new
HashMap
<
String
,
String
>()
ArrayList
<
String
>
missingParams
=
new
ArrayList
<
String
>()
...
...
@@ -398,4 +398,18 @@ class ToolController {
return
cartridge
}
private
String
getScheme
(){
def
scheme
if
(
request
.
isSecure
()
)
{
scheme
=
'https'
}
else
{
scheme
=
request
.
getHeader
(
"scheme"
)
if
(
scheme
==
null
||
!(
scheme
==
'http'
||
scheme
==
'https'
)
)
{
scheme
=
'http'
}
}
return
scheme
}
}
This diff is collapsed.
Click to expand it.
bbb-lti/lti.nginx
+
1
−
0
View file @
3f882b11
...
...
@@ -4,6 +4,7 @@
proxy_pass http://127.0.0.1:8080;
proxy_redirect default;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Scheme $scheme;
# Allow 30M uploaded presentation document.
client_max_body_size 30m;
...
...
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