Skip to content

Commit b41cfe1

Browse files
committed
unimportant
1 parent 4f86bbc commit b41cfe1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nginx-luapower-prod.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ http {
77
location ~ ^/files/(.*)$ {
88
try_files /../files/$1 =404;
99
}
10+
# serve some static file types from the luapower directory directly.
11+
location ~ \.(js|json|css|html|otf|ttf|woff|woff2|gif|jpg|jpeg|png|svg)$ {
12+
try_files /$www_dir$uri /../luapower/media/fonts$uri /../luapower/$uri $uri @lua;
13+
}
1014
include nginx-webb.conf;
1115
listen 127.0.0.1:8881;
1216
set $www_dir "luapower-www";

0 commit comments

Comments
 (0)