Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Caddyfile:
- # Redirect all HTTP to HTTPS globally
- :80 {
- redir https://{host}{uri}
- }
- # Jellyfin
- my.jellyfin.domain {
- reverse_proxy internalip:8096
- }
- # Mirotalk
- otherdomain1.com {
- reverse_proxy https://internalip:3000 {
- header_up X-Forwarded-For {remote_host}
- header_up Host {host}
- header_up X-Forwarded-Proto {scheme}
- transport http {
- tls_insecure_skip_verify # Skip SSL verification if the backend has a self-signed cert
- }
- }
- }
- # Torrent service
- otherdomain2.com {
- reverse_proxy internalip:8080
- }
- # Another Jellyfin instance
- otherdomain3.com{
- reverse_proxy internalip:8096
- }
- Logs:
- C:\Caddy>caddy run --config "Caddyfile"
- 2024/12/12 15:06:34.030 ←[34mINFO←[0m using config from file {"file": "Caddyfile"}
- 2024/12/12 15:06:34.031 ←[33mWARN←[0m caddyfile Unnecessary header_up X-Forwarded-For: the reverse proxy's default behavior is to pass headers to the upstream
- 2024/12/12 15:06:34.032 ←[33mWARN←[0m caddyfile Unnecessary header_up X-Forwarded-Proto: the reverse proxy's default behavior is to pass headers to the upstream
- 2024/12/12 15:06:34.033 ←[34mINFO←[0m adapted config to JSON {"adapter": "caddyfile"}
- 2024/12/12 15:06:34.033 ←[33mWARN←[0m Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies {"adapter": "caddyfile", "file": "Caddyfile", "line": 2}
- 2024/12/12 15:06:34.039 ←[34mINFO←[0m admin admin endpoint started {"address": "localhost:2019", "enforce_origin": false, "origins": ["//localhost:2019", "//[::1]:2019", "//127.0.0.1:2019"]}
- 2024/12/12 15:06:34.039 ←[34mINFO←[0m tls.cache.maintenance started background certificate maintenance {"cache": "0xc0002c7400"}
- 2024/12/12 15:06:34.063 ←[33mWARN←[0m tls stapling OCSP {"error": "no OCSP stapling for [my.jellyfin.domain]: parsing OCSP response: ocsp: error from server: unauthorized"}
- 2024/12/12 15:06:34.063 ←[33mWARN←[0m http.auto_https server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server {"server_name": "srv1", "http_port": 80}
- 2024/12/12 15:06:34.064 ←[34mINFO←[0m http.auto_https skipping automatic certificate management because one or more matching certificates are already loaded {"domain": "my.jellyfin.domain", "server_name": "srv0"}
- 2024/12/12 15:06:34.064 ←[34mINFO←[0m http.auto_https enabling automatic HTTP->HTTPS redirects {"server_name": "srv0"}
- 2024/12/12 15:06:34.065 ←[34mINFO←[0m http enabling HTTP/3 listener {"addr": ":443"}
- 2024/12/12 15:06:34.065 ←[34mINFO←[0m http.log server running {"name": "srv0", "protocols": ["h1", "h2", "h3"]}
- 2024/12/12 15:06:34.066 ←[34mINFO←[0m http.log server running {"name": "srv1", "protocols": ["h1", "h2", "h3"]}
- 2024/12/12 15:06:34.066 ←[34mINFO←[0m http enabling automatic TLS certificate management {"domains": ["otherdomain1.com", "otherdomain2.com", "otherdomain3.com"]}
- 2024/12/12 15:06:34.067 ←[34mINFO←[0m tls storage cleaning happened too recently; skipping for now {"storage": "FileStorage:C:\\Users\\USER\\AppData\\Roaming\\Caddy", "instance": "6eb2dc14-42af-4f62-966c-0705e3fdbf30", "try_again": "2024/12/13 15:06:34.067", "try_again_in": 86400}
- 2024/12/12 15:06:34.069 ←[34mINFO←[0m autosaved config (load with --resume flag) {"file": "C:\\Users\\USER\\AppData\\Roaming\\Caddy\\autosave.json"}
- 2024/12/12 15:06:34.070 ←[34mINFO←[0m serving initial configuration
- 2024/12/12 15:06:34.075 ←[34mINFO←[0m tls finished cleaning storage units
- 2024/12/12 19:26:35.224 ←[34mINFO←[0m http.acme_client got renewal info {"names": ["otherdomain1.com"], "window_start": "2025/01/08 00:21:37.000", "window_end": "2025/01/10 00:21:37.000", "selected_time": "2025/01/09 19:47:10.000", "recheck_after": "2024/12/13 01:26:35.224", "explanation_url": ""}
- 2024/12/12 19:26:35.224 ←[34mINFO←[0m tls.cache.maintenance updated ACME renewal information {"identifiers": ["otherdomain1.com"], "cert_hash": "4bcd03b8d17ddb17c188a84ae2bf836a24447272745113d64bf27e8e2d6a3c58", "ari_unique_id": "kydGmAOpUWiOmNbEQkjbI79YlNI.BD3y_SgTV5tTDcKrWzolMjHb", "cert_expiry": "2025/02/08 00:02:07.000", "selected_time": "2025/01/08 13:54:23.000", "next_update": "2024/12/13 01:26:35.224", "explanation_url": ""}
- 2024/12/12 19:26:35.528 ←[34mINFO←[0m http.acme_client got renewal info {"names": ["otherdomain2.com"], "window_start": "2025/01/12 01:18:02.000", "window_end": "2025/01/14 01:18:02.000", "selected_time": "2025/01/13 06:41:33.000", "recheck_after": "2024/12/13 01:26:35.528", "explanation_url": ""}
- 2024/12/12 19:26:35.528 ←[34mINFO←[0m tls.cache.maintenance updated ACME renewal information {"identifiers": ["otherdomain2.com"], "cert_hash": "d10f8ef291955a80309cd9c7610a7551e25eb0f857ebf3ba6e0c2820b41a63b9", "ari_unique_id": "nytfzzwhT50Et-0rLMTGcIvS1w0.AxIBN-2XwV9HFp4yD3EKLDY-", "cert_expiry": "2025/02/12 00:58:32.000", "selected_time": "2025/01/12 07:57:20.000", "next_update": "2024/12/13 01:26:35.528", "explanation_url": ""}
- 2024/12/12 19:26:35.830 ←[34mINFO←[0m http.acme_client got renewal info {"names": ["otherdomain3.com"], "window_start": "2025/01/28 04:27:42.000", "window_end": "2025/01/30 04:27:42.000", "selected_time": "2025/01/28 18:02:39.000", "recheck_after": "2024/12/13 01:26:35.830", "explanation_url": ""}
- 2024/12/12 19:26:35.831 ←[34mINFO←[0m tls.cache.maintenance updated ACME renewal information {"identifiers": ["otherdomain3.com"], "cert_hash": "15a981f64da483f976d8cefa41788daeac70a364f621066978a1c6a91b43a153", "ari_unique_id": "kydGmAOpUWiOmNbEQkjbI79YlNI.A6MQlSdwcCtSwZNVLvfMkz3c", "cert_expiry": "2025/02/28 04:08:12.000", "selected_time": "2025/01/29 01:29:14.000", "next_update": "2024/12/13 01:26:35.830", "explanation_url": ""}
Add Comment
Please, Sign In to add comment