annotate host/startup/nginx/nginx.acme_setup.conf.luan @ 2080:d7de1f976c1d ssltesting

use site/xyz/ssl/ for fullchain
author Violet7
date Tue, 09 Dec 2025 17:33:51 -0800
parents 385ab09fb2ca
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2034
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
1 local rootDir, domain = ...
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
2
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
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
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
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
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
14
2080
d7de1f976c1d use site/xyz/ssl/ for fullchain
Violet7
parents: 2076
diff changeset
15 # this directive should be included in a per-site
d7de1f976c1d use site/xyz/ssl/ for fullchain
Violet7
parents: 2076
diff changeset
16 # nginx conf. this only exists for nginx.ssl.conf
d7de1f976c1d use site/xyz/ssl/ for fullchain
Violet7
parents: 2076
diff changeset
17 # as far as I am aware. Currently, this will cause
d7de1f976c1d use site/xyz/ssl/ for fullchain
Violet7
parents: 2076
diff changeset
18 # conflict with the server block defined in that
d7de1f976c1d use site/xyz/ssl/ for fullchain
Violet7
parents: 2076
diff changeset
19 # file, so this file should be deleted when the
d7de1f976c1d use site/xyz/ssl/ for fullchain
Violet7
parents: 2076
diff changeset
20 # initial setup is finished, and this directive
d7de1f976c1d use site/xyz/ssl/ for fullchain
Violet7
parents: 2076
diff changeset
21 # should be added to that file instead.
2076
385ab09fb2ca initial draft
Violet7
parents: 2036
diff changeset
22 location /.well-known/acme-challenge/ {
385ab09fb2ca initial draft
Violet7
parents: 2036
diff changeset
23 root <%=rootDir%>;
2080
d7de1f976c1d use site/xyz/ssl/ for fullchain
Violet7
parents: 2076
diff changeset
24 try_files $uri $uri/ =404;
2036
2740f8a9ba3a First test prototype (also convert spaces to tabs and remove *.orig files)
Violet7
parents: 2034
diff changeset
25 }
2076
385ab09fb2ca initial draft
Violet7
parents: 2036
diff changeset
26
385ab09fb2ca initial draft
Violet7
parents: 2036
diff changeset
27 include nginx.default.conf;
385ab09fb2ca initial draft
Violet7
parents: 2036
diff changeset
28
2036
2740f8a9ba3a First test prototype (also convert spaces to tabs and remove *.orig files)
Violet7
parents: 2034
diff changeset
29 }
2034
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
30
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
31 <%
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
32