Skip to content

Commit

Permalink
PMM-11231 Use /pmm-ui as path
Browse files Browse the repository at this point in the history
  • Loading branch information
matejkubinec committed Jun 7, 2024
1 parent d1abfc5 commit d33922d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/ansible/roles/nginx/files/conf.d/pmm.conf
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
}

# PMM UI
location /pmm {
location /pmm-ui {
alias /usr/share/pmm-ui;
try_files $uri /index.html break;
}
Expand Down
4 changes: 2 additions & 2 deletions ui/pmm-dev.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ server {
server_name _;

# proxy requests during development to vite dev server
location /pmm {
proxy_pass http://host.docker.internal:5173/pmm;
location /pmm-ui {
proxy_pass http://host.docker.internal:5173/pmm-ui;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
Expand Down
2 changes: 1 addition & 1 deletion ui/src/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const router = createBrowserRouter(
},
],
{
basename: '/pmm',
basename: '/pmm-ui',
}
);

Expand Down
2 changes: 1 addition & 1 deletion ui/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { defineConfig } from 'vitest/config';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [tsconfigPaths({ root: '.' }), react()],
base: '/pmm',
base: '/pmm-ui',
server: {
proxy: {
'/v1': {
Expand Down

0 comments on commit d33922d

Please sign in to comment.