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

gitlab healthcheck recursive redirection #82

Open
Jeffwhen opened this issue Jun 6, 2019 · 1 comment · May be fixed by #83
Open

gitlab healthcheck recursive redirection #82

Jeffwhen opened this issue Jun 6, 2019 · 1 comment · May be fixed by #83

Comments

@Jeffwhen
Copy link

Jeffwhen commented Jun 6, 2019

I am hosting integram on my own server. GET request to /gitlab/healthcheck is recursively redirected to itself.

version: "3.2"

services:
  mongo:
    image: mongo:3.4
    networks:
      - lab
    volumes:
      - /home/integram/mongo:/data/db

  redis:
    command: redis-server --appendonly yes
    image: redis:3.2
    networks:
      - lab
    volumes:
        - /home/integram/redis:/data

  integram:
    image: integram/integram:alpha
    volumes:
      - /home/integram/mainapp:/app/.conf
    depends_on:
      - mongo
      - redis
    ports:
      - 443:443
    networks:
      - lab
    environment:
      - HTTP_PROXY=http://192.168.2.222:8118
      - http_proxy=http://192.168.2.222:8118
      - TZ=UTC
      - INTEGRAM_MONGO_URL=mongodb://mongo:27017/integram
      - INTEGRAM_REDIS_URL=redis:6379
      - INTEGRAM_INSTANCE_MODE=multi-main
      - INTEGRAM_CONFIG_DIR=/app/.conf
      ## required ENV vars
      - INTEGRAM_PORT=443
      - INTEGRAM_BASE_URL=https://bot.cn:443

  gitlab:
    image: integram/gitlab:alpha
    depends_on:
      - integram
    networks:
      - lab
    environment:
      - HTTP_PROXY=http://192.168.2.222:8118
      - http_proxy=http://192.168.2.222:8118
      - TZ=UTC
      - INTEGRAM_PORT=7000
      - INTEGRAM_MONGO_URL=mongodb://mongo:27017/integram
      - INTEGRAM_REDIS_URL=redis:6379
      - INTEGRAM_INSTANCE_MODE=multi-service

      ## required ENV vars
      - INTEGRAM_BASE_URL=http://gitlab:7000
      - GITLAB_BOT_TOKEN="bybottoken"
      - GITLAB_OAUTH_ID="oauthid"
      - GITLAB_OAUTH_SECRET="secret"

networks:
  lab:

Also why should i config gitlab oauth in environment variables.

@Jeffwhen
Copy link
Author

Jeffwhen commented Jun 8, 2019

So I dig into it. It's golang/go#28168 related. I'm gonna submit a pr.

@Jeffwhen Jeffwhen linked a pull request Jun 8, 2019 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant