2023-12-13 05:15:07 +00:00
|
|
|
# nginx.conf
|
2023-12-13 14:30:54 +00:00
|
|
|
events {
|
|
|
|
# Configuration related to event processing
|
|
|
|
# For most cases, the default settings suffice
|
|
|
|
}
|
2023-12-13 05:15:07 +00:00
|
|
|
|
|
|
|
# Default server configuration
|
2023-12-13 14:30:54 +00:00
|
|
|
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 05:15:07 +00:00
|
|
|
}
|
|
|
|
}
|