Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
22 lines
675 B
Plaintext
22 lines
675 B
Plaintext
upstream django {
|
|
# server unix:///path/to/your/mysite/mysite.sock; # for a file socket
|
|
server web:8000; # for a web port socket (we'll use this first)
|
|
}
|
|
|
|
# configuration of the server
|
|
server {
|
|
# the port your site will be served on
|
|
listen 80;
|
|
# the domain name it will serve for
|
|
server_name localhost; # substitute your machine's IP address or FQDN
|
|
charset utf-8;
|
|
|
|
# max upload size
|
|
client_max_body_size 2M; # adjust to taste
|
|
|
|
# Finally, send all non-media requests to the Django server.
|
|
location / {
|
|
uwsgi_pass django;
|
|
include /etc/nginx/uwsgi_params; # the uwsgi_params file you installed
|
|
}
|
|
} |