login as:
~/abapcraft.dev — code, crafted in SAP
florin@abapcraft:~/abap/posts/fiori-to-do-in-synology-docker/nginx.conf $ cat nginx.conf
TEXT 23 lines
events {}

http {
  include /etc/nginx/mime.types;
  default_type application/octet-stream;

  server {
    listen 80;
    root /usr/share/nginx/html;

    # Forward /todos (and /todos/:id) to the json-server container.
    # "api" is the Docker Compose service name — resolved on the internal network.
    location /todos {
      proxy_pass http://api:3001;
    }

    # Serve the built UI5 app; fall back to index.html for UI5 hash-based routing.
    location / {
      try_files $uri $uri/ /index.html;
    }
  }
}