Mercurial Hosting > luan
annotate host/startup/nginx/nginx.acme_setup.conf.luan @ 2077:6016342e54ea ssltesting
minor
| author | Violet7 |
|---|---|
| date | Tue, 09 Dec 2025 17:08:57 -0800 |
| parents | 385ab09fb2ca |
| children | d7de1f976c1d |
| rev | line source |
|---|---|
| 2034 | 1 local rootDir, domain = ... |
| 2 | |
| 3 %> | |
|
2036
2740f8a9ba3a
First test prototype (also convert spaces to tabs and remove *.orig files)
Violet7
parents:
2034
diff
changeset
|
4 # This config exists to serve up acme challenges on |
|
2740f8a9ba3a
First test prototype (also convert spaces to tabs and remove *.orig files)
Violet7
parents:
2034
diff
changeset
|
5 # .well-known for initial domain verification by letsencrypt. |
|
2740f8a9ba3a
First test prototype (also convert spaces to tabs and remove *.orig files)
Violet7
parents:
2034
diff
changeset
|
6 # see set_https in luan/src/luan/host/https.luan for more. |
|
2740f8a9ba3a
First test prototype (also convert spaces to tabs and remove *.orig files)
Violet7
parents:
2034
diff
changeset
|
7 server { |
|
2740f8a9ba3a
First test prototype (also convert spaces to tabs and remove *.orig files)
Violet7
parents:
2034
diff
changeset
|
8 server_name <%=domain%>; |
|
2740f8a9ba3a
First test prototype (also convert spaces to tabs and remove *.orig files)
Violet7
parents:
2034
diff
changeset
|
9 listen 80; |
|
2740f8a9ba3a
First test prototype (also convert spaces to tabs and remove *.orig files)
Violet7
parents:
2034
diff
changeset
|
10 listen [::]:80; |
| 2034 | 11 |
|
2036
2740f8a9ba3a
First test prototype (also convert spaces to tabs and remove *.orig files)
Violet7
parents:
2034
diff
changeset
|
12 error_log <%=rootDir%>/error.log; |
|
2740f8a9ba3a
First test prototype (also convert spaces to tabs and remove *.orig files)
Violet7
parents:
2034
diff
changeset
|
13 access_log <%=rootDir%>/access.log; |
| 2034 | 14 |
| 2076 | 15 location /.well-known/acme-challenge/ { |
| 16 root <%=rootDir%>; | |
|
2036
2740f8a9ba3a
First test prototype (also convert spaces to tabs and remove *.orig files)
Violet7
parents:
2034
diff
changeset
|
17 try_files $uri $uri/ =404; |
|
2740f8a9ba3a
First test prototype (also convert spaces to tabs and remove *.orig files)
Violet7
parents:
2034
diff
changeset
|
18 } |
| 2076 | 19 |
| 20 include nginx.default.conf; | |
| 21 | |
|
2036
2740f8a9ba3a
First test prototype (also convert spaces to tabs and remove *.orig files)
Violet7
parents:
2034
diff
changeset
|
22 } |
| 2034 | 23 |
| 24 <% | |
| 25 |
