Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync tzproxy config with upstream #368

Merged
merged 1 commit into from
Jan 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:
volumes:
- ./docker/nginx.conf:/etc/nginx/conf.d/default.conf
tzproxy:
image: ghcr.io/marigold-dev/tzproxy:latest-2f58f3c-1697469392
image: ghcr.io/marigold-dev/tzproxy:latest
restart: unless-stopped
volumes:
- ./docker/tzproxy.yaml:/tzproxy.yaml
2 changes: 2 additions & 0 deletions docker/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ server {
}

location ^~ /rpc/ {
add_header Cache-Control no-store always;
add_header Pragma "no-cache";
proxy_pass http://tzproxy:8080/;
}

Expand Down
18 changes: 14 additions & 4 deletions docker/tzproxy.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
cache:
disabled_routes:
- /monitor/.*
- /chains/main/blocks/head
- /chains/.*/mempool
- /chains/.*/blocks.*head
enabled: true
size_mb: 128
ttl: 10
Expand All @@ -19,16 +22,20 @@ deny_routes:
- /worker.*
- /stats.*
- /config
- /chains/main/blocks/.*/helpers/baking_rights
- /chains/main/blocks/.*/helpers/endorsing_rights
- /chains/.*/blocks/.*/helpers/baking_rights
- /chains/.*/blocks/.*/helpers/endorsing_rights
- /helpers/baking_rights
- /helpers/endorsing_rights
- /chains/main/blocks/.*/context/contracts(/?)$
- /chains/.*/blocks/.*/context/contracts(/?)$
- /chains/.*/blocks/.*/context/raw/bytes
gc:
percent: 20
optimize_memory_store: true
percent: 100
gzip:
enabled: false
host: 0.0.0.0:8080 # is used inside nginx config, tzproxy:8080
load_balancer:
ttl: 600
logger:
bunch_size: 1000
pool_interval_seconds: 10
Expand All @@ -40,4 +47,7 @@ rate_limit:
enabled: false
max: 300
minutes: 1
redis:
enabled: false
host: ""
tezos_host: teia-ui:8000 # references docker-compose.yml service name
Loading