nginx virtualhost: handle the cors settings.
This commit is contained in:
parent
0527c9cb69
commit
7b28ddc8b9
|
@ -37,6 +37,8 @@ redmine_nginx_behind_haproxy_settings: False
|
|||
redmine_nginx_frontend: True
|
||||
redmine_nginx_static_data_valid_time: '30d'
|
||||
nginx_virthosts: '{{ redmine_nginx_virthosts }}'
|
||||
redmine_nginx_cors_enabled: False
|
||||
redmine_nginx_cors_global: '{{ redmine_nginx_cors_enabled }}'
|
||||
redmine_nginx_serveraliases: []
|
||||
|
||||
redmine_log_level: warn
|
||||
|
|
|
@ -53,6 +53,8 @@ nginx_frontend: '{{ redmine_nginx_frontend }}'
|
|||
nginx_use_common_virthost: False
|
||||
nginx_webroot: '{{ redmine_web_root }}'
|
||||
nginx_behind_haproxy_settings: '{{ redmine_nginx_behind_haproxy_settings }}'
|
||||
nginx_cors_enabled: '{{ redmine_nginx_cors_enabled }}'
|
||||
nginx_cors_global: '{{ redmine_nginx_cors_global }}'
|
||||
redmine_nginx_virthosts:
|
||||
- virthost_name: '{{ ansible_fqdn }}'
|
||||
listen: '{{ http_port }}'
|
||||
|
@ -70,3 +72,4 @@ redmine_nginx_virthosts:
|
|||
locations:
|
||||
- location: '@app'
|
||||
target: http://unicorn
|
||||
cors: '{{ nginx_cors_enabled }}'
|
||||
|
|
Loading…
Reference in New Issue