diff --git a/.memory/worklog.json b/.memory/worklog.json index c0b1d74..aac9648 100644 --- a/.memory/worklog.json +++ b/.memory/worklog.json @@ -482,6 +482,13 @@ "message": "worklog.json auto-save tail", "hash": "3e10890", "files_changed": 1 + }, + { + "ts": "2026-04-18T15:42:03+08:00", + "type": "commit", + "message": "auto-save 2026-04-18 15:40 (~1)", + "hash": "d46152c", + "files_changed": 1 } ] } diff --git a/web/Dockerfile b/web/Dockerfile index 872eaa0..fbfc09e 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -2,7 +2,24 @@ FROM nginx:alpine COPY . /usr/share/nginx/html/ -RUN printf 'server {\n\ +RUN printf 'types {\n\ + text/html html htm;\n\ + text/css css;\n\ + text/plain txt;\n\ + text/markdown md;\n\ + application/javascript js;\n\ + application/json json;\n\ + image/jpeg jpg jpeg;\n\ + image/png png;\n\ + image/webp webp;\n\ + image/svg+xml svg;\n\ + image/x-icon ico;\n\ + font/woff woff;\n\ + font/woff2 woff2;\n\ +}\n\ +default_type application/octet-stream;\n\ +\n\ +server {\n\ listen 80;\n\ server_name _;\n\ root /usr/share/nginx/html;\n\ @@ -26,8 +43,10 @@ RUN printf 'server {\n\ }\n\ \n\ gzip on;\n\ - gzip_types text/plain text/markdown text/css application/javascript application/json image/svg+xml;\n\ - gzip_min_length 1024;\n\ + gzip_comp_level 6;\n\ + gzip_types text/plain text/markdown text/css application/javascript application/json image/svg+xml text/html;\n\ + gzip_min_length 512;\n\ + gzip_vary on;\n\ }\n' > /etc/nginx/conf.d/default.conf EXPOSE 80