server { listen 80; server_name _; root /usr/share/nginx/html; index index.html; location = /onelink-mock { return 301 /onelink-mock/; } location /onelink-mock/assets/ { alias /usr/share/nginx/html/assets/; } location /onelink-mock/api/ { rewrite ^/onelink-mock/(.*)$ /$1 break; proxy_pass http://backend:8080; } location /onelink-mock/v5/ { rewrite ^/onelink-mock/(.*)$ /$1 break; proxy_pass http://backend:8080; } location /onelink-mock/ec/ { rewrite ^/onelink-mock/(.*)$ /$1 break; proxy_pass http://backend:8080; } location /onelink-mock/healthz { rewrite ^/onelink-mock/(.*)$ /$1 break; proxy_pass http://backend:8080; } location /onelink-mock/ { try_files $uri $uri/ /index.html; } location /api/ { proxy_pass http://backend:8080; } location /v5/ { proxy_pass http://backend:8080; } location /ec/ { proxy_pass http://backend:8080; } location /healthz { proxy_pass http://backend:8080; } location / { try_files $uri $uri/ /index.html; } }