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

Enable HTTPS when running the docker compose #11

Open
martyp187 opened this issue Feb 3, 2025 · 4 comments
Open

Enable HTTPS when running the docker compose #11

martyp187 opened this issue Feb 3, 2025 · 4 comments

Comments

@martyp187
Copy link

Is there a specific way that the .crt and .key files are meant to be included when running the docker container?

I had these on the host and mounted them in via a volume, and set the TLS_CERT_FILE: TLS_KEY_FILE: to the file paths.

It seems the moment I set these the container loops on start, and without TLS working, vPilot will not auth to /api/v1/fsd-jwt

Thanks!

@renorris
Copy link
Owner

renorris commented Feb 5, 2025

Does the program crash with a stacktrace?

@martyp187
Copy link
Author

In short I don't know. I am thinking first to debug that the .crt and .key files are being mounted correctly into the container, but I cannot exec or get to a shell in the container to see anything useful. I don't think the image is built with any way to see this?

If there is a hardcoded requirement for loading the certificates to get TLS working, could it be added to the compose example?

@renorris
Copy link
Owner

renorris commented Feb 7, 2025

I'm going to need some sort of log or stacktrace or example of your compose file.

See https://docs.docker.com/reference/cli/docker/compose/logs/

@renorris
Copy link
Owner

renorris commented Feb 7, 2025

You can always run basic HTTP on fsd (no TLS) then proxy the webserver upstream using something like nginx, Caddy or similar—delegating the responsibility of TLS to that layer instead.

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

No branches or pull requests

2 participants