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.
17 lines
395 B
Nginx Configuration File
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;
|
|
}
|
|
}
|