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

6 lines
149 B
Plaintext
Raw Normal View History

server {
server_name {{domain}};
2023-09-02 13:13:28 +02:00
{% include 'roles/letsencrypt/templates/ssl_header.j2' %}
return 301 https://{{target_domain}}$request_uri;
}