Skip to content

Docker Compose SSL Config #15346

Open
Open
@snipe

Description

@snipe

Discussed in #15337

Originally posted by Masterain98 August 20, 2024
image

I'm receiving a URL error in the pre-flight page, showing Uh oh! Snipe-IT thinks your URL is http://my-domain.com/setup, but your real URL is https://my-domain.com:80/setup Please update your APP_URL settings in your .env file. If I ignore the error and continue to process, some form in the Snipe-it won't response.

Here is the docker compose file, I'm using Cloudflare Tunnel to connect the system to the Internet with SSL.

volumes:
  db_data:
  storage:

services:
  app:
    image: snipe/snipe-it:${APP_VERSION:-v6.4.1}
    restart: always
    volumes:
      - ./storage:/var/lib/snipeit
    env_file:
      - .env

  tunnel:
    container_name: Snipe-IT-Tunnel
    image: cloudflare/cloudflared:latest
    restart: unless-stopped
    command: tunnel --no-autoupdate run
    environment:
      - TUNNEL_TOKEN=

Followed some other issues, added APP_TRUSTED_PROXIES=REMOTE_ADDR, SECURE_COOKIES=true in the .env environment file

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions