nginx/forward: Redeveloped using nginx/server template

master
Felix Stupp 4 years ago
parent cc8513ddf4
commit 0781b4c175
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -3,5 +3,7 @@
allow_duplicates: yes allow_duplicates: yes
dependencies: dependencies:
- role: acme/certificate - role: nginx/server
- role: nginx/application # domain
directives: |
return 301 https://{{ dest }}$request_uri;

@ -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…
Cancel
Save