dynamicweb2/nginx/nginx.conf

19 lines
359 B
Nginx Configuration File
Raw Normal View History

2023-12-13 05:15:07 +00:00
# nginx.conf
# Default server configuration
server {
listen 80;
server_name localhost;
location / {
# Forward requests to the uWSGI server
uwsgi_pass unix:/app/myapp.sock;
include /etc/nginx/uwsgi_params;
}
location /static/ {
# Serve static files from the Django app
alias /app/static/;
}
}