Previous: , Up: GNU Artanis Basics   [Contents]

7.6 Working with Nginx

You may try GNU Artanis+Nginx with a reverse proxy.

Although GNU Artanis has good server core, I would recommend you use Nginx as the front server. In addition to the enhanced performance, it’ll also be less vulnerable to attacks.

These are some sample lines for /etc/nginx/nginx.conf:

location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

To make it work, restart Nginx after editing the file:

sudo service nginx restart

And run GNU Artanis:

(run #:port 1234)