Skip to content

DataDome/datadome-openresty-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DataDome OpenResty demo

This repository provides an example of the DataDome OpenResty module using Docker.

For additional information, please check our public documentation.

1 - Configuration

Open the file nginx.conf and set your datadome-server-side-key (found inside your DataDome Dashboard).

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

Releases

No releases published

Packages

No packages published