Skip to content

Commit

Permalink
Update README and nginx conf.
Browse files Browse the repository at this point in the history
  • Loading branch information
juhanurmi committed Jul 5, 2018
1 parent b6da7af commit 5104d65
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions README.md
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions conf/nginx/django-ahmia
Expand Up @@ -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
Expand Down

0 comments on commit 5104d65

Please sign in to comment.