Mercurial Hosting > luan
view host/startup/nginx/nginx.ssl.conf.luan @ 2092:429827024f4e ssltesting tip
inline local_https.sh + minor
| author | Violet7 |
|---|---|
| date | Fri, 12 Dec 2025 18:53:15 -0800 |
| parents | 639441abad7b |
| children |
line wrap: on
line source
local rootDir, domain = ... %> server { server_name <%=domain%>; listen 80; listen [::]:80; location / { return 301 https://$http_host$request_uri; } location /.well-known/acme-challenge/ { alias <%=rootDir%>/sites/$host/acme-challenge/; autoindex on; } } server { server_name <%=domain%>; listen 443 ssl; 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; } <%
