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

gitpab behind traefik #10

Open
guidtz opened this issue Oct 30, 2018 · 6 comments
Open

gitpab behind traefik #10

guidtz opened this issue Oct 30, 2018 · 6 comments
Labels
help wanted Extra attention is needed

Comments

@guidtz
Copy link

guidtz commented Oct 30, 2018

Hello,

a second problem, I deploy gitpad with traefik proxy and I have two errors :

  • no css
  • login don't work

What do you think about this error ?

This is my docker-compose
`
version: '3'

services:
app:
build:
context: .
dockerfile: app/Dockerfile
args:
ssh_prv_key: ${ssh_prv_key}
ports:
- "80"
volumes:

- /data/gitpab/app:/data

  - data:/data
environment:
  - GITLAB_PRIVATE_TOKEN=${token}
  - GITLAB_RESTRICTIONS_PROJECT_IDS=${projects}
  - GITLAB_HOST=${host}
  - GHOST_HOST=gitpad_url
  - GHOST_URL=https://gitpad_url
links:
  - db
labels:
  - traefik.enable=true
  - traefik.docker.network=traefik-proxy
  - traefik.frontend.rule=Host:gitpad_url
  - traefik.port:"8010"
networks:
  - traefik-proxy
  - gitpad

db:
image: postgres
volumes:
- /data/gitpab/postgres:/var/lib/postgresql
environment:
POSTGRES_DB: gitpab
POSTGRES_USER: gitpab
POSTGRES_PASSWORD: gitpab
networks:
- gitpad

networks:
traefik-proxy:
external:
name: traefik-proxy
gitpad:

volumes:
data:
`

Regards

@mnvx
Copy link
Contributor

mnvx commented Oct 31, 2018

  • no css
  • login don't work

Look into logs of deploy process

@guidtz
Copy link
Author

guidtz commented Nov 3, 2018

Ok now I saw the problem.
Request for app.js and app.css are generated in http not in https
Request URL: http://domain.com/css/app.css
How could I force https for all data ?

@mnvx
Copy link
Contributor

mnvx commented Nov 3, 2018

Thanks for information. I will check it after 9 november.

@guidtz
Copy link
Author

guidtz commented Nov 3, 2018

ok very good thanks

@guidtz
Copy link
Author

guidtz commented Nov 21, 2018

Hello, with the last version I could login to application behind proxy. But there is always some url in http :
vendor/adminlte/vendor/bootstrap/dist/css/*.css
vendor/adminlte/vendor/bootstrap/dist/js/bootstrap.min.js

Good jod and good evolutions with last update.

Regards

@mnvx mnvx added the help wanted Extra attention is needed label Dec 30, 2018
mnvx added a commit that referenced this issue Mar 10, 2019
mnvx added a commit that referenced this issue Mar 10, 2019
@stratosgear
Copy link

I'm having the same problem. Any idea how to turn the http requests to https?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants