If you know about NGINX and servers, Webinoly is for you!
0 votes
29 views
by Rookie
Hi Cristhian,

I'd like to request a NGINX conf file in /conf.d that sets the real ips of visitors if one uses Cloudflare (which is not an uncommon case for people running WP). It would not be a big file, just as simple as described here: https://community.easyengine.io/t/get-real-visitor-ip-behind-cloudflare/9036

And here a useful bash script that could be integrated and run every once in a while, maybe through cron every half a year: https://github.com/WordOps/WordOps/blob/8797699ead73ca67dfd303dc284ab7ac134a9215/wo/cli/templates/cf-update.mustache

Thanks for considering! :)

1 Answer

0 votes
by Expert

Native support for Cloudflare is not in our roadmap.

Sorry! sad

by Rookie
Hey, there is nearly no overhead if you'd just include the .conf file by default, I am not talking about any -cf commands or anything that makes things too complicated, but it would mean native Cloudflare support for Webinoly and therefore a lot more user acceptance, because there are a lot of Cloudflarers out there.

If you still say no: How do I make a plugin for Webinoly? The script is there, I am not nearly anywhere bash wise where you are, but I might be able to manage.

Thanks.
by Expert

It would need changes in the log structure to make it work, which will not work for non-CF users. Also, I'm not a fan of having conf files loading on each request for users that don't need it.

The proper solution would be:

  1. Having a command for native support.
  2. Or, each user have to add this simple conf mods if they need it.
If you want to have your own plugin integrated into Webinoly, we have the "Internal API and Event" for this purpose. You can easily add your own code!
by Expert

Another option: You can add your own custom NGINX rules for each site (inside server block).

Doc: https://webinoly.com/en/documentation/sites/#nginx

Welcome to the Community site for Webinoly.

Our Optimized LEMP Web Server is a powerful set of commands for doing just about anything you could wish.

With Webinoly you can set up your NGINX web server in just one step.

* * * * * * *

To report a bug, please create a new issue on GitHub or ask a question here with the bug tag.

Donations

Webinoly Support Paypal Donations Webinoly Support Bitcoin Donations GitHub Sponsors

Your regular donations is what keep this project moving forward. If you like Webinoly, buy me a coffee or a beer to show support.

Affiliate Links

It is very important that any visitor to the site read the disclaimer, terms of use and privacy and legal statement before start browsing.

...