mirror of
https://github.com/clockworklabs/SpacetimeDB.git
synced 2026-05-06 07:26:43 -04:00
Include location in nginx config for logs specific directives (#3654)
Resolves #3652 # Description of Changes Update docs nginx configuration to better support `spacetime logs --follow` when self hosting configured to use ssl. # API and ABI breaking changes None # Expected complexity level and risk 1 # Testing I have added this location to my own nginx configuration and confirmed I am able to `spacetime logs -s some-https-server <my-module> --follow` and see logs immediately and continue following even if no log is produced after 1 minute. Co-authored-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com> Co-authored-by: Zeke Foppa <196249+bfops@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
4f2c064fe5
commit
5164d0448f
+8
@@ -115,6 +115,14 @@ server {
|
||||
proxy_set_header Host $host;
|
||||
}
|
||||
|
||||
# Log streaming benefits from longer read timeout and disabled buffering
|
||||
location ~ ^/v1/database/[^/]+/logs$ {
|
||||
proxy_pass http://localhost:3000;
|
||||
proxy_http_version 1.1;
|
||||
proxy_buffering off;
|
||||
proxy_read_timeout 3600s;
|
||||
}
|
||||
|
||||
# Uncomment this section to allow all HTTP reducer calls
|
||||
# location ~ ^/v1/[^/]+/call/[^/]+$ {
|
||||
# proxy_pass http://localhost:3000;
|
||||
|
||||
Reference in New Issue
Block a user