Runnable examples demonstrating fence capabilities.
If you're looking for copy/paste configs and "cookbook" workflows, also see:
- Config templates:
docs/templates/ - Recipes for common workflows:
docs/recipes/
| Example | What it demonstrates | How to run |
|---|---|---|
| 01-dev-server | Running a dev server in the sandbox, controlling external domains vs localhost outbound (Redis), and exposing an inbound port (-p) |
cd examples/01-dev-server && fence -p 3000 --settings fence-external-blocked.json npm start |
| 02-filesystem | Filesystem controls: allowWrite, denyWrite, denyRead |
cd examples/02-filesystem && fence --settings fence.json python demo.py |