dynamicweb2/nginx/nginx.conf
2023-12-13 10:45:07 +05:30

18 lines
359 B
Nginx Configuration File

# 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/;
}
}