Browse Source

Mise a dipo des fichers systeme

Maxime Raynal 7 years ago
parent
commit
7aa7549c74
2 changed files with 35 additions and 0 deletions
  1. 27 0
      speed-rack.nginx
  2. 8 0
      uwsgi_speed-rack.sh

+ 27 - 0
speed-rack.nginx

@@ -0,0 +1,27 @@
+
+# the upstream component nginx needs to connect to
+upstream django {
+    server unix:/var/www/speed-rack/uwsgi.sock;
+    #server 127.0.0.1:42001; # for a web port socket (we'll use this first)
+}
+
+# configuration of the server
+server {
+
+    listen      80 default_server;
+
+    server_name exga.maxproject.fr;
+
+    charset     utf-8;
+
+    client_max_body_size 75M;
+
+    location /static {
+        alias /var/www/speed-rack/speed_rack/static;
+    }
+
+    location / {
+        uwsgi_pass  django;
+        include     /etc/nginx/uwsgi_params;
+    }
+}

+ 8 - 0
uwsgi_speed-rack.sh

@@ -0,0 +1,8 @@
+uwsgi --uid www-data \
+      --gid www-data \
+      --env SR_DEBUG="False" \
+      --env SR_HOSTNAME="exga.maxproject.fr" \
+      --socket=/var/www/speed-rack/uwsgi.sock \
+      --master \
+      --chdir=/var/www/speed-rack/speed_rack \
+      --module=speed_rack.wsgi:application