19 lines
359 B
Nginx Configuration File
19 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/;
|
||
|
}
|
||
|
}
|