Create roles for symfony app and ssl certificate
This commit is contained in:
13
ansible/roles/ssl-certificate/templates/vhost.conf.j2
Normal file
13
ansible/roles/ssl-certificate/templates/vhost.conf.j2
Normal file
@ -0,0 +1,13 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name {{ cert_domains|join(' ') }};
|
||||
|
||||
location /.well-known {
|
||||
root {{ cert_le_webroot_path }};
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
location / {
|
||||
rewrite ^ https://$host$request_uri? permanent;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user