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

6 lines
163 B
Django/Jinja

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