Possibility to update the nginx config to add custom apps

I am deploying Rasa-X on a personal server using docker-compose. I have a web app which also needs to be deployed on the server behind the nginx reverse proxy. I am unable to find a nginx configuration file in order to update the information of my web app into the same reverse proxy as that of Rasa-X.

I am not sure where I can use two nginx instances on the server i.e. one for rasa-x and one of my web app.

Is there a workaround or another workflow that I need to look into?

Same here, i cant find the nginx config file. Did you get your answer?

@wale nope. This is quite weird since the docker Image for nginx/rasa does state that a nginx.conf file exists but there is no such file anywhere in the GitHub repositories.

I think the best solution is to go into the container using the following:

  1. docker exec -it rasa_x_nginx
  2. cd /opt/bitnami/nginx/conf/conf.d/

There is a file called rasax.nginx

@shantanoo-desai

Using the contents of rasax.nginx I created a new file in my rasax directory ./conf/rasax.nginx and added this to my docker-compose.override.yml file.

nginx:
    volumes:
      - ./conf/rasax.nginx:/opt/bitnami/nginx/conf/conf.d/rasax.nginx

Beyond that I am unsure how I would add another server block for my custom server running in its own docker container. I have tried adding something like this to the config file:

server {

    listen 4567;

    location / {
        proxy_pass         http://localhost:4567;
    }

}

While the server is running locally on the host machine, it is not running through nginx. Any help would be greatly appreciated.

Any updates? I’m facing the same problem.

I updated the rasax.nginx file and now I’m receiving the error message:

mv: cannot move '/opt/bitnami/nginx/conf/conf.d/rasax.nginx.tmp' to '/opt/bitnami/nginx/conf/conf.d/rasax.nginx': Device or resource busy