Mercurial Hosting > luan
comparison host/startup/nginx/nginx.conf.luan @ 2117:1e247cd012ee ssltesting
use site_dir/ssl for all ssl related files; raise error() on empty acme-tiny output.
| author | Violet7 |
|---|---|
| date | Tue, 06 Jan 2026 09:01:44 -0800 |
| parents | 0d247a84c26d |
| children |
comparison
equal
deleted
inserted
replaced
| 2116:059afc92310b | 2117:1e247cd012ee |
|---|---|
| 25 listen 80 default_server; | 25 listen 80 default_server; |
| 26 listen [::]:80 default_server; | 26 listen [::]:80 default_server; |
| 27 include nginx.default.conf; | 27 include nginx.default.conf; |
| 28 | 28 |
| 29 location /.well-known/acme-challenge/ { | 29 location /.well-known/acme-challenge/ { |
| 30 alias <%=rootDir%>/sites/$host/acme-challenge/; | 30 # $host/ssl does not exist for non-ssl sites and requests to here |
| 31 # will fail with 404 for those sites, which is what we want | |
| 32 alias <%=rootDir%>/sites/$host/ssl/acme-challenge/; | |
| 31 autoindex on; | 33 autoindex on; |
| 32 } | 34 } |
| 33 } | 35 } |
| 34 | 36 |
| 35 include <%=rootDir%>/sites/*/nginx.ssl.conf; | 37 # glob pattern returns no results for site dirs that don't have |
| 38 # the ssl/ subdir, so this is ok | |
| 39 include <%=rootDir%>/sites/*/ssl/nginx.ssl.conf; | |
| 36 } | 40 } |
| 37 <% | 41 <% |
