mirror of
https://github.com/rybbit-io/rybbit.git
synced 2025-05-17 15:01:08 +02:00
* tomato * wip * Add timestamp * wip * woip * Update cleanup logic for multiSiteIps: change IP removal threshold from 1 hour to 24 hours and adjust site_id tracking limit from 3 to 1. * wip * Implement crawler detection in /track endpoint to log activity without blocking requests * tomato protection * fix typo * disable origin check * Update site_id tracking limit in multiSiteIps from 1 to 3 to allow more flexibility in request processing * log * Fix * log creds * fix * remove temp
29 lines
No EOL
800 B
Caddyfile
29 lines
No EOL
800 B
Caddyfile
# Caddyfile
|
|
# Use the domain name passed from docker-compose environment
|
|
{$DOMAIN_NAME} {
|
|
# Enable compression
|
|
encode zstd gzip
|
|
|
|
handle_path /api/* {
|
|
# Forward the real client IP and other proxy information
|
|
header_up X-Forwarded-For {remote_host}
|
|
header_up X-Real-IP {remote_host}
|
|
header_up X-Forwarded-Proto {scheme}
|
|
header_up X-Forwarded-Host {host}
|
|
|
|
reverse_proxy backend:3001
|
|
}
|
|
|
|
|
|
# Proxy all other requests to the client service
|
|
handle {
|
|
# Forward the real client IP and other proxy information
|
|
header_up X-Forwarded-For {remote_host}
|
|
header_up X-Real-IP {remote_host}
|
|
header_up X-Forwarded-Proto {scheme}
|
|
header_up X-Forwarded-Host {host}
|
|
|
|
reverse_proxy client:3002
|
|
}
|
|
|
|
} |