mirror of
https://github.com/olegvodyanov/instalinks.git
synced 2025-12-20 04:37:04 +03:00
add prod server
This commit is contained in:
parent
036196e182
commit
b8fa9b8efd
@ -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"]
|
||||
@ -2,4 +2,5 @@ Django==5.2
|
||||
psycopg2-binary==2.9.10
|
||||
sqlparse==0.5.3
|
||||
asgiref==3.8.1
|
||||
python-decouple==3.8
|
||||
python-decouple==3.8
|
||||
gunicorn==23.0.0
|
||||
14
nginx/etc/nginx/sites-available/instalinks
Normal file
14
nginx/etc/nginx/sites-available/instalinks
Normal 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://<>;
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user