1
0
mirror of https://github.com/krislamo/vagrant-easyredmine synced 2024-11-12 23:50:34 +00:00
vagrant-easyredmine/roles/easyredmine/templates/nginx.conf.j2

30 lines
1.1 KiB
Plaintext
Raw Normal View History

2015-11-22 02:43:47 +00:00
server {
listen 80;
{% if is_production_vm %}
server_name redmine.apidb.org;
{% else %}
2015-11-22 02:43:47 +00:00
server_name {{ ansible_fqdn }};
{% endif %}
2015-11-22 02:43:47 +00:00
return 301 https://$host$request_uri;
}
server {
listen 443;
{% if is_production_vm %}
server_name redmine.apidb.org;
{% else %}
2015-11-22 02:43:47 +00:00
server_name {{ ansible_fqdn }};
{% endif %}
2016-04-20 20:27:32 +00:00
2015-11-22 02:43:47 +00:00
ssl on;
ssl_certificate /etc/pki/tls/certs/{{ ansible_fqdn }}.pem;
ssl_certificate_key /etc/pki/tls/certs/{{ ansible_fqdn }}.pem;
2016-04-20 20:27:32 +00:00
ssl_ciphers ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:!DSS:!DH+3DES;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
2015-11-22 02:43:47 +00:00
root {{ redmine_root_dir }}/public;
passenger_enabled on;
2016-01-22 02:01:09 +00:00
client_max_body_size 50M;
2015-11-22 02:43:47 +00:00
}