Spaces:
Sleeping
Sleeping
|
Download README.md from fefe45/bv74w9pgph: direct link, hf CLI and curl.
- Browser
- Download file 1.15 kB
-
https://huggingface.co/spaces/fefe45/bv74w9pgph/resolve/main/README.md
- Command line
-
hf download hf://spaces/fefe45/bv74w9pgph/README.md
-
curl -L -o README.md https://huggingface.co/spaces/fefe45/bv74w9pgph/resolve/main/README.md
1.15 kB
metadata
title: Redirect Security
emoji: 🚀
colorFrom: blue
colorTo: indigo
sdk: docker
app_file: index.php
pinned: false
PHP Redirector on Hugging Face Spaces
This repository contains a PHP redirect script configured to run on Hugging Face Spaces using the Docker SDK.
Deployment Instructions
Create a New Space:
- Go to Hugging Face Spaces.
- Click "Create new Space".
- Space SDK: Select Docker.
- Space Hardware: The free tier (2 vCPU, 16GB RAM) is sufficient.
Upload Files:
- Push the contents of this repository to your Space.
Configure Secrets:
- Go to your Space's Settings.
- Scroll to Variables and secrets.
- Click New secret.
- Name:
API_KEY - Value: Your UltraPartners API Key (e.g.,
26-c0f6f3fefa70cdb761af4e80aae635bf).
Local Development
To run locally with Docker:
docker build -t hf-php-app .
docker run -p 7860:7860 -e API_KEY="your_api_key_here" hf-php-app
Access the application at http://localhost:7860.