- 21 章小说正文 + 22 幅原创插图 - 近未来都市科幻爽文主题(AI 崩溃后古法程序员逆袭) - 单页静态展示站(nginx:alpine + Dockerfile,Coolify 部署) - Hero 主角参考图半透明叠加 + 金色渐变标题 - 章节目录 + 逐章阅读 + 画廊 lightbox Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
34 lines
891 B
Docker
34 lines
891 B
Docker
FROM nginx:alpine
|
|
|
|
COPY . /usr/share/nginx/html/
|
|
|
|
RUN printf 'server {\n\
|
|
listen 80;\n\
|
|
server_name _;\n\
|
|
root /usr/share/nginx/html;\n\
|
|
index index.html;\n\
|
|
client_max_body_size 50M;\n\
|
|
\n\
|
|
# jpg / webp / png: long cache\n\
|
|
location ~* \\.(jpg|jpeg|png|webp|avif|svg|ico|woff2?)$ {\n\
|
|
expires 30d;\n\
|
|
add_header Cache-Control "public, max-age=2592000, immutable";\n\
|
|
access_log off;\n\
|
|
}\n\
|
|
\n\
|
|
# html / md: always revalidate\n\
|
|
location ~* \\.(html|md)$ {\n\
|
|
add_header Cache-Control "public, max-age=0, must-revalidate";\n\
|
|
}\n\
|
|
\n\
|
|
location / {\n\
|
|
try_files $uri $uri/ /index.html;\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\
|
|
}\n' > /etc/nginx/conf.d/default.conf
|
|
|
|
EXPOSE 80
|