Hi all,
I have a kind of issue here.
I have a website which is deployed with traefik. I would like to setup my website in http and request my API with some POST http method.
The problem is that, the POST http change into POST https.
This is my docker-compose.yml file:
version: "3.0"
networks:
frontend:
external: true
backend:
external: true
services:
### Traefik ########################################
traefik:
container_name: traefik
image: traefik:1.7.5-alpine
command: --docker
networks:
- frontend
- backend
ports:
- 80:80
- 443:443
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./traefik/traefik.toml:/traefik.toml
- ./traefik/acme.json:/acme.json
labels:
- traefik.backend=traefik
- traefik.frontend.rule=Host:traefik.staging.fr
- traefik.port=8080
### Api (Core) ########################################
api:
container_name: api
image: registry.gitlab.com/example/apps/api-core:dev
labels:
- traefik.backend=api
- traefik.frontend.rule=Host:api.staging.fr
- traefik.port=5000
networks:
- backend
### Webapp V1 ############################################
webapp-v1:
container_name: webapp-v1
image: registry.gitlab.com/example/apps/angular-client:dev
labels:
- traefik.backend=webapp-v1
- traefik.frontend.rule=Host:app.staging.fr
- traefik.port=80
networks:
- frontend
- backend
This is my traefik.toml :
defaultEntryPoints = ["http"]
[web]
address = ":8080"
[web.auth.basic]
users = ["admin:admin"]
[entryPoints]
[entryPoints.http]
address = ":80"
Debug Mode in Chrome :
Request URL: https://api.staging.fr/api/accounts/login
Error : OPTIONS https://api.staging.fr/api/accounts/login net::ERR_CONNECTION_REFUSED
I would like to request http://api.staging.fr/api/accounts/login but it request https://api.staging.fr/api/accounts/login
Is there a way to disable traefik changing POST http into POST https ?