Mercurial Hosting > luan
view host/startup/nginx.ssl.conf.luan @ 1635:fd3d56f39450
rearrange startup files
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 14 Dec 2021 18:50:43 -0700 |
parents | b735ed134662 |
children |
line wrap: on
line source
local rootDir, domain = ... %> server { server_name <%=domain%>; listen 80; return 301 https://$http_host$request_uri; } server { server_name <%=domain%>; listen 443 ssl; if ($host != $server_name) { return 301 http://$http_host$request_uri; } ssl_certificate <%=rootDir%>/sites/<%=domain%>/fullchain.cer; ssl_certificate_key <%=rootDir%>/sites/<%=domain%>/<%=domain%>.key; include <%=rootDir%>/local/nginx.default.conf; } <%