Re: PSGI/Plack Support in Dada Mail

 
From: "Justin J justin@PROTECTED [Dada Mail Developers]" <dadadev@PROTECTED>
In-Reply-To: (no subject)
Date: February 25th 2015

I can provide a sample config for the documentation if you want

Sure, I'd love to see it I'm working on setting up a doc on deployment, as I work on PSGI support - I guess this will be testable in v8 alpha 3, as alpha 2 just doesn't have the support

Here's what I've got so far:

:: Installing: use the command line tool - here's a sample incantation to install Dada Mail:

sudo 
/install
cgi --program_url http://127
0
0
1 \
--dada_root_pass secret \
--support_files_dir_path /Library/WebServer/Documents \
--backend SQLite \
--support_files_dir_url http://127
0
0
1 \
--deployment_running_under PSGI \
--dada_files_loc /Library/WebServer/Documents

:: Great, Dada Mail is now installed, run it:

sudo plackup --port 9090 --host 127
0
0
1

:: OK, Dada Mail is running Here's the nginx config that's relative to this:

http {
    server { 
        location / {
            proxy_pass      http://127
0
0
1:9090;
        }
    }
}

And then, just start up nginx Now, Dada Mail is available, when you go to: 127 0 0 1 - simple as that The PSGI instance script even handles serving the static files statically using the, "Static" PSGI Middleware (http://advent plackperl org/2009/12/day-17-serving-static-files-from-your-application html), which is awesome, although you could do that in nginx as well as you know

As far as deployment, that's going to be as easy as I can probably make it and seems pretty realistic to someone that wants/needs more performance, if they started Dada Mail as the current CGI setup

  • This mailing list is a public mailing list - anyone may join or leave, at any time.
  • This mailing list is a group discussion list (unmoderated)
  • Start a new thread, email: dadadev@dadamailproject.com

This is the developer discussion mailing list for Dada Mail.

If you are just looking for support Dada Mail, consult the message boards at:

https://forum.dadamailproject.com

Documentation for Dada Mail:

https://dadamailproject.com/d

Specifically, see the Error FAQ:

https://dadamailproject.com/d/FAQ-errors.pod.html

To post to this list, send a message to:

mailto:dadadev@dadamailproject.com

All subscribers of this list may post to the list itself.

Topics that are welcome:

  • Constructive critiques on the program (I like, "x", but, "y" needs some work - here's an idea on how to make this better...)
  • Bug/Error reports
  • Bug fixes
  • Request For Comments on any changes to the program
  • Help customizing Dada Mail for your own needs
  • Patches
  • Language Translations
  • Support Documentation/Doc editing, FAQ's, etc.
  • Discussion of any changes that you would like to be committed to the next version of Dada Mail -

Dada Mail is on Github:

https://github.com/justingit/dada-mail/

If you would like to fork, branch, send over PRs, open up issues, etc.

Privacy Policy:

This Privacy Policy is for this mailing list, and this mailing list only.

Email addresses collection through this mailing list are used explicitly to work within this email discussion list.

We only collect email addresses through our Closed-Loop Opt-In system.

We don't use your email address for any other purpose.

We won't be sharing your email address with any other entity.

Unsubscription can be done at any time. Please contact us at: justin@dadamailproject.com for any help regarding your subscription, including removal from the mailing list.

All mailing list messages sent from us will include a subscription removal link, which will allow you to remove yourself from this mailing list automatically, and permanently.

All consent to use your email address for any other purpose stated at the time of the mailing list subscription will also be revoked upon mailing list removal.