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

[ingress-envoy] Set up and enable TLS #5

Merged
merged 2 commits into from
Dec 25, 2021
Merged

[ingress-envoy] Set up and enable TLS #5

merged 2 commits into from
Dec 25, 2021

Conversation

bhongy
Copy link
Owner

@bhongy bhongy commented Dec 25, 2021

No description provided.

@@ -3,6 +3,9 @@
"dockerComposeFile": "docker-compose.yml",
"service": "app",
"workspaceFolder": "/kimidori/${localWorkspaceFolderBasename}",
"settings": {
"remote.autoForwardPorts": false
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

app is behind ingress now, so it should not forward port to host

@@ -5,7 +5,7 @@
"author": "Thanik Bhongbhibhat <email@thanik.me>",
"license": "MIT",
"scripts": {
"start": "parcel serve './src/index.html' --port 8000 --lazy",
"start": "parcel serve './src/index.html' --port 8000 --lazy --https",
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https mainly because I want parcel to serve hot reload via wss instead of ws so ingress-envoy proxies the upgrade request properly

return (
<iframe
allow="clipboard-write"
className="Main"
frameBorder="0"
sandbox=""
sandbox="allow-scripts"
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need this so the documents from the proxied services can execute javascript (render React)

@@ -5,7 +5,7 @@
"author": "Thanik Bhongbhibhat <email@thanik.me>",
"license": "MIT",
"scripts": {
"start": "parcel serve './src/index.html' --port 8000 --lazy"
"start": "parcel serve './src/index.html' --public-url \"/service/profile\" --port 8000 --lazy"
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hack by hardcoding the proxied path for now. Profile shouldn't know this but I have to figure out static path routing in HTML in reverse proxy setup better.

@bhongy bhongy merged commit f9ac6d9 into main Dec 25, 2021
@bhongy bhongy deleted the create-ingress-envoy branch December 25, 2021 05:28
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