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

VSCode can't reach BCContainer (azure VM using traefik) #3716

Open
BMSPedro opened this issue Oct 10, 2024 · 4 comments
Open

VSCode can't reach BCContainer (azure VM using traefik) #3716

BMSPedro opened this issue Oct 10, 2024 · 4 comments
Assignees

Comments

@BMSPedro
Copy link

We use an Azure VM to host our development environment, we rely on traefik (Setup-TraefikContainerForBcContainers command, traefik image from Tobias Fenster) with the Let's Encrypt option for the SSL certificate.
Certificates issued by this platform are revoked after 90 days.
We tried a self-signed certificate but we have the same problem, unsecured connection in the browser and connection failed from VScode.

We also tried forceHTTP but we must be doing it incorrectly.

There is a way to force an HTTP connection from VScode (what would be the port and url to use in the launch.json file).

There is a way to properly use a self-signed certificate.

Thanks
Pedro

Script container creation:
$credential = New-Object pscredential 'admin', (ConvertTo-SecureString -String 'P@ssword1' -AsPlainText -Force)
New-BcContainer -accept_eula -containerName BC250W1 -artifactUrl https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/onprem/25.0.23364.24652/w1 -assignPremiumPlan -auth NavUserPassword -Credential $credential -shortcuts None -updateHosts -PublicDnsName server.westeurope.cloudapp.azure.com -useTraefik

Image

@freddydk
Copy link
Contributor

If you use a self-signed certificate, you can try installing that certificate on your computer under trusted certificate authorities - then it might work.

If you are using letsencrypt without traefik - there is a script called renew-letsencryptcertificate, which you can run on the Azure VM - that should work. I actually thought that traefik would renew the certificate automatically.

@BMSPedro
Copy link
Author

BMSPedro commented Oct 10, 2024 via email

@freddydk
Copy link
Contributor

Please use the WEB UI in GitHub instead of answering emails - it is very hard to read messages sent in email to GitHub.

The command will not work on traefik VMs - might even destroy the VM.

The traefik stuff was not created by me and I really don't know the details of how it works, sorry.

@freddydk
Copy link
Contributor

On forceHTTP - I think this means that you will communicate with the traefik container using https and the traefik container will communicate with your BC container using HTTP.

You should never try to setup an Azure VM where you authenticate using HTTP,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants