Updates
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user