Previous: Running server, Up: Basic in GNU Artanis [Contents]
You may try GNU Artanis+Nginx with so-called reverse proxy.
I would recommend you use Nginx as the front server, since GNU Artanis hasn’t done its own async server-core which will be based on delimited-continuations. The current server has some caveats, in spite of the performance, you may suffer from slow-header-ddos if you use GNU Artanis to serv you site directly. But it’s fine when you use Nginx in front of GNU Artanis.
For example, you may add these lines to your /etc/nginx/nginx.conf:
location / { proxy_pass http://127.0.0.1:1234; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; }
Then restart you Nginx:
sudo service nginx restart
And run GNU Artanis:
(run #:port 1234)