Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds support for deploying at sub-path behind reverse proxy #28

Conversation

amorey
Copy link
Member

@amorey amorey commented Mar 3, 2024

This PR adds support for deploying the kubetail app at a sub-path behind a reverse proxy by making the following changes:

  • Adds a "base-path" config option (default: "/")
  • Deploys the frontend react app in production using a template to return html generated at at run-time
  • Uses the manifest.json file generated by vite at build-time to load frontend assets properly
  • Passes config variables from the backend to the frontend using a runtimeConfig object injected into the html using the template
  • Adds a config object to the frontend that reads properties from runtimeConfig or from the import.meta.env used by vite in development

@amorey amorey merged commit 540b0cf into kubetail-org:main Mar 3, 2024
1 check passed
@amorey amorey deleted the andres/kub-55-kubetail-run-kubetail-under-a-subpath-behind-reverse-proxy branch March 3, 2024 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant