view host/startup/nginx/nginx.acme_setup.conf.luan @ 2035:00bbfef1a86b acme-tiny

added Thread.try_synchronized
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 05 Nov 2025 11:20:47 -0700
parents d718511fc69f
children 2740f8a9ba3a
line wrap: on
line source

local rootDir, domain = ...

%>
  # This config exists to serve up acme challenges on
  # .well-known for initial domain verification by letsencrypt.
  # see set_https in luan/src/luan/host/https.luan for more.
  server {
    server_name <%=domain%>;
    listen 80;
    listen [::]:80;

    error_log <%=rootDir%>/error.log;
    access_log <%=rootDir%>/access.log;

    root <%=rootDir%>;
    index index.html;

    location / {
        try_files $uri $uri/ =404;
    }
  }

<%