Skip to content

Commit

Permalink
Change nginx settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Aug 22, 2024
1 parent f635961 commit 342aa76
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
23 changes: 22 additions & 1 deletion nginx/conf.d/bookworm-ssl.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,29 @@ server {
ssl_certificate /etc/ssl/certificate.pem;
ssl_certificate_key /etc/ssl/key.pem;

location /graphql {
proxy_pass http://bookworm-rails:3001/graphql;
proxy_redirect default;
proxy_http_version 1.1;

proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_max_temp_file_size 0;

#this is the maximum upload size
client_max_body_size 10m;
client_body_buffer_size 128k;

proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_request_buffering off; # Required for HTTP CLI commands
}

location / {
proxy_pass https://bookworm-react:3000;
proxy_pass http://bookworm-react:3000;
proxy_redirect default;
proxy_http_version 1.1;

Expand Down
20 changes: 20 additions & 0 deletions nginx/conf.d/bookworm.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,26 @@ server {
listen 80;
server_name bookworm;

location /graphql {
proxy_pass http://bookworm-rails:3001/graphql;
proxy_redirect default;
proxy_http_version 1.1;

proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_max_temp_file_size 0;

#this is the maximum upload size
client_max_body_size 10m;
client_body_buffer_size 128k;

proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_request_buffering off; # Required for HTTP CLI commands
}
location / {
proxy_pass http://bookworm-react:3000;
proxy_redirect default;
Expand Down

0 comments on commit 342aa76

Please sign in to comment.