Skip to content

Commit 61c1d27

Browse files
authored
Merge pull request #12 from elan-ev/property-name-prefix
Ansible role properities should be prefixed with role name
2 parents 49a7f8c + f530319 commit 61c1d27

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ to generate Diffie-Hellman parameters. You therefor need to have the [community.
1616
Role 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

defaults/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
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/

templates/nginx.conf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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 %}

0 commit comments

Comments
 (0)