Skip to content

Reverse proxy configurations for nginx, for development as well as production#25

Closed
jtnystrom wants to merge 68 commits intokosugi/angular-dockerfrom
johan/angular-docker
Closed

Reverse proxy configurations for nginx, for development as well as production#25
jtnystrom wants to merge 68 commits intokosugi/angular-dockerfrom
johan/angular-docker

Conversation

@jtnystrom
Copy link
Copy Markdown
Contributor

@jtnystrom jtnystrom commented Aug 10, 2023

Reverse proxies on the old server, which we are migrating from, were handled by apache, which was forwarding requests based on domain name and URL to tomcat. In the new docker-based setup, it is convenient to rely on nginx for this, since we are serving node from nginx anyway.

This PR makes angular/nginx/conf.d configurable in docker-compose, so that we can use different configurations for production and development.
Two alternatives are provided: conf.d (the old configuration, for development use) provides a reverse proxy for /json so that angular can talk to scalatra.
In conf.d.prod, additionally we provide a reverse proxy for fusionauth, so that fusionauth and node can live on the same port and server, separated only by the domain name in the request.
The configuration directory is set in docker-compose.yml for the node service as follows:

     volumes:
       - ./angular/nginx/conf.d:/etc/nginx/conf.d

RodolfoAllendes and others added 30 commits April 19, 2022 17:25
fetching updates from master branch
…ization

Merge master into visualization-working
RodolfoAllendes and others added 27 commits February 22, 2023 16:42
Add UI for importing/exporting gene sets from/to TargetMine
Merge network visualization into master
…ts purpose better.

Set the build destination for this to Toxygates/scalatra-jetty and update .gitignore accordingly.
…n the docker environment using a multi-stage build.

Added a special ivy_cache.xml to help with pre-populating the ivy cache when the docker image gets built (slow step).
…nce the latter contains musl instead of libc,

and this confuses jne-kyotocabinet when it tries to find the right native library
Make angular/nginx/conf.d configurable in docker-compose, so that we can track different configurations for production and for development use.
In conf.d/default (for development use), provide a reverse proxy for /json so that angular can talk to scalatra.
In conf.d.prod/default, additionally provide a reverse proxy for fusionauth, so that fusionauth and node can live on
the same port and server, separated only by the domain name in the request.
Docker image for scalatra + separate docker-compose.yml for production
@jtnystrom jtnystrom closed this Dec 1, 2025
@jtnystrom jtnystrom deleted the johan/angular-docker branch December 1, 2025 08:18
@jtnystrom
Copy link
Copy Markdown
Contributor Author

(This branch was merged as part of #26)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants