pagepiper/docker/web/nginx.conf
pyr0ball 3a0608ff98 chore: initial pagepiper repo scaffold
Adds pyproject.toml, environment.yml, Dockerfile, docker/web (Vue+nginx),
compose.yml, compose.override.yml.example, manage.sh, .env.example,
.gitignore, and config stubs for the pagepiper self-hosted PDF library tool.
Port 8521. No secrets committed.
2026-05-04 16:54:08 -07:00

17 lines
395 B
Nginx Configuration File

server {
listen 80;
root /usr/share/nginx/html;
index index.html;
# SPA routing — all non-asset paths → index.html
location / {
try_files $uri $uri/ /index.html;
}
# Proxy API requests to FastAPI
location /api/ {
proxy_pass http://localhost:8521;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}