Migrate live changes from facere-website and add deploy configs

Bring in the newer app.jsx/styles.css/facere.html that were edited
directly on the deployed copy, rename Facere.html -> facere.html to
match the nginx index, and check in the docker-compose + nginx.conf
that drives the container.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-03 01:41:50 +08:00
parent 75aad16a26
commit 8ea175fa78
5 changed files with 182 additions and 105 deletions

10
deploy/docker-compose.yml Normal file
View File

@@ -0,0 +1,10 @@
services:
facere-web:
image: nginx:1.27-alpine
container_name: facere-web
restart: unless-stopped
ports:
- "9527:80"
volumes:
- ../:/usr/share/nginx/html:ro
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro

39
deploy/nginx.conf Normal file
View File

@@ -0,0 +1,39 @@
server {
listen 80;
server_name web.facere.cc _;
root /usr/share/nginx/html;
index facere.html index.html;
charset utf-8;
location = / {
try_files /facere.html =404;
}
location / {
try_files $uri $uri/ /facere.html;
}
# CSS/JS/JSX: short cache so future deploys are picked up promptly
location ~* \.(?:css|js|jsx)$ {
expires 5m;
add_header Cache-Control "public, max-age=300, must-revalidate";
types { text/css css; application/javascript js; application/javascript jsx; }
try_files $uri =404;
}
# Static media: long cache (filenames are stable / change when content changes)
location ~* \.(?:png|jpe?g|gif|webp|svg|mp4|webm|woff2?|ttf|otf|ico)$ {
expires 7d;
add_header Cache-Control "public, max-age=604800";
try_files $uri =404;
}
gzip on;
gzip_types text/plain text/css application/javascript application/json image/svg+xml;
gzip_min_length 1024;
access_log /var/log/nginx/facere.access.log;
error_log /var/log/nginx/facere.error.log;
}