I was tried of having to Google this everytime!
Dockerfile
Where to put the nginx.conf
inside Nginx, this COPY command is in your Dockerfile.
1 | FROM nginx:alpine |
Reverse proxy
A reverse proxy provides an additional level of abstraction and control to ensure the smooth flow of network traffic between clients and servers.
1 | server { |
React App 404 on refresh
The react app manages the route but then a refresh on a route that Nginx pulls a WFT is this on returns 404 -_-
1 | server { |
Complete Sample config
1 | server { |