Fixed templates folder
This commit is contained in:
parent
d73c37dc9e
commit
968c05c76e
|
|
@ -56,5 +56,5 @@
|
||||||
file: path=/home/ansible/.ssh owner=ansible group=ansible mode=0700 state=directory
|
file: path=/home/ansible/.ssh owner=ansible group=ansible mode=0700 state=directory
|
||||||
|
|
||||||
- name: Add the mandatory ssh keys to the ansible user
|
- name: Add the mandatory ssh keys to the ansible user
|
||||||
template: src=library/templates/ansible_auth_keys.j2 dest=/home/ansible/.ssh/authorized_keys owner=ansible group=ansible mode=0644
|
template: src=templates/ansible_auth_keys.j2 dest=/home/ansible/.ssh/authorized_keys owner=ansible group=ansible mode=0644
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
|
server_name {{ nginx_server_name }};
|
||||||
|
|
||||||
|
location / {
|
||||||
|
return 301 https://$host$request_uri;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 443 ssl;
|
||||||
|
server_name {{ nginx_server_name }};
|
||||||
|
|
||||||
|
root /var/www/html;
|
||||||
|
index index.php;
|
||||||
|
|
||||||
|
ssl_certificate /etc/nginx/ssl/fullchain.pem;
|
||||||
|
ssl_certificate_key /etc/nginx/ssl/privatekey.pem;
|
||||||
|
ssl_trusted_certificate /etc/nginx/ssl/intermediatecertificate.pem;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://{{ docker_wordpress_hostname }}:80;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue