Giter VIP home page Giter VIP logo

Comments (5)

galexrt avatar galexrt commented on September 26, 2024

@paulgit Could you please provide information on how you run the docker image?

Following information would be good:

  • Docker version
  • Which image is used (hash)
  • Environment variables given in the docker run command

from container-healthchecks.

paulgit avatar paulgit commented on September 26, 2024

Sorry, I should have sent that in my original post!

  • Docker version 1.13.1, build 092cba3
  • Image sha256:f053f35668022c5c89e0566451e8b5e4e3f8bb3b0d16e7357cd10e2356994398
  • Environment variables as follows:
docker run \
    -d \
    --name=healthchecks \
    -p 80:8000 \
    -e 'HC_HOST=0.0.0.0' \
    -e 'HC_SECRET_KEY={removed}' \
    -e 'HC_PING_EMAIL_DOMAIN=mydomain.com' \
    -e 'HC_SITE_ROOT=http://mydomain.com' \
    -e 'HC_EMAIL_HOST={removed}' \
    -e 'HC_EMAIL_PORT=25' \
    -e 'HC_EMAIL_USE_TLS=True' \
    -e 'HC_EMAIL_HOST_USER={removed}' \
    -e 'HC_EMAIL_HOST_PASSWORD={removed}' \
    -e 'HC_ALLOWED_HOSTS=["*"]' \
    galexrt/healthchecks:latest

I am trying to run this on Ubuntu 16.04.4

from container-healthchecks.

paulgit avatar paulgit commented on September 26, 2024

I have also just installed the latest docker and get the same error

Client:
 Version:       17.12.1-ce
 API version:   1.35
 Go version:    go1.9.4
 Git commit:    7390fc6
 Built: Tue Feb 27 22:17:40 2018
 OS/Arch:       linux/amd64

Server:
 Engine:
  Version:      17.12.1-ce
  API version:  1.35 (minimum version 1.12)
  Go version:   go1.9.4
  Git commit:   7390fc6
  Built:        Tue Feb 27 22:16:13 2018
  OS/Arch:      linux/amd64
  Experimental: false

from container-healthchecks.

paulgit avatar paulgit commented on September 26, 2024

Some further information, if I use your 'dev' version of the docker image I can log in ok

from container-healthchecks.

galexrt avatar galexrt commented on September 26, 2024

@paulgit The problem is that Healthchecks needs to be run behind https (with proxy protocol headers passed through).
The cookies for CSRF verification are only allowed to be sent through securely through https.

So to make healthchecks work, you need to put a https proxy in front of it.
An example on how to do that is https://github.com/jwilder/nginx-proxy.
I will add a note to the README that https is required.

from container-healthchecks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.