Check out these resources for running behind nginx: * https://metacpan.org/pod/distribution/Toadfarm/lib/Toadfarm/Manual/BehindReverseProxy.pod * https://metacpan.org/pod/distribution/Toadfarm/lib/Toadfarm/Manual/RunningToadfarm.pod#Init-script * https://metacpan.org/pod/distribution/Mojolicious/lib/Mojolicious/Guides/Cookbook.pod#Nginx
Some information if you happen to use Cloudflare: Cloudflare <https://www.cloudflare.com/> autodetects which ports your application is running on, so simply listening to 8080 and 8443 works out of the box. * https://blog.cloudflare.com/cloudflare-now-supporting-more-ports/ On Friday, May 1, 2015 at 11:51:43 AM UTC+2, mjb152 wrote: > > Thanks to Jan for pointing me in the right direction, I replied off list > by accident, so apologies for that. > Jan suggested setting the logging level directly in the startup script, > and I found that this coupled with combining the logfiles into one place > suits my purpose. > > Next step is to run this as the user rather than with root, and also go > back to nginx and reverse proxy. > > $ENV{MOJO_LOG_LEVEL} = "debug"; > logging { > combined => 1, > path => "/var/log/toadfarm/app.log", > level => "debug", > }; > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.
