diff --git a/nginx.conf b/nginx.conf index 7dad41c..ed071f2 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,14 +1,23 @@ -server { - listen 80; - listen [::]:80; - - server_name sorusora.seoulsky.dev; - - location / { - proxy_pass http://localhost:8000; - proxy_set_header Host $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; +events { + worker_connections 1024; +} + +http { + include /etc/nginx/mime.types; + default_type application/octet-stream; + + server { + listen 80; + listen [::]:80; + + server_name sorusora.seoulsky.dev; + + location / { + proxy_pass http://localhost:8000; + proxy_set_header Host $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; + } } }