# the upstream component nginx needs to connect to upstream django { server unix://{hd}/saleor/saleor.sock; } # configuration of the server server { listen 80; server_name {host} www.{host}; charset utf-8; # max upload size client_max_body_size 75M; # Django media and static files location /media { alias {hd}}/saleor/media; } location /static { alias {hd}/saleor/static; } # Send all non-media requests to the Django server. location / { uwsgi_pass django; include {hd}/saleor/uwsgi_params; } location /graphql/ { proxy_pass https://{apihost}:{apiport}; } location /dashboard/ { path {hd}/saleor-dashboard/build/; index index.html; try_files $uri $uri/ /dashboard/index.html; } }