Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (14 sloc) 350 Bytes
server {
listen 80;
server_name <%= domain.name %>;
<% if domain.redirect_target_url %>
location / {
return 301 https://<%= domain.redirect_target_url %>$request_uri;
}
<% else %>
location / {
return 301 https://$server_name$request_uri;
}
<% end %>
<%= acme_challenge_location %>
}