Guest User

Untitled

a guest
Dec 12th, 2024
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.87 KB | None | 0 0
  1. Caddyfile:
  2.  
  3. # Redirect all HTTP to HTTPS globally
  4. :80 {
  5. redir https://{host}{uri}
  6. }
  7.  
  8. # Jellyfin
  9. my.jellyfin.domain {
  10. reverse_proxy internalip:8096
  11. }
  12.  
  13. # Mirotalk
  14. otherdomain1.com {
  15. reverse_proxy https://internalip:3000 {
  16. header_up X-Forwarded-For {remote_host}
  17. header_up Host {host}
  18. header_up X-Forwarded-Proto {scheme}
  19. transport http {
  20. tls_insecure_skip_verify # Skip SSL verification if the backend has a self-signed cert
  21. }
  22. }
  23. }
  24.  
  25. # Torrent service
  26. otherdomain2.com {
  27. reverse_proxy internalip:8080
  28. }
  29.  
  30. # Another Jellyfin instance
  31. otherdomain3.com{
  32. reverse_proxy internalip:8096
  33. }
  34.  
  35.  
  36. Logs:
  37. C:\Caddy>caddy run --config "Caddyfile"
  38. 2024/12/12 15:06:34.030 ←[34mINFO←[0m using config from file {"file": "Caddyfile"}
  39. 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
  40. 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
  41. 2024/12/12 15:06:34.033 ←[34mINFO←[0m adapted config to JSON {"adapter": "caddyfile"}
  42. 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}
  43. 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"]}
  44. 2024/12/12 15:06:34.039 ←[34mINFO←[0m tls.cache.maintenance started background certificate maintenance {"cache": "0xc0002c7400"}
  45. 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"}
  46. 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}
  47. 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"}
  48. 2024/12/12 15:06:34.064 ←[34mINFO←[0m http.auto_https enabling automatic HTTP->HTTPS redirects {"server_name": "srv0"}
  49. 2024/12/12 15:06:34.065 ←[34mINFO←[0m http enabling HTTP/3 listener {"addr": ":443"}
  50. 2024/12/12 15:06:34.065 ←[34mINFO←[0m http.log server running {"name": "srv0", "protocols": ["h1", "h2", "h3"]}
  51. 2024/12/12 15:06:34.066 ←[34mINFO←[0m http.log server running {"name": "srv1", "protocols": ["h1", "h2", "h3"]}
  52. 2024/12/12 15:06:34.066 ←[34mINFO←[0m http enabling automatic TLS certificate management {"domains": ["otherdomain1.com", "otherdomain2.com", "otherdomain3.com"]}
  53. 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}
  54. 2024/12/12 15:06:34.069 ←[34mINFO←[0m autosaved config (load with --resume flag) {"file": "C:\\Users\\USER\\AppData\\Roaming\\Caddy\\autosave.json"}
  55. 2024/12/12 15:06:34.070 ←[34mINFO←[0m serving initial configuration
  56. 2024/12/12 15:06:34.075 ←[34mINFO←[0m tls finished cleaning storage units
  57. 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": ""}
  58. 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": ""}
  59. 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": ""}
  60. 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": ""}
  61. 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": ""}
  62. 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