Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/datadome/datadome-openresty-demo
Integration demo for DataDome's OpenResty module
https://github.com/datadome/datadome-openresty-demo
moduledemo openresty
Last synced: 5 days ago
JSON representation
Integration demo for DataDome's OpenResty module
- Host: GitHub
- URL: https://github.com/datadome/datadome-openresty-demo
- Owner: DataDome
- License: apache-2.0
- Created: 2023-10-18T07:17:01.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-10-31T12:44:43.000Z (about 1 year ago)
- Last Synced: 2023-11-01T11:43:26.888Z (about 1 year ago)
- Topics: moduledemo, openresty
- Language: Dockerfile
- Homepage: https://docs.datadome.co/docs/openresty
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# DataDome OpenResty demo
This repository provides an example of the DataDome OpenResty module using Docker.
For additional information, please check our [public documentation](https://docs.datadome.co/docs/openresty).
## 1 - Configuration
Open the file `nginx.conf` and set your `datadome-server-side-key` (found inside your [DataDome Dashboard](https://app.datadome.co/dashboard/management/integrations)).
## 2 - Build
```
docker image build . -t my-datadome-openresty-image
```## 3 - Run
```
docker run -d --rm --name myDataDomeOpenResty -p 8282:80 my-datadome-openresty-image
```## 4 - Test
```
curl -v http://localhost:8282/
```Your request was protected (the header `X-DataDome: protected` is present) and is shown in your Dashboard.
## 5 - Logs
```
docker logs -f myDataDomeOpenResty
```## 6 - Stop
```
docker stop myDataDomeOpenResty
```