Skip to content

Instantly share code, notes, and snippets.

@joeneldeasis
Created November 28, 2025 08:46
Show Gist options
  • Select an option

  • Save joeneldeasis/8ebad99e33579eced89f85e8638d7c03 to your computer and use it in GitHub Desktop.

Select an option

Save joeneldeasis/8ebad99e33579eced89f85e8638d7c03 to your computer and use it in GitHub Desktop.
config
location ^~ /api/files/ {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment