Mercurial Hosting > luan
annotate host/startup/nginx/nginx.ssl.conf.luan @ 2086:a3a97ccd4b27 ssltesting
remove superfluous code
| author | Violet7 |
|---|---|
| date | Wed, 10 Dec 2025 16:32:42 -0800 |
| parents | c35179c79298 |
| children | 639441abad7b |
| rev | line source |
|---|---|
| 1632 | 1 local rootDir, domain = ... |
| 2 | |
| 3 %> | |
| 4 server { | |
| 5 server_name <%=domain%>; | |
| 6 listen 80; | |
| 1776 | 7 listen [::]:80; |
|
2085
c35179c79298
alias <%=rootDir%>/sites/$host/acme-challenge/
Franklin Schmidt <fschmidt@gmail.com>
parents:
2080
diff
changeset
|
8 |
|
c35179c79298
alias <%=rootDir%>/sites/$host/acme-challenge/
Franklin Schmidt <fschmidt@gmail.com>
parents:
2080
diff
changeset
|
9 location / { |
|
c35179c79298
alias <%=rootDir%>/sites/$host/acme-challenge/
Franklin Schmidt <fschmidt@gmail.com>
parents:
2080
diff
changeset
|
10 return 301 https://$http_host$request_uri; |
|
c35179c79298
alias <%=rootDir%>/sites/$host/acme-challenge/
Franklin Schmidt <fschmidt@gmail.com>
parents:
2080
diff
changeset
|
11 } |
|
c35179c79298
alias <%=rootDir%>/sites/$host/acme-challenge/
Franklin Schmidt <fschmidt@gmail.com>
parents:
2080
diff
changeset
|
12 |
|
c35179c79298
alias <%=rootDir%>/sites/$host/acme-challenge/
Franklin Schmidt <fschmidt@gmail.com>
parents:
2080
diff
changeset
|
13 location /.well-known/acme-challenge/ { |
|
c35179c79298
alias <%=rootDir%>/sites/$host/acme-challenge/
Franklin Schmidt <fschmidt@gmail.com>
parents:
2080
diff
changeset
|
14 alias <%=rootDir%>/sites/$host/acme-challenge/; |
|
c35179c79298
alias <%=rootDir%>/sites/$host/acme-challenge/
Franklin Schmidt <fschmidt@gmail.com>
parents:
2080
diff
changeset
|
15 autoindex on; |
|
c35179c79298
alias <%=rootDir%>/sites/$host/acme-challenge/
Franklin Schmidt <fschmidt@gmail.com>
parents:
2080
diff
changeset
|
16 } |
| 1632 | 17 } |
| 18 | |
| 19 server { | |
| 20 server_name <%=domain%>; | |
| 21 listen 443 ssl; | |
| 1776 | 22 listen [::]:443 ssl; |
| 1632 | 23 |
| 24 if ($host != $server_name) { | |
| 25 return 301 http://$http_host$request_uri; | |
| 26 } | |
| 27 | |
| 2080 | 28 ssl_certificate <%=rootDir%>/sites/<%=domain%>/ssl/fullchain.cer; |
| 29 ssl_certificate_key <%=rootDir%>/sites/<%=domain%>/ssl/<%=domain%>.key; | |
| 1727 | 30 include <%=rootDir%>/sites/<%=domain%>/site/nginx.*.conf; |
| 1632 | 31 include <%=rootDir%>/local/nginx.default.conf; |
| 32 } | |
| 33 <% |
