Giter Club home page Giter Club logo

Comments (3)

foxcpp avatar foxcpp commented on May 14, 2024

I think we should define devdirs build tag to change default directories to make it easier to develop maddy (I really don't like the idea of having testing DB in /var/lib/maddy).
Need to think about a better name for such tag though, usecwd?.

Aux. binaries search path (auth helpers for now): $MADDYBIN + $GOBIN + $PATH, $MADDYBIN defaults to /usr/libexec/maddy or empty (which means it will use current directory) if devdirs is on.
State directory: $MADDYHOME, defaults to /var/lib/maddy or empty (current directory) if devdirs is on. Used for database of default storage backend and queues.
Configuration: /etc/maddy/Maddyfile is the main file, imports should be resolved relative to /etc/maddy, i.e. import foo will read /etc/maddy/foo.
Log files (for #26, if the file path is not absolute): $MADDYLOG, defaults to /var/log/maddy or current directory if devdirs is on.

Non-devdirs values (/usr/libexec/maddy/, /var/lib/maddy, /etc/maddy) are also settable using -X linker flag so they can be customized by packagers without the need to patch sources.

@emersion, what do you think?

from maddy.

emersion avatar emersion commented on May 14, 2024

I'm not a big fan of devdirs.

What about defaulting to /etc/maddy and providing a flag to override the config file path?

Everything (logfiles path, DB path) should be configurable in the config file anyway. So you could have a dev config file.

Non-devdirs values (/usr/libexec/maddy/, /var/lib/maddy, /etc/maddy) are also settable using -X linker flag so they can be customized by packagers without the need to patch sources.

+1, this will be required for custom prefixes

from maddy.

foxcpp avatar foxcpp commented on May 14, 2024

Alright, that makes more sense.

from maddy.

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.