Skip to content

Using current main docker image breaks with custom Caddyfile #2392

Description

@mristau

When i switched to ghcr.io/pelican-dev/panel:main for testing plugins it did at first produce error 502 because after all Caddy didn't start

I was running with a custom Caddyfile, used almost identical to the one in the regular installation docs, but now that i had time i also tried it with an exact copy from the latest repo, both lead to the errors above.
When i remove the Caddyfile volume, it works again

https domain found setting email var
running behind proxy
listening on port 80 internally
Starting PHP-FPM and Caddy
Starting Supervisord
{"level":"info","ts":1781527801.6152918,"msg":"maxprocs: Leaving GOMAXPROCS=10: CPU quota undefined"}
{"level":"info","ts":1781527801.6155524,"msg":"GOMEMLIMIT is updated","package":"github.com/KimMachineGun/automemlimit/memlimit","GOMEMLIMIT":45421269811,"previous":9223372036854775807}
{"level":"info","ts":1781527801.6156096,"msg":"using config from file","file":"/etc/caddy/Caddyfile"}
{"level":"info","ts":1781527801.6158483,"msg":"maxprocs: No GOMAXPROCS change to reset"}
Error: adapting config using caddyfile: server block without any key is global configuration, and if used, it must be first

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions