performa icon indicating copy to clipboard operation
performa copied to clipboard

Question on deploying in Apache server

Open praveenraj2018 opened this issue 1 year ago • 2 comments

Hi,

Nice application and I would like to set this up in my laboratory.

I was wondering, would it be possible to deploy performa directly into Apache webserver that I have already setup for other applications. Would copy the htdocs to Apache document root work? Do you have any documentation or any pointers for this? Sorry, to ask this, but would useful for users who are trying the same.

Appreciate any help.

praveenraj2018 avatar Feb 09 '24 13:02 praveenraj2018

Performa is itself its own web server, listening on its own port (default 5511). You would have to use Apache's mod_proxy module to forward requests to Performa, based on a VirtualHost that you configure.

jhuckaby avatar Feb 09 '24 17:02 jhuckaby

But API urls seems is hardcoded

https://i.imgur.com/5OVThCt.png

base_app_url - any action

It would be great if it's could run in a directory...

nginx.conf

        location /performa/ {
            proxy_pass http://localhost:5511/;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-Host $host;
            proxy_set_header X-Forwarded-Proto https;
            proxy_set_header Accept-Encoding "";
            
            proxy_redirect http://localhost:5511 https://domain.net/performa/;
        }

uacode avatar Jul 03 '24 12:07 uacode