otobo.psgi vs cgi-bin #1675
Replies: 2 comments 6 replies
-
Hello Marcin, it is very interesting to see how much users have adapted OTRS. Regarding your question I can think of several options: The recommended solutionCreate a customized my_otobo.psgi where there are additional mountpoints for the custom pathes. This means that you need custom PSGI application. For that there are at least two options. You need adapt your Interface modules so that they work with PSGI. This might be a bit of work. The major things are that you need is the method The maybe best solutionTake a look at your interface module and determine the easiest way to turn it into a PSGI app. This might be more appropriate, because for the standard interface I had to jump through some hoops to make it work without too many internal changes. The workaroundWrap your existing scripts from cgi-bin and wrap them with CGI::Emulate::PSGI. This is the approach from OTOBO 10.0. The futureIt would also be possible to implement support for custom interfaces, where the interfaces are registered in the SysConfig. This would allow to add custom interfaces via OTOBO packages. But this idea hasn't really been thought through and no implementation is yet planned. Best regards, |
Beta Was this translation helpful? Give feedback.
-
Hello Bernhard, thank you for your reply. I'd like to discuss the options you presented:
First of all - forgive me my lack of knowledge about PSGI. Creating custom
Unfortunately right now I cannot go this way, because we have customers stuck in OTRS. Our modules architecture is designed for both OTRS and OTOBO, based on a single codebase. I am afraid that solution would break that rule.
I see how it's used here, but where do you think I should place the code to maintain backward compatibility with non-docker-OTOBO installations and old OTRS installations? I really would like to prevent overwriting otobo.psgi at all cost. :) Regards, |
Beta Was this translation helpful? Give feedback.
-
Hello!
I have a question about possible migration paths for our modules.
With OTRS, we used to create custom
.pl
files in the$HOME/bin/cgi-bin/
directory. Also, a custom interfaces were provided inKernel/System/Web/
.Now, with OTOBO in Docker and release of 10.1 version, the PSGI is used all the way, so we cannot simply use these
.pl
scripts anymore.All definitions for
index.pl
,customer.pl
are placed in theotobo.psgi
.So my question is: what is your suggestion to define and mount custom applications?
Beta Was this translation helpful? Give feedback.
All reactions