25 lines
586 B
Nginx Configuration File
25 lines
586 B
Nginx Configuration File
# nginx.conf
|
|
events {
|
|
# Configuration related to event processing
|
|
# For most cases, the default settings suffice
|
|
}
|
|
|
|
# Default server configuration
|
|
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/;
|
|
}
|
|
}
|
|
}
|