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

How to use own certificate in Caddy? How to show Caddy-related logs? #219

Open
cx0222 opened this issue Feb 21, 2025 · 0 comments
Open

How to use own certificate in Caddy? How to show Caddy-related logs? #219

cx0222 opened this issue Feb 21, 2025 · 0 comments

Comments

@cx0222
Copy link

cx0222 commented Feb 21, 2025

My system is Ubuntu 22.04.5 LTS. I can use PDS normally, but I really want to use my own certificate. Therefore, I modified the /pds/caddy/etc/caddy/Caddyfile configuration file, deleted on_demand_tls, and added the crt and key files. However, PDS fails to start, and even when I enable logging, there are no Caddy-related errors.

The Caddyfile looks like:

{
	email admin@[MY_DOMAIN].cn
#	on_demand_tls {
#		ask http://localhost:3000/tls-check
#	}
}

*.[MY_DOMAIN], [MY_DOMAIN] {
#	tls {
#		on_demand
#	}
        tls /etc/ssl/certs/[MY_DOMAIN].crt /etc/ssl/private/[MY_DOMAIN].key
	reverse_proxy http://localhost:3000
}
  1. Can I modify the Caddy configuration like this?
  2. How can I view all of Caddy's logs?

Thank you so much!

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

1 participant