File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ to generate Diffie-Hellman parameters. You therefor need to have the [community.
1616Role Variables
1717--------------
1818
19- - ` opencast_storage_downloads_path `
19+ - ` opencast_nginx_storage_downloads_path `
2020 - Path to Opencast's downloads directory (default: ` /srv/opencast/downloads/ ` )
21- - ` opencast_cors_urls `
21+ - ` opencast_nginx_cors_urls `
2222 - List of URLs to add CORS exceptions for (default: ` [] ` )
2323
2424
Original file line number Diff line number Diff line change 11---
2- opencast_cors_urls : []
3- opencast_storage_downloads_path : /srv/opencast/downloads/
2+ opencast_nginx_cors_urls : []
3+ opencast_nginx_storage_downloads_path : /srv/opencast/downloads/
Original file line number Diff line number Diff line change @@ -56,12 +56,12 @@ http {
5656 }
5757 }
5858
59- { % if opencast_cors_urls %}
59+ { % if opencast_nginx_cors_urls %}
6060 map_hash_bucket_size 128 ;
6161
6262 map $http_origin $cors_ok {
6363 default 0;
64- { % for url in opencast_cors_urls %}
64+ { % for url in opencast_nginx_cors_urls %}
6565 {{ url }} 1;
6666 { % endfor %}
6767 }
@@ -93,10 +93,10 @@ http {
9393
9494 location /protected {
9595 internal ;
96- alias {{ opencast_storage_downloads_path }} ;
96+ alias {{ opencast_nginx_storage_downloads_path }} ;
9797
9898 # CORS configuration
99- { % if opencast_cors_urls %}
99+ { % if opencast_nginx_cors_urls %}
100100 add_header Access-Control-Allow-Origin '$cors_origin' ;
101101 add_header Access-Control-Allow-Credentials '$cors_credentials' ;
102102 { % else %}
@@ -135,7 +135,7 @@ http {
135135 proxy_request_buffering off;
136136
137137 # CORS configuration
138- { % if opencast_cors_urls %}
138+ { % if opencast_nginx_cors_urls %}
139139 add_header Access-Control-Allow-Origin '$cors_origin' ;
140140 add_header Access-Control-Allow-Credentials '$cors_credentials' ;
141141 { % else %}
You can’t perform that action at this time.
0 commit comments