nginx virtualhost: handle the cors settings.

This commit is contained in:
Andrea Dell'Amico 2021-07-28 12:27:51 +02:00
parent 0527c9cb69
commit 7b28ddc8b9
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -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 }}'