SpartaSystems / holdmail

HoldMail is a Java Application for proxying SMTP mail, providing a browsable viewer for captured emails.
Apache License 2.0
32 stars 15 forks source link

nginx proxy & subdirectory #79

Open atmaniak opened 6 years ago

atmaniak commented 6 years ago

Is there any way to run holdmail behind nginx and serve the content as a subdirectory ?

We have multiple project here, and we would like to run each instance behind our nginx proxy as follow : http://domain.local/project/1holdmail http://domain.local/project2/holdmail

If i change the contextPath in holdmail.properties the application answer a blank page.

barryoneill commented 5 years ago

Sorry for the slow reply, I haven't had the same time to commit to this project recently.

Some reading indicates that Spring applications will support a X-Forwarded-Prefix header if it sees one, perhaps that might work, but I believe it may be a URI rewriting rule that's needed, as the UI for holdmail is pretty independent from the spring API backend.

Adding tag 'help-wanted'