annotate host/startup/nginx/nginx.acme_setup.conf.luan @ 2034:d718511fc69f acme-tiny

Begin work on moving to tiny-acme.
author Violet7
date Tue, 04 Nov 2025 20:28:50 -0800
parents
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 %>
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
4 # This config exists to serve up acme challenges on
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
5 # .well-known for initial domain verification by letsencrypt.
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
6 # see set_https in luan/src/luan/host/https.luan for more.
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
7 server {
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
8 server_name <%=domain%>;
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
9 listen 80;
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
10 listen [::]:80;
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
11
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
12 error_log <%=rootDir%>/error.log;
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
13 access_log <%=rootDir%>/access.log;
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
14
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
15 root <%=rootDir%>;
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
16 index index.html;
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
17
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
18 location / {
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
19 try_files $uri $uri/ =404;
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
20 }
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
21 }
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
22
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
23 <%
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
24