mirror of
https://github.com/umputun/reproxy.git
synced 2025-02-16 18:34:30 +02:00
add header example
This commit is contained in:
parent
c4f3752350
commit
f5c5c61349
@ -130,7 +130,14 @@ Assets server supports caching control with the `--assets.cache=<duration>` para
|
||||
|
||||
- `--gzip` enables gzip compression for responses.
|
||||
- `--max=N` allows to set the maximum size of request (default 64k)
|
||||
- `--header` sets extra header(s) added to each proxied request
|
||||
- `--header` sets extra header(s) added to each proxied response. For example this is how it can be done with the docker compose:
|
||||
```yaml
|
||||
environment:
|
||||
- HEADER=
|
||||
X-Frame-Options:SAMEORIGIN,
|
||||
X-XSS-Protection:1; mode=block;,
|
||||
Content-Security-Policy:default-src 'self'; style-src 'self' 'unsafe-inline';
|
||||
```
|
||||
- `--timeout.*` various timeouts for both server and proxy transport. See `timeout` section in [All Application Options](#all-application-options)
|
||||
|
||||
## Ping and health checks
|
||||
|
@ -15,6 +15,10 @@ services:
|
||||
- DOCKER_AUTO=true
|
||||
- ASSETS_LOCATION=/web
|
||||
- DEBUG=true
|
||||
- HEADER=
|
||||
X-Frame-Options:SAMEORIGIN,
|
||||
X-XSS-Protection:1; mode=block;,
|
||||
Content-Security-Policy:default-src 'self'; style-src 'self' 'unsafe-inline';
|
||||
|
||||
# automatic destination, will be mapped for ^/api/svc1/(.*)
|
||||
svc1:
|
||||
|
Loading…
x
Reference in New Issue
Block a user