dynamicweb2/nginx/nginx.conf

26 lines
586 B
Nginx Configuration File
Raw Normal View History

2023-12-13 10:45:07 +05:30
# nginx.conf
2023-12-13 20:00:54 +05:30
events {
# Configuration related to event processing
# For most cases, the default settings suffice
}
2023-12-13 10:45:07 +05:30
# Default server configuration
2023-12-13 20:00:54 +05:30
http {
server {
listen 80;
server_name localhost;
location / {
# Forward requests to the uWSGI server
#uwsgi_pass unix:/app/dynamicweb2.sock;
uwsgi_pass dynamicweb2:8000;
include /etc/nginx/uwsgi_params;
}
location /static/ {
# Serve static files from the Django app
alias /app/static/;
}
2023-12-13 10:45:07 +05:30
}
}