Static app (no build step) served by unprivileged nginx in a container: choose a font, size and theme, pick a character to highlight their lines and step through them, read in a distraction-free mode, or export a PDF via the print dialog (one page per original page). Includes the transcription of typescript pages 5-27 (pages 1-4 and 7 are missing in the original), a parser with node:test tests, and self-hosted OFL fonts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HA82gVRDXpoukzgMFumoJt
22 lines
653 B
Nginx Configuration File
22 lines
653 B
Nginx Configuration File
# Static file server for the reader. Plays are UTF-8 text; say so explicitly.
|
|
server {
|
|
listen 8080;
|
|
server_name _;
|
|
root /usr/share/nginx/html;
|
|
|
|
charset utf-8;
|
|
charset_types text/plain text/css application/javascript application/json;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
include /etc/nginx/conf.d/security-headers.inc;
|
|
}
|
|
location /plays/ {
|
|
add_header Cache-Control "no-cache";
|
|
include /etc/nginx/conf.d/security-headers.inc;
|
|
}
|
|
location /fonts/ {
|
|
add_header Cache-Control "public, max-age=2592000";
|
|
include /etc/nginx/conf.d/security-headers.inc;
|
|
}
|
|
}
|