Mercurial Hosting > luan
annotate host/startup/nginx/nginx.conf.luan @ 2085:c35179c79298 ssltesting
alias <%=rootDir%>/sites/$host/acme-challenge/
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Wed, 10 Dec 2025 11:44:41 -0700 |
| parents | 39d4215259ec |
| children | a3a97ccd4b27 |
| rev | line source |
|---|---|
| 1632 | 1 local rootDir, user, group = ... |
| 2 | |
| 3 %> | |
| 2083 | 4 worker_processes 4; |
| 1632 | 5 user <%=user%> <%=group%>; |
| 2053 | 6 pid <%=rootDir%>/local/nginx.pid; |
| 1632 | 7 |
| 8 events { | |
| 2083 | 9 worker_connections 4096; |
| 1632 | 10 } |
| 11 | |
| 12 http { | |
| 13 include mime.types; | |
| 14 default_type application/octet-stream; | |
| 15 sendfile on; | |
| 16 keepalive_timeout 65; | |
| 17 | |
| 18 proxy_cache_path <%=rootDir%>/local/nginx_cache levels=1:2 keys_zone=nginx_cache:60m max_size=10g inactive=60m use_temp_path=off; | |
| 19 | |
| 20 upstream luan { | |
| 21 server 127.0.0.1:8080; | |
| 22 } | |
| 23 | |
| 24 server { | |
| 25 listen 80 default_server; | |
| 1776 | 26 listen [::]:80 default_server; |
| 1632 | 27 include nginx.default.conf; |
|
2085
c35179c79298
alias <%=rootDir%>/sites/$host/acme-challenge/
Franklin Schmidt <fschmidt@gmail.com>
parents:
2083
diff
changeset
|
28 |
|
c35179c79298
alias <%=rootDir%>/sites/$host/acme-challenge/
Franklin Schmidt <fschmidt@gmail.com>
parents:
2083
diff
changeset
|
29 location /.well-known/acme-challenge/ { |
|
c35179c79298
alias <%=rootDir%>/sites/$host/acme-challenge/
Franklin Schmidt <fschmidt@gmail.com>
parents:
2083
diff
changeset
|
30 alias <%=rootDir%>/sites/$host/acme-challenge/; |
|
c35179c79298
alias <%=rootDir%>/sites/$host/acme-challenge/
Franklin Schmidt <fschmidt@gmail.com>
parents:
2083
diff
changeset
|
31 autoindex on; |
|
c35179c79298
alias <%=rootDir%>/sites/$host/acme-challenge/
Franklin Schmidt <fschmidt@gmail.com>
parents:
2083
diff
changeset
|
32 } |
| 1632 | 33 } |
| 34 | |
| 35 include <%=rootDir%>/sites/*/nginx.ssl.conf; | |
| 2077 | 36 include <%=rootDir%>/sites/*/nginx.acme_setup.conf; |
| 1632 | 37 } |
| 38 <% |
