Giter Club home page Giter Club logo

Comments (6)

julienloizelet avatar julienloizelet commented on May 24, 2024 1

Hi,

this should be fine with the new 2.6.0 release: log and cache files will be stored in a wp-content/uploads/crowdsec folder and the inc/standalone-settings.php won't be created unless user activates the new setting Enable auto_prepend_file mode

from cs-wordpress-bouncer.

roelvanmeer avatar roelvanmeer commented on May 24, 2024

Hi Julien,

not sure if this needs a setting or just a different dir for the cache. I see several plugins that store their cache files in wp-content/uploads/<plugin>/cache, and logs in wp-content/uploads/<plugin>/logs.
Drawback of a setting, (apart from having another setting) is that users would need to adjust the setting in order to ensure that the wp plugin verify-checksums crowdsec command succeeds.

My guess is it would be best to just use wp-content/uploads/crowdsec to store cache and log dirs, but I am not a WP plugin dev, so feel free to solve this however you think is best.

Best regards, Roel

from cs-wordpress-bouncer.

LtSich avatar LtSich commented on May 24, 2024

cache should not be stored in wp-content/cache/ ?
Like wp-content/cache/crowdsec/ ?

from cs-wordpress-bouncer.

roelvanmeer avatar roelvanmeer commented on May 24, 2024

Yes, you are absolutely right.

from cs-wordpress-bouncer.

julienloizelet avatar julienloizelet commented on May 24, 2024

Hi @roelvanmeer ,
thanks for your message.

Looking at what seems to be best practice (here and here for example), I think you're right: we should use wp-content/uploads/crowdsec/[logs|cache] as default folder.

Some plugins allow you to change the folder (by modifying wp-config.php , as shown here for example). If it's not too time-consuming to implement, we might also be able to offer such an option.

Thanks again

from cs-wordpress-bouncer.

julienloizelet avatar julienloizelet commented on May 24, 2024

Just for information, while I was working on it, I saw that we have another file that could invalidate the checksum verification: it's inc/standalone-settings.php which is created and updated on the fly for auto_prepend_file mode. We'll have to take care of that too.

from cs-wordpress-bouncer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.