This commit is contained in:
Ravi Prasad
2026-05-16 05:23:01 -05:00
parent 5cbcb04736
commit 81b55247f3
2 changed files with 11 additions and 0 deletions
+1
View File
@@ -33,3 +33,4 @@ data/nba.db
docs/restore_dump_remote.md
./docs/restore_dump_remote.md
docs/notes/conversation_1.md
docs/notes/conversation_2.md
+10
View File
@@ -7,6 +7,12 @@ events {
http {
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=api_cache:10m max_size=100m inactive=5m;
map $http_referer $blocked_referer {
default 0;
"~*nbasalarymodel\.xyz" 1;
"~*kacpertheater\.github\.io" 1;
}
upstream go_backend {
server api1:5000;
server api2:5000;
@@ -19,6 +25,10 @@ http {
access_log /dev/stdout;
error_log /dev/stderr;
if ($blocked_referer) {
return 403;
}
location /api/ {
proxy_cache api_cache;
proxy_cache_valid 200 30s;