linklogger/nginx.conf
2024-11-15 16:50:28 -06:00

25 lines
592 B
Nginx Configuration File

server {
listen 6464;
# Serve React static files
location / {
root /usr/share/nginx/html;
try_files $uri $uri/ /index.html;
}
# Proxy API requests to FastAPI
location /api/ {
proxy_pass http://localhost:5252;
}
# Proxy short link requests to FastAPI
location /c/ {
proxy_pass http://localhost:5252;
set_real_ip_from 0.0.0.0/0;
real_ip_header X-Forwarded-For;
real_ip_recursive on;
}
# Proxy requests to docs to FastAPI
location /docs/ {
proxy_pass http://localhost:5252;
}
}