nginx_site: Fix certbot virtual host
This commit is contained in:
parent
d0f8144753
commit
ce72d0d17a
1 changed files with 4 additions and 0 deletions
|
@ -54,6 +54,7 @@ server {
|
|||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name {{ nginx_site_name }};
|
||||
{% if nginx_site_name != 'certbot.home.foo.sh' %}
|
||||
location /.well-known/acme-challenge/ {
|
||||
proxy_pass http://certbot.home.foo.sh/.well-known/acme-challenge/;
|
||||
}
|
||||
|
@ -64,5 +65,8 @@ server {
|
|||
return 301 https://$host$request_uri;
|
||||
{% endif %}
|
||||
}
|
||||
{% else %}
|
||||
root /srv/web/{{ nginx_site_name }};
|
||||
{% endif %}
|
||||
}
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue