diff --git a/Dockerfile.app b/Dockerfile.app index 808990b..82d51d4 100644 --- a/Dockerfile.app +++ b/Dockerfile.app @@ -22,4 +22,4 @@ ENV DJANGO_SETTINGS_MODULE instagram_links.settings EXPOSE 8000 # Default command: run the Django dev server -CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"] \ No newline at end of file +CMD ["gunicorn", "instalinks.wsgi:application"] \ No newline at end of file diff --git a/instalinks/requirements.txt b/instalinks/requirements.txt index a389c32..395e59c 100644 --- a/instalinks/requirements.txt +++ b/instalinks/requirements.txt @@ -2,4 +2,5 @@ Django==5.2 psycopg2-binary==2.9.10 sqlparse==0.5.3 asgiref==3.8.1 -python-decouple==3.8 \ No newline at end of file +python-decouple==3.8 +gunicorn==23.0.0 \ No newline at end of file diff --git a/nginx/etc/nginx/sites-available/instalinks b/nginx/etc/nginx/sites-available/instalinks new file mode 100644 index 0000000..e94d587 --- /dev/null +++ b/nginx/etc/nginx/sites-available/instalinks @@ -0,0 +1,14 @@ +server { + listen 80; + server_name instalinks.ru; + + location = /favicon.ico { access_log off; log_not_found off; } + location /static/ { + root /home/youruser/myproject; + } + + location / { + include proxy_params; + proxy_pass http://<>; + } +} \ No newline at end of file