Advertisement
Guest User

Untitled

a guest
May 31st, 2017
511
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. ####################################### New Caddyfile v0.10.x #######################################
  2.  
  3. # Notes: (Last edit: 5/17/17)
  4.  
  5. # Caddy allows you to import shared configs (e.g. proxy directives) which keeps the caddyfile cleaner
  6.  
  7. # Using "import common.conf" to share directives between server blocks
  8. # "common.conf" config example: https://pastebin.com/hdDKbcSV
  9.  
  10. # Removed PHP startup directive from common.conf and added it to the caddyfile instead
  11.  
  12. ######################################### Code starts below ##########################################
  13.  
  14.  
  15.  
  16. ####################################################################################
  17. # web domain server block
  18. ####################################################################################
  19.  
  20. [domain_name], [domain_name]:10443 {
  21.  
  22. # tls [Email] # Email for Let's Encrypt Verification
  23.  
  24. tls {
  25. dns cloudflare
  26. }
  27.  
  28. startup /caddy/php/php-cgi -b 127.0.0.1:9000 &
  29.  
  30. import common.conf
  31.  
  32. }
  33.  
  34. ####################################################################################
  35. # localhost server block
  36. ####################################################################################
  37.  
  38. http://localhost {
  39.  
  40. import common.conf
  41.  
  42. }
  43.  
  44. ####################################################################################
  45. # Plex subdomain code block
  46. ####################################################################################
  47.  
  48. # plex.yourdomain.com {
  49.  
  50. # gzip
  51.  
  52. # # Separate log file for Plex server
  53.  
  54. # log /caddy/logs/plexaccess.log {
  55. # rotate_size 1 # Rotate after 1 MB
  56. # rotate_age 7 # Keep log files for 7 days
  57. # rotate_keep 2 # Keep at most 2 log files
  58. # }
  59.  
  60. # errors /caddy/logs/plexerror.log {
  61. # rotate_size 1 # Set max size 1 MB
  62. # rotate_age 7 # Keep log files for 7 days
  63. # rotate_keep 2 # Keep at most 2 log files
  64. # }
  65.  
  66. # proxy / 127.0.0.1:32400 {
  67. # transparent
  68. # }
  69.  
  70. # }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement