Merge pull request #1 from olegvodyanov/add_prod_server

add prod server
This commit is contained in:
Олег Водянов 2025-04-09 00:21:15 +04:00 committed by GitHub
commit 7261dfaed7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 17 additions and 2 deletions

View File

@ -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"]
CMD ["gunicorn", "instalinks.wsgi:application"]

View File

@ -3,3 +3,4 @@ psycopg2-binary==2.9.10
sqlparse==0.5.3
asgiref==3.8.1
python-decouple==3.8
gunicorn==23.0.0

View File

@ -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://<>;
}
}