1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-08-09 07:05:18 +02:00

Max size increase needs to go inside server block

This commit is contained in:
MaximUltimatum 2024-12-01 13:37:16 -06:00
parent 0a2b172405
commit 1b010cc390

View file

@ -10,8 +10,6 @@ http {
sendfile on; sendfile on;
keepalive_timeout 65; keepalive_timeout 65;
client_max_body_size 100M;
upstream django { upstream django {
server server:8000; # Use the internal Docker networking server server:8000; # Use the internal Docker networking
} }
@ -19,6 +17,7 @@ http {
server { server {
listen 80; # NGINX always listens on port 80 inside the container listen 80; # NGINX always listens on port 80 inside the container
server_name localhost; server_name localhost;
client_max_body_size 100M;
location / { location / {
proxy_pass http://server:8000; # Explicitly forward to Django service proxy_pass http://server:8000; # Explicitly forward to Django service