Skip to content

Commit

Permalink
improve website collection
Browse files Browse the repository at this point in the history
  • Loading branch information
DO1JLR committed Jan 1, 2021
1 parent 4ca138a commit 06611f5
Show file tree
Hide file tree
Showing 7 changed files with 70 additions and 0 deletions.
5 changes: 5 additions & 0 deletions host_vars/web01.l3d.space.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ nginx_sites:
- name: 'www.c3woc.eu'
- name: 'c3woc.cn'
- name: 'www.c3woc.cn'
- name: 'l3d.space'
- name: 'www.l3d.space'
- name: 'ansible.l3d.space'
- name: 'www.ansible.l3d.space'


acme_notification_email: "acme_{{ inventory_hostname }}@l3d.yt"

Expand Down
3 changes: 3 additions & 0 deletions hosts.ini
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
[web]
web01.l3d.space

[mail]
mail01.l3d.space
6 changes: 6 additions & 0 deletions site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,9 @@
- { role: acmetool2, tags: [web,acmetool]}
- { role: nginx2, tags: [web,nginx]}
- { role: goaccess, tags: [web,goaccess]}

#- name: deploy mail config
# hosts: mail
# roles:
# - { role: postfix, tags: [mail,postfix]}
# - { role: dovecot, tags: [mail,dovecot]}
14 changes: 14 additions & 0 deletions templates/files/nginx/sites/ansible.l3d.space_tls.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;

server_name ansible.l3d.space;

include snippets/tls_parameters_{{ site.name }}.snippet.conf;
include snippets/tls_certificate_{{ site.name }}.snippet.conf;
include snippets/logging_{{ site.name }}.snippet.conf;

location / {
return 308 https://github.com/roles-ansible/;
}
}
14 changes: 14 additions & 0 deletions templates/files/nginx/sites/l3d.space_tls.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;

server_name l3d.space;

include snippets/tls_parameters_{{ site.name }}.snippet.conf;
include snippets/tls_certificate_{{ site.name }}.snippet.conf;
include snippets/logging_{{ site.name }}.snippet.conf;

location / {
return 418;
}
}
14 changes: 14 additions & 0 deletions templates/files/nginx/sites/www.ansible.l3d.space_tls.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;

server_name www.ansible.l3d.space;

include snippets/tls_parameters_{{ site.name }}.snippet.conf;
include snippets/tls_certificate_{{ site.name }}.snippet.conf;
include snippets/logging_{{ site.name }}.snippet.conf;

location / {
return 308 https://github.com/roles-ansible/;
}
}
14 changes: 14 additions & 0 deletions templates/files/nginx/sites/www.l3d.space_tls.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;

server_name www.l3d.space;

include snippets/tls_parameters_{{ site.name }}.snippet.conf;
include snippets/tls_certificate_{{ site.name }}.snippet.conf;
include snippets/logging_{{ site.name }}.snippet.conf;

location / {
return 418;
}
}

0 comments on commit 06611f5

Please sign in to comment.