From 5104d65902075787bfc49373084cdd9912529e5f Mon Sep 17 00:00:00 2001 From: juhanurmi Date: Thu, 5 Jul 2018 16:24:24 +0200 Subject: [PATCH] Update README and nginx conf. --- README.md | 10 ++++++++-- conf/nginx/django-ahmia | 4 ++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5625760..653aacc 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,12 @@ $ source /path/to/venv/bin/activate (venv)$ pip install -r requirements/dev.txt ``` +Or globally, for instance, in production server: + +```sh +$ pip3 install -r requirements/prod.txt +``` + ## Configuration This is a common step, both for local (dev) and production environment. @@ -118,8 +124,8 @@ Config samples are in [config/](https://github.com/ahmia/ahmia-site/tree/master/ * Run gunicorn via bash scripts (work as daemons ~ edit files to change): ```sh -./bin/run-ahmia.sh -./bin/run-ahmia-onion.sh +bash ./bin/run-ahmia.sh +bash ./bin/run-ahmia-onion.sh ``` OR diff --git a/conf/nginx/django-ahmia b/conf/nginx/django-ahmia index 130008d..10a416b 100644 --- a/conf/nginx/django-ahmia +++ b/conf/nginx/django-ahmia @@ -33,8 +33,8 @@ server { listen 443 ssl; server_name ahmia.fi; - limit_conn conn_limit_per_ip 50; - limit_req zone=req_limit_per_ip burst=100 nodelay; + #limit_conn conn_limit_per_ip 50; + #limit_req zone=req_limit_per_ip burst=100 nodelay; charset utf-8; client_max_body_size 75M; # adjust to taste