aboutsummaryrefslogtreecommitdiff
path: root/nginx.conf
diff options
context:
space:
mode:
Diffstat (limited to 'nginx.conf')
-rw-r--r--nginx.conf48
1 files changed, 48 insertions, 0 deletions
diff --git a/nginx.conf b/nginx.conf
new file mode 100644
index 0000000..6f9fafa
--- /dev/null
+++ b/nginx.conf
@@ -0,0 +1,48 @@
+worker_processes 1;
+
+events {
+ worker_connections 1024;
+}
+
+
+http {
+ include mime.types;
+ default_type application/octet-stream;
+
+ sendfile on;
+ #tcp_nopush on;
+
+ #keepalive_timeout 0;
+ keepalive_timeout 65;
+
+ gzip on;
+
+ server_tokens off;
+
+ server {
+ listen 80;
+ listen [::]:80;
+ listen 8000;
+ listen [::]:8000;
+ server_name localhost;
+
+ location / {
+ include uwsgi_params;
+ client_max_body_size 20m;
+ client_body_timeout 300s;
+ uwsgi_pass app:9200;
+ }
+
+ location /static {
+ alias /var/www;
+ }
+ location /robots.txt {
+ alias /var/www/static/robots.txt;
+ }
+
+ }
+
+ include conf.d/*.conf;
+
+}
+