Skip to content

Commit

Permalink
configure nginx for http2
Browse files Browse the repository at this point in the history
  • Loading branch information
dxenes1 committed Feb 11, 2021
1 parent 8c188a7 commit 8cf94e3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions boss_nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ upstream django {

# configuration of the server
server {
# the port your site will be served on
listen 80 default_server;
# Listen to http2 port. All http requests will automatically be re-routed to http2 by loadbalancer.
# No IPv6 ports necessary. Subnet between loadbalancer and endpoint is in IPv4 only.
listen 443 ssl http2;
charset utf-8;


include snippets/self-signed.conf;
include snippets/ssl-params.conf;

# max upload size
client_max_body_size 550M; # Slightly larger than where API will return reasonable error message

Expand Down

0 comments on commit 8cf94e3

Please sign in to comment.