mirror of
https://github.com/krislamo/vagrant-easyredmine
synced 2025-09-09 22:19:29 +00:00
configure nginx with ssl
This commit is contained in:
15
roles/easyredmine/templates/nginx.conf.j2
Normal file
15
roles/easyredmine/templates/nginx.conf.j2
Normal file
@@ -0,0 +1,15 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name {{ ansible_fqdn }};
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443;
|
||||
server_name {{ ansible_fqdn }};
|
||||
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;
|
||||
}
|
Reference in New Issue
Block a user