-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OCLOMRS-27: Adding Nginx Configuration to allow serving of different URL's in the single page application #14
Conversation
I'm slightly confused by what exactly you want to achieve. That said, nginx.conf is not a yaml file. It only works for the infrastructure nginx, which happens to be deployed using ansible (which parsers a yaml file). I copied the lines so you could have an idea what our proxy is using. What you need to do, instead, is changing the file /etc/nginx/conf.d/default.conf inside your docker container. I don't really understand how you are modifying your docker image without changing your docker file. I did build your docker image locally, and as expected it didn't work. First, I'd strongly recommend you update the docker compose file, as I recommended before: #16 And then, I'd ask you to do: # build docker image # start docker image # enter docker image Copy the file /etc/nginx/conf.d/default.conf to this repo. Edit the way you want. To redo it: # build docker image # start docker image After you get it working inside your browser, locally, from inside docker, I think it would be good to go. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added on the previous comment
Thankyou @cintiadr I have made changes to the PR as requested. |
It works! 💃 When I run it locally, http://localhost:8081/dashboard loads. This PR is good as is, but I'd recommend for next changes/PRs:
|
I have updated the PR with requested changes @cintiadr |
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
JIRA TICKET NAME:
OCLOMRS-27
Summary:
Currently the Nginx configuration does not allow serving different routes such as /dashboard or /login. The default.conf will overwrite the existing Nginx default.conf settings in the docker container and allow Nginx to serve files from all the supplied URL's. The Pull Request is in relation to the Ticket ITSM-4148.