Nginx, Docker and Docker Compose Nginx, Docker and Docker Compose nginx nginx

Nginx, Docker and Docker Compose


Done it for angular. The nginx file should replace the file in /etc/nginx/nginx.conf. And place the todos folder - assuming that has the static pages - in /usr/share/nginx/html. You can try one service at a time

http {    server {        listen 80;        server_name  localhost;        root   /usr/share/nginx/html;        include /etc/nginx/mime.types;        location /todos {            alias /usr/share/nginx/html/todos/;            absolute_redirect off;            rewrite ^(.+)/todos/+$ $1 permanent;            rewrite ^(.+)/todos/index.html$ $1 permanent;                try_files $uri$args $uri$args/ $uri/ /todos/index.html;        }    }}