[Mojolicious] Re: Incorrect originating IP from $c->tx->remote_address() on requests via nginx reverse proxy

2017-02-16 Thread Sam Kearns
Hi Heiko, Thank you for your response. I have tried removing the "real_ip_header" and "real_ip_recursive" directives from the nginx config as you suggested but nothing changed. I have also tried enabling and disabling the "proxy => 1" directive from the hypnotoad config which also had no

[Mojolicious] Re: Is there any way to customize hypnotoad listen port NOT from external config file ?

2017-02-16 Thread sri
No, you can't do that, it's incompatible with zero downtime software upgrades. -- sebastian -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[Mojolicious] Is there any way to customize hypnotoad listen port NOT from external config file ?

2017-02-16 Thread Pavel Serikov
I'm writing a script which will manage ports of my mojo apps. E.g. I want to manage server.pl app: my $hypnotoad = Mojo::Server::Hypnotoad->new; $hypnotoad->configure('server.conf'); $hypnotoad->run('server.pl'); If I need to specify port other than 8080 - I need to setup it in *server.conf*

[Mojolicious] Re: Incorrect originating IP from $c->tx->remote_address() on requests via nginx reverse proxy

2017-02-16 Thread Heiko Jansen
As far as I understand it, this is what happens: Step 1: http://nginx.org/en/docs/http/ngx_http_realip_module.html#real_ip_header => "Defines the request header field whose value will be used to replace the client address." So in your config you tell nginx to treat the value of the header "

Re: [Mojolicious] Nginx and Hypnotoad proxy correct config

2017-02-16 Thread Heiko Jansen
Did not try to verify this, but if I understand your example config correctly it may be related to the way nginx processes "location" directives. To quote http://nginx.org/en/docs/http/request_processing.html nginx first searches for the most specific prefix location given by literal > strings