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

update deploy gcloud instructions and nginx config #9

Merged
merged 1 commit into from
Feb 12, 2025
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
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ functions
yarn.lock
.DS_Store
out
env.yaml
env.yaml
test.env.yaml
main.env.yaml
3 changes: 1 addition & 2 deletions guides/gcloud_deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,9 @@ gcloud run deploy utxo-management-server \
--region=us-west1 \
--platform=managed \
--allow-unauthenticated \
--use-http2 \
--env-vars-file=env.yaml
```
With `--use-http2`, your container can see full HTTP/2 requests (especially relevant if you’re doing streaming gRPC or advanced HTTP/2 features in Nginx).
You can add `--use-http2`, if you want your container to see full HTTP/2 requests (especially relevant if you’re doing streaming gRPC or advanced HTTP/2 features in Nginx).

---

Expand Down
5 changes: 3 additions & 2 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ http {
keepalive_timeout 3540;
gzip on;
server {
listen 8080 http2;
listen [::]:8080 http2;
listen 8080;
listen [::]:8080;
http2 on;
server_name localhost;

# Set maximum allowed request size
Expand Down