Skip to content

An nginx container configured to serve an Angular 11 project.

Notifications You must be signed in to change notification settings

chinchalinchin/nginx-angular-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nginx-angular-starter

An nginx container configured to serve Angular 11 and proxy requests to the a backend container.

Quickstart

Copy .sample.env into container.env

cp .sample.env container.env

Invoke build-container.sh shell script. From the root directory,

./scripts/build-container.sh

This will bring up an nginx server on localhost:8080. You can adjust the port the server runs on by changing the NGINX_PORT environment variable in the container.env file.

If you have the wrapper server running, enable the PROXY variable to tell nginx to proxy requests to the backend. Be sure to configure the PROXY_HOST and PROXY_PORT variables accordingly. See .sample.env comments for more information.

Notes

  1. If you get the following error when starting up the container $'\r': command not found, this is due to the line endings in the either the /scripts/bootstrap.sh or /scripts/util/logging.sh shell script. Use the /scripts/util/unixify.sh shell script to traverse the project directory and change all line endings to Unix-style,

./scripts/util/unixify.sh "$(pwd)"

I recommend deleting the /frontend/node_modules/ directory before doing this, as the traversal will take some time if node_modules is included in its search path.

nginx Documentation

nginx Tutorials

Stack Overflows

About

An nginx container configured to serve an Angular 11 project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published