# This section is needed to proxy web-socket connections
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
# HTTP
server {
listen 80; # If this is not a default server, remove "default_server"
listen [::]:80 ipv6only=on;
server_name <AdminURL>;
# Redirect non-SSL to SSL
location / {
rewrite ^ https://<AdminURL>$request_uri? permanent;
}
}
# HTTPS server
server {
listen 443 ssl http2; # We enable HTTP/2 here (previously SPDY)
server_name <AdminURL>; # This domain must match Common Name (CN) in the SSL certificate
ssl_certificate /etc/ssl/<AdminURL>.crt;
ssl_certificate_key /etc/ssl/<AdminURL>.key;
# Increased values to allow for large file uploads
client_body_timeout 14400s; # 240 minutes or 4 hours
client_max_body_size 50G; # 50GB max
location / {
# Pass request to local Opencast listener
proxy_pass http://127.0.0.1:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade; # Allow websockets
proxy_set_header Connection $connection_upgrade;
proxy_set_header X-Forwarded-For $remote_addr; # Preserve client IP
proxy_set_header X-Forwarded-Ssl on; # Forward SSL requests (required for LTI)
#proxy_set_header X-Forwarded-Protocol https;
#proxy_set_header X-Url-Scheme https;
#proxy_redirect https://<AdminURL> http://<AdminURL>:8080;
}
}--
You received this message because you are subscribed to the Google Groups "Opencast Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to users+un...@opencast.org.
org.opencastproject.server.url=https://<AdminURL>proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Ssl on;
proxy_set_header X-Forwarded-Protocol https;
proxy_set_header X-Forwarded-Port 443;https://<AdminURL>/lti my browser forwards it to https://127.0.0.1:8443/admin-ng/login.html ... not sure if that's right?So, server.url is set to https://myopencast.domain.tld which is the same address that one would use to get to the actual admin or Engage UI. NGINX responds to https://myopencast.domain.tld and proxies it to http://127.0.0.1:8080. Opencast itself is only listening on 127.0.0.1:8080. Is that correct or should I make any changes?
I'm baffled as to why Opencast is forwarding requests to https://127.0.0.1:8443/...
[opencast@opencast-worker1 opencast]$ curl -k -I http://myopencast.domain.tld/
HTTP/1.1 301 Moved Permanently
Server: nginx/1.12.2
Date: Thu, 16 Aug 2018 15:50:03 GMT
Content-Type: text/html
Content-Length: 185
Connection: keep-alive
Location: https://myopencast.domain.tld/
[opencast@opencast-worker1 opencast]$ curl -k -I https://myopencast.domain.tld/
HTTP/1.1 302 Found
Server: nginx/1.12.2
Date: Thu, 16 Aug 2018 15:50:12 GMT
Connection: keep-alive
Set-Cookie: JSESSIONID=12uk78njo93pbofbcthvq7y2x;Path=/
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Location: https://127.0.0.1:8443/admin-ng/login.html;jsessionid=12uk78njo93pbofbcthvq7y2xHey Paul,
I think i've made some progress....
I et a login
prmopt when trying to launch the LTI link now, but i can't actually
login. It just bumps me back to the login page whin I try.
I have the LTI series configured like so:
2018-08-17 08:45:57,979 | INFO | (LtiLaunchAuthenticationHandler:221) - Returning user with 3 authorities
Yes 2018-08-17 08:45:57,979 | INFO | (LtiLaunchAuthenticationHandler:221) - Returning user with 3 authoritiesI've made some progress though, So right now it works if I set Moodle to open a new window or use the existing window, however it does not work if i use embedded content.