Skip to content

Commit

Permalink
Add silent-sso to container (#3779)
Browse files Browse the repository at this point in the history
Co-authored-by: David Gauldie <[email protected]>
  • Loading branch information
bigglesandginger and dgauldie authored Jun 6, 2024
1 parent af8725c commit 2c3994a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ image-hmi-client: clean-hmi-client yarn-install
yarn workspace hmi-client build
mv $(PROJECT_DIR)/packages/client/hmi-client/dist $(PROJECT_DIR)/packages/client/hmi-client/docker/dist


## Clean
.PHONY: clean
clean: $(TARGETS:%=clean-%)
Expand Down
8 changes: 8 additions & 0 deletions packages/client/hmi-client/docker/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ server {
expires 0;
}

location = /silent-sso.html {
add_header Cache-Control no-cache;
add_header Cache-Control no-store;
add_header Cache-Control must-revalidate;
add_header Pragma no-cache;
expires 0;
}

location ~^/api/(.*) {
set $pass_uri $1;
proxy_pass http://api-upstream/$pass_uri$is_args$args;
Expand Down
8 changes: 7 additions & 1 deletion packages/client/hmi-client/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,13 @@ export default defineConfig({
format: 'es'
},
build: {
target: 'esnext'
target: 'esnext',
rollupOptions: {
input: {
main: path.resolve(__dirname, 'index.html'),
sso: path.resolve(__dirname, 'silent-sso.html')
}
}
},
plugins: [
vue({
Expand Down

0 comments on commit 2c3994a

Please sign in to comment.