Mercurial Hosting > luan
annotate host/startup/nginx/nginx.ssl.conf.luan @ 1648:224af797b1f9
Mainly small install script improvements
- Consistent usage of `$LUANHOME`, removed reliance on current directory.
- Made Luan build and install fine (on Linux) without requiring launching it via sudo. Only asks to elevate privileges if installation failed.
- Minor spelling mistake fix.
| author | Fox |
|---|---|
| date | Mon, 28 Mar 2022 18:00:12 +0200 |
| parents | 0344a535b1db |
| children | 39af1c737191 |
| rev | line source |
|---|---|
| 1632 | 1 local rootDir, domain = ... |
| 2 | |
| 3 %> | |
| 4 server { | |
| 5 server_name <%=domain%>; | |
| 6 listen 80; | |
| 7 return 301 https://$http_host$request_uri; | |
| 8 } | |
| 9 | |
| 10 server { | |
| 11 server_name <%=domain%>; | |
| 12 listen 443 ssl; | |
| 13 | |
| 14 if ($host != $server_name) { | |
| 15 return 301 http://$http_host$request_uri; | |
| 16 } | |
| 17 | |
| 18 ssl_certificate <%=rootDir%>/sites/<%=domain%>/fullchain.cer; | |
| 19 ssl_certificate_key <%=rootDir%>/sites/<%=domain%>/<%=domain%>.key; | |
| 20 include <%=rootDir%>/local/nginx.default.conf; | |
| 21 } | |
| 22 <% |
