computer-playbook/roles/nginx-domain-redirect/templates/redirect.domain.nginx.conf.j2

6 lines
149 B
Django/Jinja

server {
server_name {{domain}};
{% include 'roles/letsencrypt/templates/ssl_header.j2' %}
return 301 https://{{target_domain}}$request_uri;
}