Browse Source

add uwsgi config

Gesche 9 months ago
parent
commit
3247bafdd8
2 changed files with 41 additions and 0 deletions
  1. 25
    0
      tibia_uwsgi.ini
  2. 16
    0
      uwsgi_params

+ 25
- 0
tibia_uwsgi.ini View File

@@ -0,0 +1,25 @@
1
+# tibia_uwsgi.ini file
2
+[uwsgi]
3
+
4
+# Django-related settings
5
+# the base directory (full path)
6
+chdir           = /home/gesche/coding/tibia-website/tibia_website/
7
+# Django's wsgi file
8
+module          = tibia_website.wsgi
9
+# the virtualenv (full path)
10
+home            = /home/gesche/coding/virtual-envs/tibia-env
11
+
12
+# process-related settings
13
+# master
14
+master          = true
15
+# maximum number of worker processes
16
+processes       = 10
17
+# the socket (use the full path to be safe
18
+socket          = /home/gesche/tibia.sock
19
+# ... with appropriate permissions - may be needed
20
+# chmod-socket    = 664
21
+# clear environment on exit
22
+vacuum          = true
23
+
24
+
25
+plugin         = python3

+ 16
- 0
uwsgi_params View File

@@ -0,0 +1,16 @@
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  REQUEST_SCHEME     $scheme;
11
+uwsgi_param  HTTPS              $https if_not_empty;
12
+
13
+uwsgi_param  REMOTE_ADDR        $remote_addr;
14
+uwsgi_param  REMOTE_PORT        $remote_port;
15
+uwsgi_param  SERVER_PORT        $server_port;
16
+uwsgi_param SERVER_NAME         $server_name;

Loading…
Cancel
Save