Skip to content

Commit

Permalink
feat: Update nginx server to use HTTP/2 and gRPC pass
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Sep 12, 2024
1 parent bb66fc6 commit f2b5447
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions deploy/local/docker-compose/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ http {
}

server {
listen 80;
listen 80 http2;
server_name server.$HOSTNAME;

location / {
proxy_pass http://xatu-server:8080;
grpc_pass grpc://xatu-server:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -509,8 +509,8 @@ services:
retries: 5
xatu-nginx:
profiles:
- nginx
image: nginx:alpine
- ""
image: nginx:1.27.1-bookworm
container_name: xatu-nginx
ports:
- "${NGINX_ADDRESS:-127.0.0.1}:${NGINX_PORT:-80}:80"
Expand Down

0 comments on commit f2b5447

Please sign in to comment.