docs: update deployment doc

This commit is contained in:
Jonas Kaninda
2024-11-09 15:06:09 +01:00
parent 11b64df0fa
commit 3daa750e54
19 changed files with 705 additions and 429 deletions

40
docs/middleware/access.md Normal file
View File

@@ -0,0 +1,40 @@
---
title: Access
layout: default
parent: Middleware
nav_order: 2
---
# Access Middleware
Access middleware prevents access to a route or specific route path.
Example of access middleware
```yaml
# The server will return 403
- name: api-forbidden-paths
type: access
## prevents access paths
paths:
- /swagger-ui/*
- /v2/swagger-ui/*
- /api-docs/*
- /internal/*
- /actuator/*
```
### Apply access middleware on the route
```yaml
routes:
- name: Basic auth
path: /protected
rewrite: /
destination: 'https://example.com'
methods: [POST, PUT, GET]
healthCheck:
cors: {}
middlewares:
- api-forbidden-paths
```