first commit
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
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
This commit is contained in:
22
uwsgi/unacc/files/default.conf
Normal file
22
uwsgi/unacc/files/default.conf
Normal file
@@ -0,0 +1,22 @@
|
||||
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
|
||||
}
|
||||
}
|
4
uwsgi/unacc/files/server.py
Normal file
4
uwsgi/unacc/files/server.py
Normal file
@@ -0,0 +1,4 @@
|
||||
from wsgiref.simple_server import demo_app
|
||||
|
||||
|
||||
application = demo_app
|
Reference in New Issue
Block a user