Compare commits
No commits in common. "272d0aa82b5cf3d735047f18b1b988f7e1e2e0a7" and "2b1ce0b56c1ec8a329b27baaf011c2a74436c088" have entirely different histories.
272d0aa82b
...
2b1ce0b56c
2 changed files with 4 additions and 5 deletions
|
|
@ -30,7 +30,6 @@
|
||||||
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 http2;
|
listen 443 ssl;
|
||||||
listen [::]:443 ssl http2;
|
listen [::]:443 ssl;
|
||||||
|
|
||||||
server_name {{ site_name }};
|
server_name {{ site_name }};
|
||||||
|
|
||||||
ssl_certificate {{ nginx_certificate_path }}/{{ site_cert }}/fullchain.pem;
|
ssl_certificate {{ nginx_certificate_path }}/{{ site_name }}/fullchain.pem;
|
||||||
ssl_certificate_key {{ nginx_certificate_path }}/{{ site_cert }}/privkey.pem;
|
ssl_certificate_key {{ nginx_certificate_path }}/{{ site_name }}/privkey.pem;
|
||||||
|
|
||||||
{% if auth %}
|
{% if auth %}
|
||||||
auth_basic "SCE";
|
auth_basic "SCE";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue