add valid cert to internal communication
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
5
roles/webserver/templates/certbot.sh
Normal file
5
roles/webserver/templates/certbot.sh
Normal file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
# {{ansible_managed}}
|
||||
{% for server in webserver %}
|
||||
certbot renew --nginx --cert-name {{ server.domain }}
|
||||
{% endfor %}
|
@ -69,9 +69,9 @@ http {
|
||||
server_name {{ server.domain }};
|
||||
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
|
||||
ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
|
||||
{% if server.bigrequests %}
|
||||
{% if server.bigrequests -%}
|
||||
client_max_body_size 8G;
|
||||
{% endif %}
|
||||
{% endif -%}
|
||||
location /{
|
||||
{% if server.https %}
|
||||
proxy_pass https://127.0.0.1:{{ server.port }};
|
||||
@ -97,11 +97,11 @@ http {
|
||||
proxy_pass http://127.0.0.1:{{ location.port }};
|
||||
{% endif %}
|
||||
}
|
||||
{% endfor %}
|
||||
{% endfor -%}
|
||||
{% endif %}
|
||||
}
|
||||
|
||||
{%- endfor %}
|
||||
{%- endfor -%}
|
||||
|
||||
server {
|
||||
listen 8888;
|
||||
|
Reference in New Issue
Block a user