xsnipuhx

Multiple services v2

May 4th, 2020
4,286
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. emby.xxx.org {
  2. encode gzip
  3. log {
  4. output file C:\caddy\logs\emby_access.log {
  5. roll true # Rotate logs, enabled by default
  6. roll_size_mb 5 # Set max size 5 MB
  7. roll_gzip true # Whether to compress rolled files
  8. roll_local_time true # Use localhost time
  9. roll_keep 2 # Keep at most 2 log files
  10. roll_keep_days 7 # Keep log files for 7 days
  11. }
  12. }
  13. reverse_proxy localhost:8096
  14. }
  15. airsonic.xxx.org {
  16. encode gzip
  17. log {
  18. output file C:\caddy\logs\airsonic_access.log {
  19. roll true # Rotate logs, enabled by default
  20. roll_size_mb 5 # Set max size 5 MB
  21. roll_gzip true # Whether to compress rolled files
  22. roll_local_time true # Use localhost time
  23. roll_keep 2 # Keep at most 2 log files
  24. roll_keep_days 7 # Keep log files for 7 days
  25. }
  26. }
  27. reverse_proxy localhost:8080
  28. }
  29. books.xxx.org {
  30. encode gzip
  31. log {
  32. output file C:\caddy\logs\books_access.log {
  33. roll true # Rotate logs, enabled by default
  34. roll_size_mb 5 # Set max size 5 MB
  35. roll_gzip true # Whether to compress rolled files
  36. roll_local_time true # Use localhost time
  37. roll_keep 2 # Keep at most 2 log files
  38. roll_keep_days 7 # Keep log files for 7 days
  39. }
  40. }
  41. reverse_proxy localhost:2202
  42. }
  43. # Edited 05/06/20 Remove Empty Brackets, Change logging format, and added Email portion
  44. # Edit 05/07/20 Removed Email portion for now. Adding an optional part in the guide
  45. # Proof /u/NoFeedback4007 is original author. :)
RAW Paste Data