Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ####################################### New Caddyfile v0.10.x #######################################
- # Notes: (Last edit: 5/17/17)
- # Caddy allows you to import shared configs (e.g. proxy directives) which keeps the caddyfile cleaner
- # Using "import common.conf" to share directives between server blocks
- # "common.conf" config example: https://pastebin.com/hdDKbcSV
- # Removed PHP startup directive from common.conf and added it to the caddyfile instead
- ######################################### Code starts below ##########################################
- ####################################################################################
- # web domain server block
- ####################################################################################
- [domain_name], [domain_name]:10443 {
- # tls [Email] # Email for Let's Encrypt Verification
- tls {
- dns cloudflare
- }
- startup /caddy/php/php-cgi -b 127.0.0.1:9000 &
- import common.conf
- }
- ####################################################################################
- # localhost server block
- ####################################################################################
- http://localhost {
- import common.conf
- }
- ####################################################################################
- # Plex subdomain code block
- ####################################################################################
- # plex.yourdomain.com {
- # gzip
- # # Separate log file for Plex server
- # log /caddy/logs/plexaccess.log {
- # rotate_size 1 # Rotate after 1 MB
- # rotate_age 7 # Keep log files for 7 days
- # rotate_keep 2 # Keep at most 2 log files
- # }
- # errors /caddy/logs/plexerror.log {
- # rotate_size 1 # Set max size 1 MB
- # rotate_age 7 # Keep log files for 7 days
- # rotate_keep 2 # Keep at most 2 log files
- # }
- # proxy / 127.0.0.1:32400 {
- # transparent
- # }
- # }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement