1
0
forked from infra/ansible

replace hard coded values by variables

This commit is contained in:
Markus 2019-05-13 20:22:02 +02:00
parent 00826a8d14
commit e5ca7f59db
3 changed files with 3 additions and 4 deletions

View File

@ -30,7 +30,7 @@
notify: Restart uwsgi
- name: Ensure certificates are available
command: openssl req -x509 -nodes -newkey rsa:2048 -keyout /etc/nginx/ssl/dss.binary-kitchen.de.key -out /etc/nginx/ssl/dss.binary-kitchen.de.crt -days 730 -subj "/CN=dss.binary-kitchen.de" creates=/etc/nginx/ssl/dss.binary-kitchen.de.crt
command: openssl req -x509 -nodes -newkey rsa:2048 -keyout /etc/nginx/ssl/{{ dss_domain }}.key -out /etc/nginx/ssl/{{ dss_domain }}.crt -days 730 -subj "/CN={{ dss_domain }}" creates=/etc/nginx/ssl/{{ dss_domain }}.crt
notify: Restart nginx
- name: Configure certificate manager

View File

@ -20,8 +20,8 @@ server {
server_name {{ dss_domain }};
ssl_certificate_key /etc/nginx/ssl/dss.binary-kitchen.de.key;
ssl_certificate /etc/nginx/ssl/dss.binary-kitchen.de.crt;
ssl_certificate_key /etc/nginx/ssl/{{ dss_domain }}.key;
ssl_certificate /etc/nginx/ssl/{{ dss_domain }}.crt;
location / {
uwsgi_pass 127.0.0.1:{{ dss_uwsgi_port }};

View File

@ -28,5 +28,4 @@ server {
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://localhost:3000;
}
}