replace hard coded values by variables
This commit is contained in:
parent
00826a8d14
commit
e5ca7f59db
@ -30,7 +30,7 @@
|
|||||||
notify: Restart uwsgi
|
notify: Restart uwsgi
|
||||||
|
|
||||||
- name: Ensure certificates are available
|
- 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
|
notify: Restart nginx
|
||||||
|
|
||||||
- name: Configure certificate manager
|
- name: Configure certificate manager
|
||||||
|
@ -20,8 +20,8 @@ server {
|
|||||||
|
|
||||||
server_name {{ dss_domain }};
|
server_name {{ dss_domain }};
|
||||||
|
|
||||||
ssl_certificate_key /etc/nginx/ssl/dss.binary-kitchen.de.key;
|
ssl_certificate_key /etc/nginx/ssl/{{ dss_domain }}.key;
|
||||||
ssl_certificate /etc/nginx/ssl/dss.binary-kitchen.de.crt;
|
ssl_certificate /etc/nginx/ssl/{{ dss_domain }}.crt;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
uwsgi_pass 127.0.0.1:{{ dss_uwsgi_port }};
|
uwsgi_pass 127.0.0.1:{{ dss_uwsgi_port }};
|
||||||
|
@ -28,5 +28,4 @@ server {
|
|||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_pass http://localhost:3000;
|
proxy_pass http://localhost:3000;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user