nginx/forward: Redeveloped using nginx/server template
parent
cc8513ddf4
commit
0781b4c175
@ -1,12 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
- name: Enable forwarding {{ domain }} to {{ dest }}
|
|
||||||
template:
|
|
||||||
src: forward.conf
|
|
||||||
dest: "{{ nginx_sites_directory }}/{{ domain }}"
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
mode: "u=rw,g=r,o=r"
|
|
||||||
notify: reload nginx
|
|
||||||
tags:
|
|
||||||
- certificate
|
|
@ -1,14 +0,0 @@
|
|||||||
server {
|
|
||||||
listen 443 ssl http2;
|
|
||||||
listen [::]:443 ssl http2;
|
|
||||||
server_name {{ effective_domain }};
|
|
||||||
|
|
||||||
ssl on;
|
|
||||||
ssl_certificate {{ acme_fullchain_location }};
|
|
||||||
ssl_certificate_key {{ acme_key_location }};
|
|
||||||
|
|
||||||
include {{ nginx_snippets_directory }}/https;
|
|
||||||
include {{ nginx_snippets_directory }}/global;
|
|
||||||
|
|
||||||
return 301 https://{{ dest }}$request_uri;
|
|
||||||
}
|
|
Loading…
Reference in New Issue