forked from infra/ansible
web: new domain makerspace-regensburg.de
This commit is contained in:
parent
d434e9e70d
commit
59cca157e2
@ -27,3 +27,17 @@ www.ccc-r.de:
|
|||||||
perm: '400'
|
perm: '400'
|
||||||
format: key
|
format: key
|
||||||
action: '/usr/sbin/service nginx restart'
|
action: '/usr/sbin/service nginx restart'
|
||||||
|
|
||||||
|
www.makerspace-regensburg.de:
|
||||||
|
- path: /etc/nginx/ssl/www.makerspace-regensburg.de.crt
|
||||||
|
user: root
|
||||||
|
group: root
|
||||||
|
perm: '400'
|
||||||
|
format: crt,ca
|
||||||
|
action: '/usr/sbin/service nginx restart'
|
||||||
|
- path: /etc/nginx/ssl/www.makerspace-regensburg.de.key
|
||||||
|
user: root
|
||||||
|
group: root
|
||||||
|
perm: '400'
|
||||||
|
format: key
|
||||||
|
action: '/usr/sbin/service nginx restart'
|
||||||
|
@ -98,3 +98,33 @@ server {
|
|||||||
|
|
||||||
default_type text/html;
|
default_type text/html;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
|
|
||||||
|
server_name makerspace-regensburg.de www.makerspace-regensburg.de;
|
||||||
|
|
||||||
|
location /.well-known/acme-challenge {
|
||||||
|
default_type "text/plain";
|
||||||
|
alias /var/www/acme-challenge;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
|
return 301 https://www.makerspace-regensburg.de$request_uri;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 443 ssl http2;
|
||||||
|
listen [::]:443 ssl http2;
|
||||||
|
|
||||||
|
server_name www.makerspace-regensburg.de;
|
||||||
|
|
||||||
|
ssl_certificate_key /etc/nginx/ssl/www.makerspace-regensburg.de.key;
|
||||||
|
ssl_certificate /etc/nginx/ssl/www.makerspace-regensburg.de.crt;
|
||||||
|
|
||||||
|
root /var/www/makerspace-regensburg;
|
||||||
|
|
||||||
|
default_type text/html;
|
||||||
|
}
|
||||||
|
@ -19,6 +19,10 @@
|
|||||||
command: openssl req -x509 -nodes -newkey rsa:2048 -keyout /etc/nginx/ssl/www.ccc-r.de.key -out /etc/nginx/ssl/www.ccc-r.de.crt -days 730 -subj "/CN=www.ccc-r.de" creates=/etc/nginx/ssl/www.ccc-r.de.crt
|
command: openssl req -x509 -nodes -newkey rsa:2048 -keyout /etc/nginx/ssl/www.ccc-r.de.key -out /etc/nginx/ssl/www.ccc-r.de.crt -days 730 -subj "/CN=www.ccc-r.de" creates=/etc/nginx/ssl/www.ccc-r.de.crt
|
||||||
notify: Restart nginx
|
notify: Restart nginx
|
||||||
|
|
||||||
|
- name: Ensure (MS-R) certificates are available
|
||||||
|
command: openssl req -x509 -nodes -newkey rsa:2048 -keyout /etc/nginx/ssl/www.makerspace-regensburg.de.key -out /etc/nginx/ssl/www.makerspace-regensburg.de.crt -days 730 -subj "/CN=www.makerspace-regensburg.de" creates=/etc/nginx/ssl/www.makerspace-regensburg.de.crt
|
||||||
|
notify: Restart nginx
|
||||||
|
|
||||||
- name: Configure certificate manager
|
- name: Configure certificate manager
|
||||||
copy: src=certs dest=/etc/acme/domains.d/www.binary-kitchen.de.conf
|
copy: src=certs dest=/etc/acme/domains.d/www.binary-kitchen.de.conf
|
||||||
notify: Run certmgr
|
notify: Run certmgr
|
||||||
|
Loading…
Reference in New Issue
Block a user