comparison host/startup/nginx/luanhost_controller.conf.luan @ 2146:2bc779c2451d nginx_decoupled

rename files
author Violet7
date Wed, 21 Jan 2026 20:15:11 -0800
parents
children
comparison
equal deleted inserted replaced
2145:2b498e7f6d9e 2146:2bc779c2451d
1 local luanhostDir = ...
2
3 %>
4 proxy_cache_path /usr/local/nginx_cache levels=1:2 keys_zone=nginx_cache:60m max_size=10g inactive=60m use_temp_path=off;
5 server {
6 # ensure no other default_server exists!
7 # nginx usually has one at /etc/nginx/sites-enabled/default
8 listen 80 default_server;
9 listen [::]:80 default_server;
10 # DON'T put this in the auto-loaded configs dir,
11 # it is not meant to be loaded on its own.
12 include <%=luanhostDir%>/local/luanhost_default_site.conf;
13
14 location /.well-known/acme-challenge/ {
15 # $host/ssl does not exist for non-ssl sites and requests to here
16 # will fail with 404 for those sites, which is what we want
17 alias <%=luanhostDir%>/sites/$host/ssl/acme-challenge/;
18 try_files $uri $uri/ =404;
19 }
20 }
21
22 # glob pattern returns no results for site dirs that don't have
23 # the ssl/ subdir, so this is ok
24 include <%=luanhostDir%>/sites/*/ssl/nginx.ssl.conf;
25 <%