Skip to content

Commit

Permalink
proxycache: Ajout option dedicated_certbot_cert pour utiliser certifi…
Browse files Browse the repository at this point in the history
…cat dans /etc/letsencrypt/live/
  • Loading branch information
jocelynj committed Jul 6, 2024
1 parent 6fff538 commit d59a153
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion host_vars/proxy.moji.vm.openstreetmap.fr/proxy
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
host_proxy:
-
logname: "osmose"
websites: "dev.osmose.openstreetmap.fr osmose.openstreetmap.fr"
websites: "osmose.openstreetmap.fr dev.osmose.openstreetmap.fr"
target: "10.1.0.210"
redirect_to_https: True
dedicated_certbot_cert: True
-
logname: "beta.osmose"
websites: "beta.osmose.openstreetmap.fr"
Expand Down
4 changes: 4 additions & 0 deletions roles/proxycache/templates/nginx-site.j2
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,9 @@ server {
{% endif %}
}
{% endif %}
{% if item.dedicated_certbot_cert is defined %}
ssl_certificate /etc/letsencrypt/live/{{ item.websites.split(' ')[0] }}/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/{{ item.websites.split(' ')[0] }}/privkey.pem; # managed by Certbot
{% endif %}
}

0 comments on commit d59a153

Please sign in to comment.