Skip to content

Commit 7b735e3

Browse files
committed
sprites added
1 parent 8f6e45d commit 7b735e3

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

scripts/http_host/http_host_lib/templates/nginx_cf.conf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,18 @@ server {
3838
add_header Cache-Control public;
3939
}
4040

41+
location /sprites/ {
42+
# trailing slash
43+
44+
alias /data/ofm/http_host/assets/sprites/; # trailing slash
45+
try_files $uri =404;
46+
47+
expires 1d; # target 10y
48+
49+
add_header 'Access-Control-Allow-Origin' '*' always;
50+
add_header Cache-Control public;
51+
}
52+
4153
location /ne2_shaded/ {
4254
# trailing slash
4355

ssh_lib/kernel.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
from ssh_lib import ASSETS_DIR
2-
from ssh_lib.utils import put, put_str
1+
from ssh_lib.utils import put_str
32

43

54
def kernel_somaxconn65k(c):

0 commit comments

Comments
 (0)