File tree Expand file tree Collapse file tree 3 files changed +59
-0
lines changed Expand file tree Collapse file tree 3 files changed +59
-0
lines changed Original file line number Diff line number Diff line change
1
+ # ide_nginx.conf
2
+
3
+ # the upstream component nginx needs to connect to
4
+ upstream gradcam {
5
+ server 127.0.0.1:8001; # for a web port socket (we'll use this first)
6
+ }
7
+
8
+ # configuration of the server
9
+ server {
10
+ # the port your site will be served on
11
+ listen 80;
12
+ # the domain name it will serve for
13
+ server_name ide.cloudcv.org; # substitute your machine's IP address or FQDN
14
+ charset utf-8;
15
+
16
+ # max upload size
17
+ client_max_body_size 75M; # adjust to taste
18
+
19
+ # Django media
20
+ location /media {
21
+ alias /home/ubuntu/Projects/grad-cam/media; # your Django project's media files - amend as required
22
+ }
23
+
24
+ location /static {
25
+ alias /home/ubuntu/Projects/grad-cam/static; # your Django project's static files - amend as required
26
+ }
27
+
28
+ # Finally, send all non-media requests to the Django server.
29
+ location / {
30
+ uwsgi_pass gradcam;
31
+ include /home/ubuntu/Projects/grad-cam/uwsgi_params; # the uwsgi_params file you installed
32
+ }
33
+ }
Original file line number Diff line number Diff line change
1
+ [uwsgi]
2
+
3
+ chdir = /home/ubuntu/Projects/grad-cam
4
+ wsgi-file = /home/ubuntu/Projects/grad-cam/demo/wsgi.py
5
+ master = true
6
+ processes = 10
7
+ socket = 0.0.0.0:8001
8
+ vaccum = true
9
+ python-autoreload = 1
10
+ # buffer-size=32768
11
+ daemonize = /var/log/uwsgi/gradcam.log
Original file line number Diff line number Diff line change
1
+ uwsgi_param QUERY_STRING $query_string;
2
+ uwsgi_param REQUEST_METHOD $request_method;
3
+ uwsgi_param CONTENT_TYPE $content_type;
4
+ uwsgi_param CONTENT_LENGTH $content_length;
5
+
6
+ uwsgi_param REQUEST_URI $request_uri;
7
+ uwsgi_param PATH_INFO $document_uri;
8
+ uwsgi_param DOCUMENT_ROOT $document_root;
9
+ uwsgi_param SERVER_PROTOCOL $server_protocol;
10
+ uwsgi_param HTTPS $https if_not_empty;
11
+
12
+ uwsgi_param REMOTE_ADDR $remote_addr;
13
+ uwsgi_param REMOTE_PORT $remote_port;
14
+ uwsgi_param SERVER_PORT $server_port;
15
+ uwsgi_param SERVER_NAME $server_name;
You can’t perform that action at this time.
0 commit comments