File size: 815 Bytes
9f56ea0
b5e1cfb
 
 
9f56ea0
 
b5e1cfb
 
9f56ea0
 
 
b5e1cfb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
title: API Router
emoji: 🔀
colorFrom: blue
colorTo: indigo
sdk: docker
app_port: 7860
startup_duration_timeout: 10m
pinned: false
---

# API Router Space

A lightweight API routing service with an optional browser-based IDE.

## Secrets (set in Space Settings → Variables & secrets)

| Name | Description |
|------|-------------|
| `HF_TOKEN` | HuggingFace token for dataset backup |
| `HF_DATASET` | Dataset repo for backup, e.g. `username/my-dataset` |
| `DASHBOARD_PASSWORD` | Dashboard access password |
| `API_KEY_1` | Client API key |
| `CODE_SERVER_PASSWORD` | IDE login password |

## Optional Variables

| Name | Default | Description |
|------|---------|-------------|
| `IDE_IDLE_MINUTES` | `30` | Minutes before IDE auto-stops |
| `FORCE_RESTORE` | `false` | Force restore from latest backup |