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

Need help to setup caddy reverse proxy + docker setup #8858

Open
1 of 7 tasks
gab696 opened this issue Jan 7, 2025 · 1 comment
Open
1 of 7 tasks

Need help to setup caddy reverse proxy + docker setup #8858

gab696 opened this issue Jan 7, 2025 · 1 comment
Labels
docker Docker / docker-compose question This is a question setup Relates to the InvenTree setup / installation process

Comments

@gab696
Copy link

gab696 commented Jan 7, 2025

Deployment Method

  • Installer
  • Docker Development
  • Docker Production
  • Bare metal Development
  • Bare metal Production
  • Digital Ocean image
  • Other (please provide a link Steps to Reproduce

Describe the problem*

Hi,
I run a Docker setup on a Linux Ubuntu 24.04 machine (inventree 0.17.1)
My network as already a server and forwaring ports set to point a NAS from the outside
I can't setup the docker inventree install with a working SSL certificate.

Steps to Reproduce

server as a static ip address

192.168.2.15

DNS A record is set on my domain provider

inventree.xxx.com

In the .env file:

INVENTREE_SITE_URL="https://inventree.xxx.com"

Caddy file.

Important

Should I change something ?

Port forwardings:
On my network I already have set port forwarding pointing to my NAS (80,443)

setting this variable without the secure https and forwarding port 8001 to 80 on the server 192.168.2.15 point the inventree login page but the site is not secure: INVENTREE_SITE_URL="http://inventree.xxx.com"

can I check caddy logs on docker ?

Should I change inventree ports ?

Please could you help me ?
Thanks !

Relevant log output

@gab696 gab696 added question This is a question setup Relates to the InvenTree setup / installation process triage:not-checked Item was not checked by the core team labels Jan 7, 2025
@SchrodingersGat SchrodingersGat added the docker Docker / docker-compose label Jan 8, 2025
@SchrodingersGat
Copy link
Member

@gab696 this seems very similar to the example setup in this blog post - https://inventree.org/blog/2024/03/13/docker

Setting the INVENTREE_SITE_URL=https://inventree.xxx.com should be sufficient - do this and then look at the output of the various docker containers to see where the error lies.

With this setup, what are you seeing when you try to navigate to https://inventree.xxx.com?

@matmair matmair removed the triage:not-checked Item was not checked by the core team label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker Docker / docker-compose question This is a question setup Relates to the InvenTree setup / installation process
Projects
None yet
Development

No branches or pull requests

3 participants