Compare commits
2 commits
2b1ce0b56c
...
272d0aa82b
| Author | SHA1 | Date | |
|---|---|---|---|
| 272d0aa82b | |||
| f9d480335f |
2 changed files with 5 additions and 4 deletions
|
|
@ -30,6 +30,7 @@
|
||||||
vars:
|
vars:
|
||||||
site_name: "{{ item['name'] }}"
|
site_name: "{{ item['name'] }}"
|
||||||
site_port: "{{ item['port'] }}"
|
site_port: "{{ item['port'] }}"
|
||||||
|
site_cert: "{{ item['cert'] }}"
|
||||||
|
|
||||||
- name: Disable default nginx site
|
- name: Disable default nginx site
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
# {{ ansible_managed }}
|
# {{ ansible_managed }}
|
||||||
server {
|
server {
|
||||||
listen 443 ssl;
|
listen 443 ssl http2;
|
||||||
listen [::]:443 ssl;
|
listen [::]:443 ssl http2;
|
||||||
|
|
||||||
server_name {{ site_name }};
|
server_name {{ site_name }};
|
||||||
|
|
||||||
ssl_certificate {{ nginx_certificate_path }}/{{ site_name }}/fullchain.pem;
|
ssl_certificate {{ nginx_certificate_path }}/{{ site_cert }}/fullchain.pem;
|
||||||
ssl_certificate_key {{ nginx_certificate_path }}/{{ site_name }}/privkey.pem;
|
ssl_certificate_key {{ nginx_certificate_path }}/{{ site_cert }}/privkey.pem;
|
||||||
|
|
||||||
{% if auth %}
|
{% if auth %}
|
||||||
auth_basic "SCE";
|
auth_basic "SCE";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue