mirror of
https://github.com/krislamo/vagrant-easyredmine
synced 2024-11-12 23:50:34 +00:00
27 lines
569 B
Plaintext
27 lines
569 B
Plaintext
|
server {
|
||
|
listen 80;
|
||
|
{% if is_production_vm %}
|
||
|
server_name redmine.apidb.org;
|
||
|
{% else %}
|
||
|
server_name {{ ansible_fqdn }};
|
||
|
{% endif %}
|
||
|
return 301 https://$host$request_uri;
|
||
|
}
|
||
|
|
||
|
server {
|
||
|
listen 443;
|
||
|
{% if is_production_vm %}
|
||
|
server_name redmine.apidb.org;
|
||
|
{% else %}
|
||
|
server_name {{ ansible_fqdn }};
|
||
|
{% endif %}
|
||
|
|
||
|
ssl on;
|
||
|
ssl_certificate /etc/pki/tls/certs/{{ ansible_fqdn }}.pem;
|
||
|
ssl_certificate_key /etc/pki/tls/certs/{{ ansible_fqdn }}.pem;
|
||
|
|
||
|
root {{ redmine_root_dir }}/public;
|
||
|
passenger_enabled on;
|
||
|
client_max_body_size 50M;
|
||
|
}
|