From acb6694f8215ed09f83099196aa2165ba2c9dbd8 Mon Sep 17 00:00:00 2001 From: Jan Friedli Date: Sun, 29 Mar 2020 14:35:32 +0200 Subject: moved socket file and nginx pid to /tmpfs --- config/nginx-default.conf | 2 +- config/nginx.conf | 3 +-- config/uwsgi.config | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) (limited to 'config') diff --git a/config/nginx-default.conf b/config/nginx-default.conf index 52c2fe2..5abfe22 100644 --- a/config/nginx-default.conf +++ b/config/nginx-default.conf @@ -9,6 +9,6 @@ server { location / { try_files $uri @yourapplication; } location @yourapplication { include uwsgi_params; - uwsgi_pass unix:/tmp/uwsgi.sock; + uwsgi_pass unix:/tmpfs/uwsgi.sock; } } diff --git a/config/nginx.conf b/config/nginx.conf index bd4770b..385f28f 100644 --- a/config/nginx.conf +++ b/config/nginx.conf @@ -1,5 +1,5 @@ worker_processes auto; -pid /tmp/nginx.pid; +pid /tmpfs/nginx.pid; include /etc/nginx/modules-enabled/*.conf; events { @@ -13,7 +13,6 @@ http { # Basic Settings ## - sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; diff --git a/config/uwsgi.config b/config/uwsgi.config index 56e0508..93441ed 100644 --- a/config/uwsgi.config +++ b/config/uwsgi.config @@ -13,7 +13,7 @@ gid = 101 harakiri = 30 die-on-term = true -socket = /tmp/uwsgi.sock +socket = /tmpfs/uwsgi.sock chmod-socket = 774 plugins = python3 -- cgit v1.3