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

Is there any way to disable completely HTTPS ? #451

Closed
SirMishaa opened this issue Aug 21, 2023 · 1 comment
Closed

Is there any way to disable completely HTTPS ? #451

SirMishaa opened this issue Aug 21, 2023 · 1 comment
Labels
support Support requested

Comments

@SirMishaa
Copy link

SirMishaa commented Aug 21, 2023

Hello,

For some specific reason, I'd like to disable completely HTTPS. We're already using some kind of proxy, and we do not want HTTPS on Caddy / application side.

Is there a way to disable it ?

@maxhelias maxhelias added the support Support requested label Aug 21, 2023
@maxhelias
Copy link
Collaborator

maxhelias commented Aug 21, 2023

Hello,

Yes, you can use the environment variable CADDY_EXTRA_CONFIG declared here https://github.com/dunglas/symfony-docker/blob/main/frankenphp/Caddyfile#L14 to add any option.

You should declare it in the yaml file, something like this :

version: "3.4"
services:
  ...
  caddy:
    environment:
      CADDY_EXTRA_CONFIG: "${CADDY_EXTRA_CONFIG}"

Start it with the variable and the right file.

CADDY_EXTRA_CONFIG="auto_https off" \
docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d

Or you can directly pass the option in the yaml file.

And you find here the caddy option about auto https : https://caddyserver.com/docs/caddyfile/options#auto-https

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Support requested
Projects
None yet
Development

No branches or pull requests

2 participants