Zaban-all / README.md
Asrasahar's picture
Update README.md
0fc12c6 verified
metadata
title: zaban all
emoji: 🔒
colorFrom: indigo
colorTo: blue
sdk: docker
pinned: false
secrets:
  - TARGET_HF_SPACE_URL
app_port: 7860

Nginx Proxy Space

This Hugging Face Space uses Nginx to act as a reverse proxy for another Hugging Face Space. The primary goal is to hide the URL of the target space from being easily discoverable in browser network tools, especially in headers like Link rel="canonical".

Configuration Required:

  1. Set the Secret:
    • Go to the Settings tab of this Space.
    • Under Secrets, add a new secret with the name: TARGET_HF_SPACE_URL
    • Set its value to the full URL of the Hugging Face Space you want to proxy (e.g., پرید).
    • Important: The URL must be the complete, accessible URL of the target.

The Nginx configuration dynamically uses the TARGET_HF_SPACE_URL secret. The Link header and X-Canonical-Url header from the target space will be removed by Nginx to prevent exposing the target URL.