Usage of nginx for deployment

Hello, I am passing question from project.

Does anybody have an experience with usage of nginx for deploying A12 BAP application (server and client part)

Thanks!

Josef

Hi Josef,

in the Cosmo projects we’re doing this for quiet some time now. At least <PROJECT_NAME> and hendricks/<PROJECT_NAME> have a BAP in production with nginx.

What’s the actual question?

Best,
Max

Hi Max,
we want to deploy the client code javascript-files with nginx. I tried it locally and it seems to be very easy. But there are a few requests which the client directs to the server. For example for authentifiation, as one can see in webpack.config.js:
webpack_config
I´ve tried configuring this in the nginx.conf file:
nginx_conf
But the when I launch the app it doens´t seem to work:

I´ve tried a lot but can´t get it to work. Do you perhaps have any idea?

Thanks, cheers
Werther

Issue was looked at locally by MNitze and wdryden and could be resolved.

@werther-veiled-cliff, could you please describe solution here? Thanks a lot!