Giter Site home page Giter Site logo

Comments (4)

fkrauthan avatar fkrauthan commented on May 22, 2024 1

Yeah but then I would have to reimplement parsing the acme.json which I kinda don't wanna do. Because then I could just write my own cert dump at that time. This is not a bug report but a feature request/suggestion to make this more helpful. Currently I don't have any cleaning turned on as I don't expect many of my domains to be shutdown anytime soon. But this could be helpful for me (and others probably as well) in the future.

from traefik-certs-dumper.

ldez avatar ldez commented on May 22, 2024

Hello,

I think that you are looking for --clean: https://github.com/ldez/traefik-certs-dumper/blob/master/docs/traefik-certs-dumper_file.md#options-inherited-from-parent-commands

from traefik-certs-dumper.

fkrauthan avatar fkrauthan commented on May 22, 2024

@ldez No I am talking exactly about changing the behaviour of clean (as that is turned on by default anyways) or adding an additional clean mode.

Currently
With the --clean and --domain-subdir flags turned on

  1. It deletes all folders and files inside the certificate directory
  2. It recreates new folders and certificate files for each entry in acme.json

Expected
With the --clean and --domain-subdir flags turned on

  1. Overwrite existing files with the new data from acme.json potentially creating new folders as well
  2. Delete all old files/folders that are no longer listed in acme.json

Why
This way if you mount an individual domain folder that still exists the folder mount still exists and docker is not getting confused because the mounted folder all the sudden disappears for a bit.

from traefik-certs-dumper.

ldez avatar ldez commented on May 22, 2024

You can use --clean=false and the post hook.

from traefik-certs-dumper.

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.