447 B
447 B
Giphy Proxy
Minimalistic Node.js proxy with a protected subroute.
Setup
Build:
r build -t giphy-proxy .
Run:
docker run -d \
-p 8080:8080 \
-e GIPHY_API_KEY="your_api_key" \
-e ACCESS_SECRET="mysecret" \
giphy-proxy
Usage
Example (Random):
curl http://localhost:8080/mysecret/
Example (Specific Tag):
curl http://localhost:8080/mysecret/cat
All subsequent routes will be ignored!