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

Some sites missing theme when using socket activation #6693

Closed
sharmay opened this issue Nov 15, 2024 · 2 comments
Closed

Some sites missing theme when using socket activation #6693

sharmay opened this issue Nov 15, 2024 · 2 comments

Comments

@sharmay
Copy link

sharmay commented Nov 15, 2024

Host - Fedora coreos 41
Engine - Podman rootless

I was testing #6573

~/.config/systemd/user/caddy.socket

[Socket]
BindIPv6Only = both
ListenStream=80
ListenStream=443
ListenDatagram=443

[Install]
WantedBy=sockets.target

Caddyfile (poartial)

{
	auto_https disable_certs
	admin off
	default_bind fd/3 {
		protocols h1
	}
	default_bind fd/4 {
		protocols h1 h2
	}
	default_bind fdgram/5 {
		protocols h3
	}
}

https://homepage.example.com {
	import my_subnet_only
	import my_tls
	reverse_proxy homepage:3000
}
https://git.example.com {
	import my_tls
	reverse_proxy forgejo:3000
}

When I visit homepage.example.com I a page without theme, No error in caddy log, no avc denied, no error in chrome. Here is screenshot.
Image

if visit :3000 I get properly themed page
Image

I am seeing similar issue with paperless-ngx, jellyfin.

Only site which works correctly is git.example.com based on Forgejo, and home assistant.

What am I missing or how to debug this issue?

@francislavoie
Copy link
Member

Check your browser's network tab, look at which requests are failing to return the correct content. I'm certain this doesn't have anything to do with socket activation.

Enable the debug global option, show your Caddy logs, show example curl -v requests for the failing URLs.

@sharmay
Copy link
Author

sharmay commented Nov 15, 2024

curl -v is showing identical output.
I opened it in Firefox instead of chrome and page renders properly.

@sharmay sharmay closed this as completed Nov 15, 2024
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

No branches or pull requests

2 participants