Files
emaui/nginx/backoffice.conf
mengstabketemaw dacf39d95c user managment ui
2026-06-12 11:46:25 +03:00

20 lines
540 B
Plaintext

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# The user-management module is a self-contained SPA built into /_um. Deep links
# / refreshes under /_um must fall back to the MODULE's own index.html, not the
# host's. Longest-prefix match wins, so this takes precedence over `location /`.
# Mirrors the dev SPA-fallback plugin in apps/backoffice/vite.config.mts.
location /_um/ {
try_files $uri $uri/ /_um/index.html;
}
location / {
try_files $uri $uri/ /index.html;
}
}