server {
  listen 10.77.0.1:18080;
  server_name _;

  allow 10.77.0.0/24;
  deny all;

  location ^~ /static/generated/ {
    alias /var/lib/docker/volumes/easyai-ai-gateway_api_data/_data/static/generated/;
    add_header Cache-Control "private, max-age=300";
    try_files $request_filename =410;
  }

  location ^~ /static/uploaded/ {
    alias /var/lib/docker/volumes/easyai-ai-gateway_api_data/_data/static/uploaded/;
    add_header Cache-Control "private, max-age=300";
    try_files $request_filename =410;
  }
}
