Implemented redirect function for domains

This commit is contained in:
2021-10-20 10:22:03 +02:00
parent d45da7497f
commit 90fa9f830f
5 changed files with 31 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
server {
server_name {{domain}};
{% include 'roles/native-letsencrypt/templates/ssl_header.j2' %}
return 301 https://{{target_domain}}$request_uri;
}