Skip to content

Commit

Permalink
#59 fix : add some buffer size to conf file (#76)
Browse files Browse the repository at this point in the history
* #59 fix : add some buffer size to conf file

* #59 fix : modify settings module route from utils.py&services.py
  • Loading branch information
0321minji authored Jul 13, 2024
1 parent d869a63 commit cffd69e
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 7 deletions.
20 changes: 17 additions & 3 deletions .config/nginx/UPCY.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,21 @@ server {
client_max_body_size 128M;

location / {
uwsgi_pass unix:///tmp/UPCY.sock;
include uwsgi_params;
include uwsgi_params;
uwsgi_pass unix:///tmp/UPCY.sock;
uwsgi_read_timeout 300s;
uwsgi_send_timeout 300s;
uwsgi_buffer_size 32k;
uwsgi_buffers 8 32k;
uwsgi_busy_buffers_size 64k;
uwsgi_temp_file_write_size 64k;
}
}

location /static/ {
alias /home/ubuntu/UPCY_BE/static/;
}

location /media/ {
alias /home/ubuntu/UPCY_BE/media/;
}
}
6 changes: 4 additions & 2 deletions UpcyProject/settings/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,11 @@
# https://docs.djangoproject.com/en/4.0/ref/settings/#databases

DATABASES = {
'default': env.db(),
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
}
}

# Password validation
# https://docs.djangoproject.com/en/4.0/ref/settings/#auth-password-validators

Expand Down
2 changes: 1 addition & 1 deletion core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import boto3
import uuid
from django.conf import settings
from UpcyProject import settings
from UpcyProject.settings import settings
from datetime import datetime


Expand Down
2 changes: 1 addition & 1 deletion services/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from .selectors import ServiceSelector
from users.models import User
from core.utils import s3_file_upload_by_file_data
from UpcyProject import settings
from UpcyProject.settings import settings


class ServiceCoordinatorService:
Expand Down

0 comments on commit cffd69e

Please sign in to comment.