Mercurial Hosting > luan
comparison host/startup/nginx/nginx.conf.luan @ 2122:ce75c0136e28
merge
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Wed, 07 Jan 2026 14:00:43 -0700 |
| parents | 1e247cd012ee |
| children |
comparison
equal
deleted
inserted
replaced
| 2089:454bc5a2ba10 | 2122:ce75c0136e28 |
|---|---|
| 1 local rootDir, user, group = ... | 1 local rootDir, user, group = ... |
| 2 | 2 |
| 3 %> | 3 %> |
| 4 worker_processes 4; | 4 worker_processes 4; |
| 5 user <%=user%> <%=group%>; | 5 user <%=user%> <%=group%>; |
| 6 pid <%=rootDir%>/local/nginx.pid; | 6 pid /var/run/luanhost_nginx.pid; |
| 7 | 7 |
| 8 events { | 8 events { |
| 9 worker_connections 4096; | 9 worker_connections 4096; |
| 10 } | 10 } |
| 11 | 11 |
| 12 http { | 12 http { |
| 13 include mime.types; | 13 include mime.types; |
| 14 default_type application/octet-stream; | 14 default_type application/octet-stream; |
| 23 | 23 |
| 24 server { | 24 server { |
| 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 | |
| 29 location /.well-known/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/; | |
| 33 autoindex on; | |
| 34 } | |
| 28 } | 35 } |
| 29 | 36 |
| 30 include <%=rootDir%>/sites/*/nginx.ssl.conf; | 37 # glob pattern returns no results for site dirs that don't have |
| 31 include /tmp/acme_setup/*/nginx.acme_setup.conf; | 38 # the ssl/ subdir, so this is ok |
| 39 include <%=rootDir%>/sites/*/ssl/nginx.ssl.conf; | |
| 32 } | 40 } |
| 33 <% | 41 <% |
