Today I Learn

Today I Learn

Snippets, Tips, Links

04 Jul 2022

Self Signed TLS Phoenix via Caddy

In case you need local https support, and no other ways to config chrome.

Maybe you can use caddy as reverse proxy for phoenix.

Caddyfile:

	https://localhost:5000 {
		reverse_proxy 127.0.0.1:4000
	}

Next: install caddy self-signed cert file on your OS.

location of self-signed cert file:

$HOME/.local/share/caddy (For Unix/Linux/macOS)