Skip to content

Usage with Cloudflare proxy #238

Closed
Closed
@bollerdominik

Description

@bollerdominik

In my env file I define my IP to the public IP of the server.
I can run a docker container and I can access it from the specified domain with HTTPS and a valid Lets-Encrypt certificate.

Now I switch my Cloudflare toggle to proxy all requests to my webserver. This results in a "This page isn't redirecting properly" error and I can no longer access the docker container.

I would like to know how to setup Cloudflare and this proxy to properly work together.

Example container:

version: '3.2'
services:
  grafana:
    image: grafana/grafana
    container_name: grafana
    hostname: grafana
    expose:
      - "3000"
    environment:
      VIRTUAL_HOST: graf.domain.com
      LETSENCRYPT_HOST: graf.domain.com

networks:
  default:
    external:
      name: webproxy

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions