Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions ansible-demo-machines/roles/nginx/templates/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,32 @@ http {
# Accept large ingests
client_max_body_size 0;

# Proxy configuration for Opencast
location ~* (?=ID-dual-stream-demo) {
limit_except GET {
allow {{ inventory_hostname }};
deny all;
}

proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;

proxy_pass http://127.0.0.1:8080;

# Make sure to redirect location headers to HTTPS
proxy_redirect http://$host https://$host;

proxy_cookie_path / "/; HTTPOnly; Secure";

# Do not buffer responses
proxy_buffering off;

# Do not buffer requests
proxy_request_buffering off;
}

# Proxy configuration for Opencast
location / {

Expand Down
2 changes: 1 addition & 1 deletion ansible-demo-machines/roles/opencast/templates/media.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ media:
- mediaUri: https://radosgw.public.os.wwu.de/opencast-test-media/dualstream-presentation.mp4
- flavor: captions/source+en
- mediaUri: https://radosgw.public.os.wwu.de/opencast-test-media/dualstream.vtt
- title: Dual-Stream Demo
- title: Dual-Stream Demo (READ ONLY)
- creator: Lars Kiesow
- identifier: ID-dual-stream-demo
- license: CC-BY-SA
Expand Down