This commit is contained in:
Simon Gruber
2026-05-11 08:15:49 +02:00
parent 8615e8b78b
commit dfb258c90c
7 changed files with 318 additions and 8 deletions
+17 -5
View File
@@ -4,15 +4,11 @@ Minimalistic Node.js proxy with a protected subroute.
## Setup
Build:
### Docker
```sh
r build -t giphy-proxy .
```
Run:
```sh
docker run -d \
-p 8080:8080 \
-e GIPHY_API_KEY="your_api_key" \
@@ -20,6 +16,22 @@ docker run -d \
giphy-proxy
```
### Docker compose
```yaml
services:
randomgif:
container_name: randomgif
build:
context: .
dockerfile: Dockerfile
ports:
- "9099:8080"
environment:
- GIPHY_API_KEY=${GIPHY_API_KEY}
- ACCESS_SECRET=${ACCESS_SECRET}
```
## Usage
Example (Random):