mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-07-28 06:29:59 +00:00
TUN-528: Move cloudflared into a separate repo
This commit is contained in:
507
vendor/github.com/mholt/caddy/dist/CHANGES.txt
generated
vendored
Normal file
507
vendor/github.com/mholt/caddy/dist/CHANGES.txt
generated
vendored
Normal file
@@ -0,0 +1,507 @@
|
||||
CHANGES
|
||||
|
||||
0.11 (May 10, 2018)
|
||||
- Built with Go 1.10.2
|
||||
- Integrated optional telemetry client
|
||||
- proxy: Fixed file descriptor leak
|
||||
|
||||
|
||||
0.10.14 (April 19, 2018)
|
||||
- tls: Fix error handling bug when obtaining certificates
|
||||
|
||||
|
||||
0.10.13 (April 18, 2018)
|
||||
- New third-party plugin: supervisor
|
||||
- Updated QUIC
|
||||
- proxy: Fix transparent pass-thru of X-Forwarded-For
|
||||
- proxy: Configurable timeout to upstream
|
||||
- rewrite: Now supports regular expressions on single-line
|
||||
- tls: StrictHostMatching mode to prevent client auth bypass
|
||||
- tls: Disable client auth when using QUIC
|
||||
- tls: Require same client auth cert pools per hostname
|
||||
- tls: Prevent On-Demand TLS directory traversal
|
||||
- tls: Fix empty files when using ACME fails to obtain cert
|
||||
- Fixed test broken by 1.1.1.1 resolving
|
||||
- Improved Caddyfile parser robustness by fuzzing
|
||||
|
||||
|
||||
0.10.12 (March 27, 2018)
|
||||
- Switch to Let's Encrypt ACMEv2 production endpoint
|
||||
- Support for automated wildcard certificates
|
||||
- Support distributed solving of HTTP-01 challenge
|
||||
- New {labelN}, {tls_cipher}, and {tls_version} placeholders
|
||||
- Curly braces can now be escaped when not used as placeholders
|
||||
- New third-party plugin: geoip
|
||||
- Updated QUIC
|
||||
- fastcgi: Add SSL_CIPHER and SSL_PROTOCOL environment variables
|
||||
- log: New 'except' subdirective to exempt paths from logging
|
||||
- startup/shutdown: Removed in favor of 'on'
|
||||
- tls: Default minimum version is TLS 1.2
|
||||
- tls: Revert to fallback cert if no cert matches SNI
|
||||
- tls: New 'wildcard' subdirective to force automated wildcard cert
|
||||
- Several significant bug fixes and improvements!
|
||||
|
||||
|
||||
0.10.11 (February 20, 2018)
|
||||
- Built with Go 1.10
|
||||
- Reusable snippets for the Caddyfile
|
||||
- Updated QUIC
|
||||
- Auto-HTTPS certificates may be shared by multiple instances
|
||||
- Expand globbed values in -conf flag
|
||||
- Swap behavior of SIGTERM and SIGQUIT; ignore SIGHUP
|
||||
- 9 new DNS provider plugins for the ACME DNS challenge
|
||||
- New placeholder for {<Response-Header} values
|
||||
- basicauth: Username put in {user} placeholder
|
||||
- fastcgi: GET requests can now send a body
|
||||
- proxy: Service discovery with DNS SRV load balancing
|
||||
- request_id: Allow reusing request ID from header field
|
||||
- tls: Improved efficiency of many certificates and reloads
|
||||
- tls: Raise error if conflicting TLS configurations collide
|
||||
- tls: Raise TLS alert if SNI used and no cert matched
|
||||
- tls: Reject OCSP responses that expire after the certificate
|
||||
- tls: Clients can use SNI to request a specific certificate
|
||||
- tls: Add option for backend to approve on-demand certificate
|
||||
- tls: Synchronize maintenance of shared, managed certificates
|
||||
- Numerous fabulous bug fixes
|
||||
|
||||
|
||||
0.10.10 (October 9, 2017)
|
||||
- Built with Go 1.9.1
|
||||
- Removed Caddy-Sponsors header
|
||||
- New 'on' directive that deprecates 'startup' and 'shutdown'
|
||||
- Changed CASE_SENSITIVE_PATH default to false
|
||||
- fastcgi: Support for SRV upstreams
|
||||
- redir: Rules with if statements are not checked for duplicates
|
||||
- Several minor bug fixes
|
||||
|
||||
|
||||
0.10.9 (September 12, 2017)
|
||||
- EULA bundled with official binaries
|
||||
- Caddy-Sponsors header to indicate personal-use license
|
||||
- proxy: Support for QUIC backends
|
||||
- templates: Write proper status code if proxied
|
||||
- tls: Fix bug related to cert renewals
|
||||
|
||||
|
||||
0.10.8 (September 8, 2017)
|
||||
- NACL compilation support
|
||||
- Merge multiple consecutive slashes when comparing paths
|
||||
- A few other bug fixes
|
||||
|
||||
|
||||
0.10.7 (August 25, 2017)
|
||||
- Built with Go 1.9
|
||||
- New 3rd-party plugin directives: jekyll, awses, forwardproxy
|
||||
- Different exit codes
|
||||
- Plan 9 support
|
||||
- Graceful binary upgrades with SIGUSR2
|
||||
- internal: Support X-Accel-Redir without paths to protect
|
||||
- templates: Can execute templates loaded by other middleware
|
||||
- A few really good bug fixes
|
||||
|
||||
|
||||
0.10.6 (July 28, 2017)
|
||||
- fastcgi: Fix runtime error for 32-bit and ARM architectures
|
||||
|
||||
|
||||
0.10.5 (July 27, 2017)
|
||||
- Renamed requestid directive to request_id
|
||||
- Set default idle timeout of 5 minutes
|
||||
- New 3rd-party plugin directives: cache, nobots, webdav
|
||||
- New Unix timestamp placeholder {when_unix}
|
||||
- Improved MITM detection on iOS clients
|
||||
- errors, log: Fix log rolling parsing
|
||||
- gzip: Convert any ETag header to weak etag
|
||||
- fastcgi: Reverted persistent connections (issue #1736)
|
||||
- proxy: Added header loaded balancing policy
|
||||
- proxy: Fix hang on chunked WebSockets (e.g. with HomeAssistant)
|
||||
- Several other bug fixes and minor internal improvements
|
||||
|
||||
|
||||
0.10.4 (June 28, 2017)
|
||||
- Vendor all dependencies
|
||||
- Improve MITM detection, add experimental Tor browser support
|
||||
- New requestid directive to add request IDs to each request
|
||||
- New HTTP plugins supported: authz, grpc, gopkg, reauth, restic
|
||||
- browse: Refreshed default UI and added symlink indicators
|
||||
- errors, log: Added rotate_compress directive to compress rolled logs
|
||||
- markdown: Template files loaded at each request instead of just once
|
||||
- proxy: Allow multiple Server header fields on downstream response
|
||||
- proxy: Perform health checks by body substring
|
||||
- rewrite,redir: Added 'not_starts_with' and 'not_ends_with' operators
|
||||
- tls: New ca subdirective to specify CA endpoint per-site
|
||||
- Several bug fixes
|
||||
|
||||
|
||||
0.10.3 (May 19, 2017)
|
||||
- Replace 'maxrequestbody' directive with 'limits' directive
|
||||
- proxy: Configurable port for health check
|
||||
- proxy: New load balance policy: uri_hash
|
||||
- templates: Renamed .Push context action to .AddLink
|
||||
- tls: Allow narrower certificate renewal window at startup (#1680)
|
||||
- tls: Prefer ChaCha20 if hardware does not have AES-NI
|
||||
|
||||
|
||||
0.10.2 (May 2, 2017)
|
||||
- Hot fix for rule paths of "/" so that they match every request
|
||||
- fastcgi: Match request paths that don't start with "/" even if rule does
|
||||
|
||||
|
||||
0.10.1 (May 1, 2017)
|
||||
- Reduced memory usage for gzip, templates, and MITM detection
|
||||
- Fixed automatic HTTP->HTTPS redirects for sites with wildcard labels
|
||||
- proxy: Fix 'without' subdirective
|
||||
- A few other minor bug fixes and improvements
|
||||
|
||||
|
||||
0.10 (April 20, 2017)
|
||||
- Built on Go 1.8.1
|
||||
- HTTPS interception detection
|
||||
- Updated QUIC
|
||||
- SIGUSR1 (reload) now works with QUIC servers
|
||||
- New 'push' directive for HTTP/2 server push
|
||||
- New 'index' directive to change the names of index files
|
||||
- New -http-port and -https-port flags to change protocol ports
|
||||
- New -disable-http-challenge and -disable-tls-sni-challenge flags
|
||||
- New event hook plugin type
|
||||
- New listener middleware plugin type
|
||||
- New placeholders for cookie, query, and rewritten URI values
|
||||
- basicauth: Ability to customize realm
|
||||
- browse: Default template now sorts by name with directories first
|
||||
- errors, log: Roll all logs by default
|
||||
- errors, log: Ability to write to remote syslog
|
||||
- errors, log: Standardized, simplified directive syntax
|
||||
- log: Patched common log format by adding missing "-"
|
||||
- proxy: New 'max_conns' setting to limit connections to upstreams
|
||||
- proxy: New 'first' load balancing policy for first available host
|
||||
- proxy: Health checks respect Host and insecure_skip_verify settings
|
||||
- templates: New .RandomString action to add random padding to page
|
||||
- timeouts: Disabled default HTTP timeouts
|
||||
- tls: Settings now apply per-site rather than for entire listener
|
||||
- tls: New 'alpn' setting to disable either HTTP/2 or HTTP/1.1 on per-site basis
|
||||
- tls: Added curve X25519
|
||||
- tls: Added ChaCha20-Poly1305 cipher suites
|
||||
- tls: Renamed muststaple to must_staple
|
||||
- tls: Setting max_certs obtains certs during handshakes for all hostnames
|
||||
- Dozens of miscellaneous bug fixes and improvements
|
||||
- New website
|
||||
- New build infrastructure
|
||||
- New deployment system
|
||||
|
||||
|
||||
0.9.5 (January 24, 2017)
|
||||
- New -validate flag to only check a Caddyfile, then exit
|
||||
- New {when_iso} placeholder for timestamp ISO 8601 in UTC
|
||||
- New {rewrite_path} and {rewrite_path_escaped} placeholders
|
||||
- New 'timeouts' directive to configure or disable HTTP timeouts
|
||||
- HTTP-level timeouts enabled by default
|
||||
- basicauth: Authorization header stripped upon successful login
|
||||
- browse: Added textbox to filter listing in default template
|
||||
- browse: Sanitize file names and links in default template
|
||||
- browse: Ensure active Caddyfile is hidden regardless of cwd
|
||||
- fastcgi: New 'root' property, mainly for use with containers
|
||||
- markdown: Apply some front matter fields as <meta> tags
|
||||
- proxy: Fixed HTTP/2 upstream to backend; honors -http CLI flag
|
||||
- proxy: Fixed websockets over HTTPS
|
||||
- proxy: Reduced memory usage and improved performance
|
||||
- proxy: Added support for HTTP trailers
|
||||
- tls: Fixed deadlock that affected some background renewals
|
||||
- Several other smaller bugs squashed and improvements made
|
||||
|
||||
|
||||
0.9.4 (December 21, 2016)
|
||||
- Updated QUIC
|
||||
- New maxrequestbody directive to limit size of request body
|
||||
- New {latency_ms} placeholder for latency always in ms
|
||||
- Serve statically compressed .gz and .br files
|
||||
- fastcgi: Support for multiple backends with basic load balancing
|
||||
- proxy: Fixed handling of encoded 'without' paths
|
||||
- proxy: Preserve trailing slash if present in request
|
||||
- proxy: Fix HTTP/2 upstreams
|
||||
- templates: New .Files action to list files in a directory
|
||||
- templates: .Include can now pass arguments to included file
|
||||
- tls: Added ability to customize preferred curves
|
||||
- tls: Added support for Must-Staple on managed certificates
|
||||
- tls: Fixed subtle edge case bug with TLS-SNI challenge
|
||||
- Lots of minor fixes and improvements
|
||||
|
||||
|
||||
0.9.3 (September 28, 2016)
|
||||
- Updated QUIC to newer version
|
||||
- import: Glob pattern matching 0 files is no longer an error
|
||||
- fastcgi: Fixed persistent connections (disabled by default)
|
||||
- fastcgi: Configurable connection pool size parameter
|
||||
- proxy: Improved failover load balancing logic
|
||||
- proxy: Avoids duplicating header fields that would be confusing
|
||||
- proxy: New try_duration and try_interval parameters
|
||||
- proxy: Fix for IP hash policy when downed hosts come back up
|
||||
- Several other bug fixes and new tests
|
||||
|
||||
|
||||
0.9.2 (September 20, 2016)
|
||||
- New -catimeout option to customize ACME CA HTTP timeout
|
||||
- import: Fix nested import absolute/relative paths
|
||||
- log: Fix multiple log outputs
|
||||
- proxy: Fix for keepalive in certain cases
|
||||
- tls: Fix for PreferServerCipherSuites
|
||||
- Numerous other bug fixes and internal improvements
|
||||
|
||||
|
||||
0.9.1 (August 17, 2016)
|
||||
- New {request_body} placeholder to log request body
|
||||
- {remote} placeholder no longer uses X-Forwarded-For header
|
||||
- {latency} placeholder rounds to nice looking number
|
||||
- Add support for ratelimit plugin
|
||||
- basicauth: Declaring realm named "Restricted"
|
||||
- errors: Define catch-all/default error page with * character
|
||||
- header: More control to add, set, or remove headers
|
||||
- proxy: New keepalive setting to help accommodate busy servers
|
||||
- proxy: New load balancing policy ip_hash
|
||||
- proxy: Fixed WebSocket connections
|
||||
- proxy: Fixed broken header logic
|
||||
- proxy: Reuse existing connection for Upgrade requests
|
||||
- proxy: Support for basic auth from header or upstream address
|
||||
- templates: New .Env action to access environment variables
|
||||
- tls: OCSP staples persisted to disk
|
||||
- tls: ACME challenges honor bind directive
|
||||
- tls: Fix default protocol version (minimum TLS 1.1)
|
||||
- tls: Consume challenge requests only for names Caddy is solving for
|
||||
- tls: The protocol syntax allows just one value if desired
|
||||
- tls: Scoped max_certs limit to site instead of global maximum
|
||||
- Many other bug fixes and minor enhancements
|
||||
|
||||
|
||||
0.9 (July 18, 2016)
|
||||
- New core
|
||||
- New experimental QUIC support with -quic flag (HTTPS only)
|
||||
- New -type option to specify other server types
|
||||
- Moved ~/.caddy/letsencrypt to ~/.caddy/acme and reorganized assets
|
||||
- Moved caddy package to top level folder, and pushed main to subfolder
|
||||
- New {request} placeholder to dump entire request (without body)
|
||||
- New {hostonly} placeholder for only hostname portion of host value
|
||||
- Site addresses can have paths
|
||||
- Site addresses can make some use of wildcards in domains
|
||||
- Renamed -directives flag to -plugins
|
||||
- Restarting no longer requires spawning a new process
|
||||
- Removed -restart option
|
||||
- fastcgi: Env variables now support placeholders
|
||||
- import: Import paths now relative to Caddyfile, not current working dir
|
||||
- markdown: Overhauled; removed site generation features
|
||||
- proxy: More control of headers; deprecating proxy_header subdirective
|
||||
- proxy: Specify multiple upstreams with optional port ranges
|
||||
- proxy: New preset 'transparent' to simplify common pass-thru headers
|
||||
- proxy: Chooses longest matching path; order declared is irrelevant
|
||||
- redir: Added if and if_op subdirectives to make conditional redirects
|
||||
- rewrite: Support for if_op to change how conditions are evaluated
|
||||
- tls: Generate self-signed certificates in memory
|
||||
- tls: Support for ACME DNS challenge with 10 providers
|
||||
- tls: Support for TLS-SNI challenge during restarts
|
||||
- Various bug fixes and enhancements
|
||||
|
||||
|
||||
0.8.3 (April 26, 2016)
|
||||
- Built with Go 1.6.2
|
||||
- New pprof middleware for exposing process profiling endpoints
|
||||
- New expvar middleware for exposing memory/GC performance
|
||||
- New -restart option to force in-process restarts on Unix systems
|
||||
- Only fail to start if managed certificate is expired (issue #642)
|
||||
- Toggle case-sensitive path matching with environment variable
|
||||
- File server now adds ETag header for static files
|
||||
- browse: Replace .LinkedPath action with .BreadcrumbMap
|
||||
- fastcgi: New except clause to exclude paths
|
||||
- proxy: New max_conns setting to limit max connections per upstream
|
||||
- proxy: New replaceable value for name of upstream host
|
||||
- templates: New utility actions for dealing with strings
|
||||
- tls: Customize certificate key with key_type (+ECC)
|
||||
- tls: Session ticket keys are now rotated
|
||||
- Many other minor internal improvements and bug fixes
|
||||
|
||||
|
||||
0.8.2 (February 25, 2016)
|
||||
- On-demand TLS can obtain certificates during handshakes
|
||||
- Built with Go 1.6
|
||||
- Process log (-log) is rotated when it gets large
|
||||
- Managed certificates get renewed 30 days early instead of just 14
|
||||
- fastcgi: Allow scheme prefix before address
|
||||
- markdown: Support for definition lists
|
||||
- proxy: Allow proxy to insecure HTTPS backends
|
||||
- proxy: Support proxy to unix socket
|
||||
- rewrite: Status code can be 2xx or 4xx
|
||||
- templates: New .Markdown action to interpret included file as Markdown
|
||||
- templates: .Truncate now truncates from end of string when length is negative
|
||||
- tls: Set hard limit for certificates obtained with on-demand TLS
|
||||
- tls: Load certificates from directory
|
||||
- tls: Add SHA384 cipher suites
|
||||
- Multiple bug fixes and internal changes
|
||||
|
||||
|
||||
0.8.1 (January 12, 2016)
|
||||
- Improved OCSP stapling
|
||||
- Better graceful reload when new hosts need certificates from Let's Encrypt
|
||||
- Current pidfile is now deleted when Caddy exits
|
||||
- browse: New default template
|
||||
- gzip: Added min_length setting
|
||||
- import: Support for glob patterns (*) to import multiple files
|
||||
- rewrite: New complex rules with conditions, regex captures, and status code
|
||||
- tls: Removed DES ciphers from default cipher suite list
|
||||
- tls: All supported certificates are OCSP-stapled
|
||||
- tls: Allow custom configuration without specifying certificate and key
|
||||
- tls: No longer allow HTTPS over port 80
|
||||
- Dozens of bug fixes, improvements, and more tests across the board
|
||||
|
||||
|
||||
0.8 (December 4, 2015)
|
||||
- HTTPS by default via Let's Encrypt (certs & keys are fully managed)
|
||||
- Graceful restarts (on POSIX-compliant systems)
|
||||
- Major internal refactoring to allow use of Caddy as library
|
||||
- New directive 'mime' to customize Content-Type based on file extension
|
||||
- New -accept flag to accept Let's Encrypt SA without prompt
|
||||
- New -email flag to customize default email used for ACME transactions
|
||||
- New -ca flag to customize ACME CA server URL
|
||||
- New -revoke flag to revoke a certificate
|
||||
- New -log flag to enable process log
|
||||
- New -pidfile flag to enable writing pidfile
|
||||
- New -grace flag to customize the graceful shutdown timeout
|
||||
- New support for SIGHUP, SIGTERM, and SIGQUIT signals
|
||||
- browse: Render filenames with multiple whitespace properly
|
||||
- core: Use environment variables in Caddyfile
|
||||
- markdown: Include Last-Modified header in response
|
||||
- markdown: Render tables, strikethrough, and fenced code blocks
|
||||
- proxy: Ability to exclude/ignore paths from proxying
|
||||
- startup, shutdown: Better Windows support
|
||||
- templates: Bug fix for .Host when port is absent
|
||||
- templates: Include Last-Modified header in response
|
||||
- templates: Support for custom delimiters
|
||||
- tls: For non-local hosts, default port is now 443 unless specified
|
||||
- tls: Force-disable HTTPS
|
||||
- tls: Specify Let's Encrypt email address
|
||||
- Many, many more tests and numerous bug fixes and improvements
|
||||
|
||||
|
||||
0.7.6 (September 28, 2015)
|
||||
- Pass in simple Caddyfile as command line arguments
|
||||
- basicauth: Support for legacy htpasswd files
|
||||
- browse: JSON response with file listing
|
||||
- core: Caddyfile as command line argument
|
||||
- errors: Can write full stack trace to HTTP response for debugging
|
||||
- errors, log: Roll log files after certain size or age
|
||||
- proxy: Fix for 32-bit architectures
|
||||
- rewrite: Better compatibility with fastcgi and PHP apps
|
||||
- templates: Added .StripExt and .StripHTML methods
|
||||
- Internal improvements and minor bug fixes
|
||||
|
||||
|
||||
0.7.5 (August 5, 2015)
|
||||
- core: All listeners bind to 0.0.0.0 unless 'bind' directive is used
|
||||
- fastcgi: Set HTTPS env variable if connection is secure
|
||||
- log: Output to system log (except Windows)
|
||||
- markdown: Added dev command to disable caching during development
|
||||
- markdown: Fixed error reporting during initial site generation
|
||||
- markdown: Fixed crash if path does not exist when server starts
|
||||
- markdown: Fixed site generation and link indexing when files change
|
||||
- templates: Added .NowDate for use in date-related functions
|
||||
- Several bug fixes related to startup and shutdown functions
|
||||
|
||||
|
||||
0.7.4 (July 30, 2015)
|
||||
- browse: Sorting preference persisted in cookie
|
||||
- browse: Added index.txt and default.txt to list of default files
|
||||
- browse: Template files may now use Caddy template actions
|
||||
- markdown: Template files may now use Caddy template actions
|
||||
- markdown: Several bug fixes, especially for large and empty Markdown files
|
||||
- markdown: Generate index pages to link to markdown pages (sitegen only)
|
||||
- markdown: Flatten structure of front matter, changed template variables
|
||||
- redir: Can use variables (placeholders) like log formats can
|
||||
- redir: Catch-all redirects no longer preserve path; use {uri} instead
|
||||
- redir: Syntax supports redirect tables by opening a block
|
||||
- templates: Renamed .Date to .Now and added .Truncate, .Replace actions
|
||||
- Other minor internal improvements and more tests
|
||||
|
||||
|
||||
0.7.3 (July 15, 2015)
|
||||
- errors: Error log now shows timestamp with each entry
|
||||
- gzip: Fixed; Default filtering is by extension; removed MIME type filter
|
||||
- import: Fixed; works inside and outside server blocks
|
||||
- redir: Query string preserved on catch-all redirects
|
||||
- templates: Proper 403 or 404 errors for restricted or missing files
|
||||
|
||||
|
||||
0.7.2 (July 1, 2015)
|
||||
- Custom builds through caddyserver.com - extend Caddy by writing addons
|
||||
- browse: Sort by clicking column heading or using query string
|
||||
- core: Serving hostname that doesn't resolve issues warning then listens on 0.0.0.0
|
||||
- errors: Missing error page during parse time is warning, not error
|
||||
- ext: Extension only appended if request path does not end in /
|
||||
- fastcgi: Fix for backend responding without status text
|
||||
- fastcgi: Fix PATH_TRANSLATED when PATH_INFO is empty (RFC 3875)
|
||||
- git: Removed from core (available as add-on)
|
||||
- gzip: Enable by file path and/or extension
|
||||
- gzip: Customize compression level
|
||||
- log: Fix for missing status in log entry when error unhandled
|
||||
- proxy: Strip prefix from path for proxy to path
|
||||
- redir: Meta tag redirects
|
||||
- templates: Support for nested includes
|
||||
- Internal improvements and more tests
|
||||
|
||||
|
||||
0.7.1 (June 2, 2015)
|
||||
- basicauth: Patched timing vulnerability
|
||||
- proxy: Support for WebSocket backends
|
||||
- tls: Client authentication
|
||||
|
||||
|
||||
0.7 (May 25, 2015)
|
||||
- New directive 'internal' to protect resources with X-Accel-Redirect
|
||||
- New -version flag to show program name and version
|
||||
- core: Fixed escaped backslash characters inside quoted strings
|
||||
- core: Fixed parsing Caddyfile for IPv6 addresses missing ports
|
||||
- core: A notice is shown when non-local address resolves to loopback interface
|
||||
- core: Warns if file descriptor limit is too low for production site (Mac/Linux)
|
||||
- fastcgi: Support for Unix sockets
|
||||
- git: Fixed issue that prevented pulling at designated interval
|
||||
- header: Remove a header field by prefixing field name with "-"
|
||||
- markdown: Simple static site generation
|
||||
- markdown: Support for metadata ("front matter") at beginning of files
|
||||
- rewrite: Experimental support for regular expressions
|
||||
- tls: Customize cipher suites and protocols
|
||||
- tls: Removed RC4 ciphers
|
||||
- Other internal improvements that are not user-facing (more tests, etc.)
|
||||
|
||||
|
||||
0.6 (May 7, 2015)
|
||||
- New directive 'git' to automatically pull changes
|
||||
- New directive 'bind' to override host server binds to
|
||||
- New -root flag to specify root path to default site
|
||||
- Ability to receive config data piped through stdin
|
||||
- core: Warning if root directory doesn't exist at startup
|
||||
- core: Entire process dies if any server fails to start
|
||||
- gzip: Fixed Content-Length value when proxying requests
|
||||
- errors: Error log now includes file and line number of panics
|
||||
- fastcgi: Pass custom environment variables
|
||||
- fastcgi: Support for HEAD, OPTIONS, PUT, PATCH, and DELETE methods
|
||||
- fastcgi: Fixed SERVER_SOFTWARE variables
|
||||
- markdown: Support for index files when URL points to a directory
|
||||
- proxy: Load balancing with multiple backends, health checks, failovers, and multiple policies
|
||||
- proxy: Add custom headers
|
||||
- startup/shutdown: Run command in background with '&' at end
|
||||
- templates: Added .tpl and .tmpl as default extensions
|
||||
- templates: Support for index files when URL points to a directory
|
||||
- templates: Changed .RemoteAddr to .IP and stripped out remote port
|
||||
- tls: TLS disabled (with warning) for servers that are explicitly http://
|
||||
- websocket: Fixed SERVER_SOFTWARE and GATEWAY_INTERFACE variables
|
||||
- Many internal improvements
|
||||
|
||||
|
||||
0.5.1 (April 30, 2015)
|
||||
- Default host is now 0.0.0.0 (wildcard)
|
||||
- New -host and -port flags to override default host and port
|
||||
- core: Support for binding to 0.0.0.0
|
||||
- core: Graceful error handling during heavy load; proper error responses
|
||||
- errors: Fixed file path handling
|
||||
- errors: Fixed panic due to nil log file
|
||||
- fastcgi: Support for index files
|
||||
- fastcgi: Fix for handling errors that come from responder
|
||||
|
||||
|
||||
0.5 (April 28, 2015)
|
||||
- Initial release
|
120
vendor/github.com/mholt/caddy/dist/EULA.txt
generated
vendored
Normal file
120
vendor/github.com/mholt/caddy/dist/EULA.txt
generated
vendored
Normal file
@@ -0,0 +1,120 @@
|
||||
End-User License Agreement
|
||||
|
||||
Last updated: September 14, 2017
|
||||
|
||||
THIS SOFTWARE END-USER LICENSE AGREEMENT ("EULA") IS A LEGAL AGREEMENT ("Agreement") BETWEEN YOU (THE CUSTOMER, EITHER AS AN INDIVIDUAL OR, IF PURCHASED OR OTHERWISE ACQUIRED BY OR FOR AN ENTITY, AS AN ENTITY) AND LIGHT CODE LABS, LLC ("Licensor" and "Company"). READ IT CAREFULLY BEFORE COMPLETING THE INSTALLATION PROCESS AND USING OFFICIAL CADDY BINARIES AND RELATED SOFTWARE COMPONENTS ("Software"). IT PROVIDES A LICENSE TO USE THE SOFTWARE AND CONTAINS WARRANTY INFORMATION AND LIABILITY DISCLAIMERS. BY INSTALLING AND USING THE SOFTWARE, YOU ARE CONFIRMING YOUR ACCEPTANCE OF THE SOFTWARE AND AGREEING TO BECOME BOUND BY THE TERMS OF THIS AGREEMENT. THE SOFTWARE IS COPYRIGHTED. THE SOFTWARE IS LICENSED, NOT SOLD, TO YOU UNDER THIS AGREEMENT.
|
||||
|
||||
If you do not understand or agree to the terms of this Agreement, do not download, install, or use the Software.
|
||||
|
||||
The open source code of this Software is licensed under the terms of the Apache License Version 2.0 and not under this EULA.
|
||||
|
||||
1. Grant of License
|
||||
|
||||
1.1 General Use. Subject to your full and ongoing compliance with the terms and conditions of this Agreement, including without limitation payment of all applicable license fees and service costs, and according to and in conjunction with the current Terms of Service on the Company's website which also apply, this Agreement hereby grants to you, and you accept, a non-exclusive, non-transferable, limited license to the use rights for the Software, without the right to grant sublicenses, subject to the terms and conditions in this Agreement. The Software is licensed, not sold.
|
||||
{{if eq .Type "personal"}}
|
||||
1.2 {{.Name}} ("License"). You may perpetually distribute, install, and use the Software on any number of machines and for any number of instances so long as the distribution, installation, or use of the Software is strictly non-commercial and does not support a business purpose, except for an allowed, temporary, 30-consecutive-day trial use in a commercial setting. This License does NOT grant you a subscription to any support or services ("Subscription"). All the terms of this Agreement continue to apply except where explicitly noted does not apply to the {{.Name}} or is explicitly only for a different license or valid subscription.
|
||||
{{else}}
|
||||
1.2 {{.Name}} ("License"). You may distribute, install, and use the Software{{if gt .InstanceLimit 0}} such that no more than {{.InstanceLimit}} operating system process(es) (or "instance(s)") of the Software under your control, influence, or management are running concurrently/simultaneously{{end}} on any number of hosts in any environment including, but not limited to, development, testing, staging, and production environments, for {{.Months}} month(s) beginning at most recent date of purchase or successful renewal transaction for the License. This period of time constitutes an active and valid subscription ("Subscription"). You are required and agree to immediately cease use of all instances of the Software when the Subscription ends, expires, or when this Agreement is terminated.
|
||||
{{end}}
|
||||
1.3 Storing Copies. You are entitled to make copies of the Software for archival or backup purposes. Each copy must preserve all copyright, licenses, and other legal notices on, in, or distributed with the Software.
|
||||
|
||||
1.4 Electronic Delivery. All Software and license documentation shall be delivered by electronic means at the time of purchase. Software shall be deemed delivered when purchase transaction is complete ("Delivery") only throughout the lifetime of your Subscription.
|
||||
|
||||
2. Modifications
|
||||
|
||||
"Modification" means: (a) any addition to or deletion from the contents of a file included in the original Software or previous Modifications created by you, or (b) any new file that contains any part of the original Software or previous Modifications, including the bundle or archive file in which it was distributed. You retain all rights to any original work authored by you as part of the Modifications, and the Company continues to own all copyright and other intellectual property rights in the Software.
|
||||
|
||||
3. Restrictions
|
||||
|
||||
3.1 You SHALL NOT, and shall not allow any third party, to:
|
||||
(a) decompile, disassemble, or otherwise reverse engineer the Software or attempt to reconstruct or discover any source code, underlying ideas, algorithms, file formats or programming interfaces of the Software by any means whatsoever (except and only to the extent that applicable law prohibits or restricts reverse engineering restrictions);
|
||||
(b) distribute, sell, sublicense, rent, lease or use the Software for time sharing, hosting, service provider or like purposes, except as expressly permitted under this Agreement;
|
||||
(c) redistribute the Software or Modifications other than by including the Software or a portion thereof within your own product or service, which must have substantially different functionality than the Software or Modifications and must not allow any third party to use the Software or Modifications, or any portions thereof, without a proper license to account for its use;
|
||||
(d) redistribute the Software as part of an "appliance", "consumer device", or "virtual server";
|
||||
(e) redistribute the Software on or to any machine which is not directly under your control or management;
|
||||
(f) remove any product identification, proprietary, copyright, or other notices contained in the Software;
|
||||
(g) modify any part of the Software, create a derivative work of any part of the Software (except as permitted in Section 4), or incorporate the Software, except to the extent expressly authorized in writing by the Company;
|
||||
(h) publicly disseminate performance information or analysis (including, without limitation, benchmarks) from any source relating to the Software;
|
||||
(i) utilize any equipment, device, software, or other means designed to circumvent or remove any form of copy protection in place by the Company in connection with the Software;
|
||||
(j) use the Software to develop a product which is similar to or competitive with any of the Company's product or service offerings;
|
||||
(k) share, distribute, or publish authorization codes, URLs, keys, or any other data provided by the Company that is intended exclusively for your account and not others, otherwise the Company reserves the right to terminate your Subscription without notice;
|
||||
(l) violate the Terms of Service as posted on the Company's website;
|
||||
{{- if eq .Type "personal"}}
|
||||
(m) use or distribute the Software commercially, including to, for, or within a company or for business purposes;
|
||||
(n) use or distribute the Software as any part of a formal or informal profitable venture, or as part of a product or service being sold either directly or indirectly;
|
||||
{{- end}}
|
||||
the violation of any of these is subject to the termination clauses in Section 7.
|
||||
|
||||
3.2 UNDER NO CIRCUMSTANCES MAY YOU USE THE SOFTWARE AS PART OF A PRODUCT OR SERVICE THAT PROVIDES IDENTICAL OR SIMILAR FUNCTIONALITY TO THE SOFTWARE ITSELF.
|
||||
|
||||
4. Ownership
|
||||
|
||||
Notwithstanding anything to the contrary contained herein, except for the limited license rights expressly provided herein, the Company and its suppliers have and will retain all rights, title and interest (including, without limitation, all patent, copyright, trademark, trade secret and other intellectual property rights) in and to the Software and all copies, modifications and derivative works thereof (including any changes which incorporate any of your ideas, feedback or suggestions). You acknowledge that you are obtaining only a limited license right to the Software, and that irrespective of any use of the words "purchase", "sale", "transaction", or like terms hereunder no ownership rights are being conveyed to you under this Agreement or otherwise.
|
||||
|
||||
5. Fees and Payment
|
||||
|
||||
The Software license fees will be due and payable in full as set forth in the applicable invoice or at the time of purchase. You shall be responsible for all taxes, withholdings, duties and levies arising from the order (excluding taxes based on the net income of the Company). Refunds and other payment terms are in accordance to the current Terms of Service on the Company's website.
|
||||
|
||||
6. Support, Maintenance, and Services
|
||||
|
||||
Subject to the terms and conditions of this Agreement and according to the Terms of Service posted on the Company's website, and as set forth in your invoice, support from the Company may be included with the purchase of your license Subscription.
|
||||
|
||||
7. Term of Agreement
|
||||
|
||||
7.1 Term. This Agreement is effective as of the Delivery of the Software and expires at such time as all license and service subscriptions hereunder have expired in accordance with their own terms ("Term"). For clarification, the term of your license under this Agreement may be designated as a fixed-term license in the Invoice, and shall be specified at your time of purchase. Either party may terminate this Agreement (including all related invoices) if the other party: (a) fails to cure any breach of this Agreement within ten (10) days after written notice of such breach, provided that the Company may terminate this Agreement immediately upon any breach of Section 3 or if you exceed any other restrictions contained in Section 1, unless otherwise specified in this agreement; (b) ceases operation without a successor; or (c) seeks protection under any bankruptcy, receivership, trust deed, creditors arrangement, composition or comparable proceeding, or if any such proceeding is instituted against such party (and not dismissed within sixty (60) days). Termination is not an exclusive remedy and the exercise by either party of any remedy under this Agreement will be without prejudice to any other remedies it may have under this Agreement, by law, or otherwise.
|
||||
|
||||
7.2 Termination. Upon any termination of this Agreement, you shall cease any and all use of any Software and destroy all copies thereof, including any copies that you have distributed to or manage for other parties.
|
||||
|
||||
7.3 Expiration of License. Upon the expiration of any term under this Agreement, (a) all Software updates and services pursuant to the license shall cease, (b) you may not continue to run any existing installations of the Software for internal company use or in any other commercial context, (c) you may not install the Software on any additional machines, and (d) any new installation of the Software shall require the purchase of a new license subscription from the Company.
|
||||
|
||||
8. Disclaimer of Warranties
|
||||
|
||||
The Software is provided "as is" with all faults, defects and errors, and without warranty of any kind. The Company does not warrant that the Software will be free of bugs, errors, viruses or other defects, and the Company shall have no liability of any kind for the use of or inability to use the Software, the Software content or any associated service, and you acknowledge that it is not technically practicable for the Company to do so.
|
||||
|
||||
To the maximum extent permitted by applicable law, the Company disclaims all warranties, express, implied, arising by law or otherwise, regarding the Software, the Software content and their respective performance or suitability for your intended use, including without limitation any implied warranty of merchantability, fitness for a particular purpose.
|
||||
|
||||
9. Limitation of Liability
|
||||
|
||||
In no event will the Company be liable for any direct, indirect, consequential, incidental, special, exemplary, or punitive damages or liabilities whatsoever arising from or relating to the Software, the Software content or this Agreement, whether based on contract, tort (including negligence), strict liability or other theory, even if the Company has been advised of the possibility of such damages.
|
||||
|
||||
In no event will the Company's liability exceed the Software license price as indicated in the invoice. The existence of more than one claim will not enlarge or extend this limit.
|
||||
|
||||
10. Remedies
|
||||
|
||||
Your exclusive remedy and the Company's entire liability for breach of this Agreement shall be limited, at the Company's sole and exclusive discretion, to (a) replacement of any defective software or documentation; or (b) refund of the license fee paid to the Company, payable in accordance with the Company's refund policy.
|
||||
|
||||
11. Acknowledgements
|
||||
|
||||
11.1 Consent to the Use of Data. You agree that the Company and its affiliates may collect and use technical information gathered as part of the product and/or support services. The Company may use this information solely to improve products and services and will not disclose sensitive information in connection with personal identifiers.
|
||||
|
||||
11.2 Verification. The Company or a certified auditor acting on the Company's behalf, may, upon its reasonable request and at its expense, audit you with respect to the use of the Software. Such audit may be conducted by mail, electronic means or through an in-person visit to your place(s) of business. Any such in-person audit shall be conducted during regular business hours at your facilities and shall not unreasonably interfere with your business activities. We shall not remove, copy, or redistribute any electronic material during the course of an audit. If an audit reveals that you are using the Software in a way that is in violation of the terms of this Agreement, then you shall pay the Company's reasonable costs of conducting the audit. In the case of a violation, you agree to pay the Company any amounts owing that are attributable to the unauthorized use. In the alternative, the Company reserve the right, at its sole option, to terminate the licenses for the Software.
|
||||
|
||||
11.3 Government End Users. If the Software and related documentation are supplied to or purchased by or on behalf of the United States Government, then the Software is deemed to be "commercial software" as that term is used in the Federal Acquisition Regulation system. Rights of the United States shall not exceed the minimum rights set forth in FAR 52.227-19 for "restricted computer software". All other terms and conditions of this Agreement apply.
|
||||
|
||||
12. Miscellaneous
|
||||
|
||||
12.1 Entire Agreement. This Agreement, in conjunction with the Terms of Service on the Company's website, sets forth the Company's entire agreement with respect to the Software and the subject matter hereof and supersedes all prior and contemporaneous understandings and agreements whether written or oral.
|
||||
|
||||
12.2 Amendment. The Company reserves the right, at its sole discretion, to amend this Agreement at any time. Amendments to this Agreement can be located on the Company's websites.
|
||||
|
||||
12.3 Assignment. You may not assign this Agreement or any of its rights under this Agreement without the prior written consent of the Company and any attempted assignment without such consent shall be void.
|
||||
|
||||
12.4 Export Compliance. You agree to comply with all applicable laws and regulations, including laws, regulations, orders or other restrictions on export, re-export or redistribution of software.
|
||||
|
||||
12.5 Indemnification. You agree to defend, indemnify, and hold harmless the Company from and against any lawsuits, claims, losses, damages, fines and expenses (including attorneys' fees and costs) arising out of your use of the Software or breach of this Agreement.
|
||||
|
||||
12.6 Governing Law. This Agreement is governed by the laws of the State of Utah and the United States without regard to conflicts of laws provisions thereof, and without regard to the United Nations Convention on the International Sale of Goods or the Uniform Computer Information Transactions Act, as currently enacted by any jurisdiction or as may be codified or amended from time to time by any jurisdiction. The jurisdiction and venue for actions related to the subject matter hereof shall be the state of Utah and United States federal courts located in Utah County, Utah, and both parties hereby submit to the personal jurisdiction of such courts.
|
||||
|
||||
12.7 Attorneys' Fees and Costs. The prevailing party in any action to enforce this Agreement will be entitled to recover its attorney's fees and costs in connection with such action.
|
||||
|
||||
12.8 Severability. If any provision of this Agreement is held by a court of competent jurisdiction to be invalid, illegal, or unenforceable, the remainder of this Agreement will remain in full force and effect.
|
||||
|
||||
12.9 Waiver. Failure or neglect by either party to enforce at any time any of the provisions of this licence Agreement shall not be construed or deemed to be a waiver of that party's rights under this Agreement.
|
||||
|
||||
12.10 Freedom to Decline. The Company reserves the right to decline doing business, favors, or services, entering into agreements, or associating in any way, with any individual, organization, or other entity for any reason, and is not required to disclose the reason.
|
||||
|
||||
12.11 Headings. The headings of sections and paragraphs of this Agreement are for convenience of reference only and are not intended to restrict, affect or be of any weight in the interpretation or construction of the provisions of such sections or paragraphs.
|
||||
|
||||
13. Contact Information
|
||||
|
||||
If you have any questions about this Agreement, please direct correspondence to sales@lightcodelabs.com.
|
539
vendor/github.com/mholt/caddy/dist/LICENSES.txt
generated
vendored
Normal file
539
vendor/github.com/mholt/caddy/dist/LICENSES.txt
generated
vendored
Normal file
@@ -0,0 +1,539 @@
|
||||
The enclosed software makes use of third-party libraries either in full
|
||||
or in part, original or modified. This file is part of your download so
|
||||
as to be in full compliance with the licenses of all bundled property.
|
||||
|
||||
|
||||
|
||||
###
|
||||
### github.com/mholt/caddy
|
||||
###
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "{}"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright {yyyy} {name of copyright owner}
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
###
|
||||
### Go standard library and http2
|
||||
###
|
||||
|
||||
|
||||
Copyright (c) 2012 The Go Authors. All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above
|
||||
copyright notice, this list of conditions and the following disclaimer
|
||||
in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* Neither the name of Google Inc. nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
###
|
||||
### github.com/russross/blackfriday
|
||||
###
|
||||
|
||||
|
||||
Blackfriday is distributed under the Simplified BSD License:
|
||||
|
||||
> Copyright © 2011 Russ Ross
|
||||
> All rights reserved.
|
||||
>
|
||||
> Redistribution and use in source and binary forms, with or without
|
||||
> modification, are permitted provided that the following conditions
|
||||
> are met:
|
||||
>
|
||||
> 1. Redistributions of source code must retain the above copyright
|
||||
> notice, this list of conditions and the following disclaimer.
|
||||
>
|
||||
> 2. Redistributions in binary form must reproduce the above
|
||||
> copyright notice, this list of conditions and the following
|
||||
> disclaimer in the documentation and/or other materials provided with
|
||||
> the distribution.
|
||||
>
|
||||
> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
> "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
> LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
> FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
> COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
> INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
> BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
> LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
> CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
> LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||
> ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
> POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
###
|
||||
### github.com/dustin/go-humanize
|
||||
###
|
||||
|
||||
|
||||
Copyright (c) 2005-2008 Dustin Sallings <dustin@spy.net>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
||||
<http://www.opensource.org/licenses/mit-license.php>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
###
|
||||
### github.com/flynn/go-shlex
|
||||
###
|
||||
|
||||
Apache 2.0 license as found in this file
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
###
|
||||
### github.com/go-yaml/yaml
|
||||
###
|
||||
|
||||
|
||||
Copyright (c) 2011-2014 - Canonical Inc.
|
||||
|
||||
This software is licensed under the LGPLv3, included below.
|
||||
|
||||
As a special exception to the GNU Lesser General Public License version 3
|
||||
("LGPL3"), the copyright holders of this Library give you permission to
|
||||
convey to a third party a Combined Work that links statically or dynamically
|
||||
to this Library without providing any Minimal Corresponding Source or
|
||||
Minimal Application Code as set out in 4d or providing the installation
|
||||
information set out in section 4e, provided that you comply with the other
|
||||
provisions of LGPL3 and provided that you meet, for the Application the
|
||||
terms and conditions of the license(s) which apply to the Application.
|
||||
|
||||
Except as stated in this special exception, the provisions of LGPL3 will
|
||||
continue to comply in full to this Library. If you modify this Library, you
|
||||
may apply this exception to your version of this Library, but you are not
|
||||
obliged to do so. If you do not wish to do so, delete this exception
|
||||
statement from your version. This exception does not (and cannot) modify any
|
||||
license terms which apply to the Application, with which you must still
|
||||
comply.
|
||||
|
||||
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
|
||||
This version of the GNU Lesser General Public License incorporates
|
||||
the terms and conditions of version 3 of the GNU General Public
|
||||
License, supplemented by the additional permissions listed below.
|
||||
|
||||
0. Additional Definitions.
|
||||
|
||||
As used herein, "this License" refers to version 3 of the GNU Lesser
|
||||
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
||||
General Public License.
|
||||
|
||||
"The Library" refers to a covered work governed by this License,
|
||||
other than an Application or a Combined Work as defined below.
|
||||
|
||||
An "Application" is any work that makes use of an interface provided
|
||||
by the Library, but which is not otherwise based on the Library.
|
||||
Defining a subclass of a class defined by the Library is deemed a mode
|
||||
of using an interface provided by the Library.
|
||||
|
||||
A "Combined Work" is a work produced by combining or linking an
|
||||
Application with the Library. The particular version of the Library
|
||||
with which the Combined Work was made is also called the "Linked
|
||||
Version".
|
||||
|
||||
The "Minimal Corresponding Source" for a Combined Work means the
|
||||
Corresponding Source for the Combined Work, excluding any source code
|
||||
for portions of the Combined Work that, considered in isolation, are
|
||||
based on the Application, and not on the Linked Version.
|
||||
|
||||
The "Corresponding Application Code" for a Combined Work means the
|
||||
object code and/or source code for the Application, including any data
|
||||
and utility programs needed for reproducing the Combined Work from the
|
||||
Application, but excluding the System Libraries of the Combined Work.
|
||||
|
||||
1. Exception to Section 3 of the GNU GPL.
|
||||
|
||||
You may convey a covered work under sections 3 and 4 of this License
|
||||
without being bound by section 3 of the GNU GPL.
|
||||
|
||||
2. Conveying Modified Versions.
|
||||
|
||||
If you modify a copy of the Library, and, in your modifications, a
|
||||
facility refers to a function or data to be supplied by an Application
|
||||
that uses the facility (other than as an argument passed when the
|
||||
facility is invoked), then you may convey a copy of the modified
|
||||
version:
|
||||
|
||||
a) under this License, provided that you make a good faith effort to
|
||||
ensure that, in the event an Application does not supply the
|
||||
function or data, the facility still operates, and performs
|
||||
whatever part of its purpose remains meaningful, or
|
||||
|
||||
b) under the GNU GPL, with none of the additional permissions of
|
||||
this License applicable to that copy.
|
||||
|
||||
3. Object Code Incorporating Material from Library Header Files.
|
||||
|
||||
The object code form of an Application may incorporate material from
|
||||
a header file that is part of the Library. You may convey such object
|
||||
code under terms of your choice, provided that, if the incorporated
|
||||
material is not limited to numerical parameters, data structure
|
||||
layouts and accessors, or small macros, inline functions and templates
|
||||
(ten or fewer lines in length), you do both of the following:
|
||||
|
||||
a) Give prominent notice with each copy of the object code that the
|
||||
Library is used in it and that the Library and its use are
|
||||
covered by this License.
|
||||
|
||||
b) Accompany the object code with a copy of the GNU GPL and this license
|
||||
document.
|
||||
|
||||
4. Combined Works.
|
||||
|
||||
You may convey a Combined Work under terms of your choice that,
|
||||
taken together, effectively do not restrict modification of the
|
||||
portions of the Library contained in the Combined Work and reverse
|
||||
engineering for debugging such modifications, if you also do each of
|
||||
the following:
|
||||
|
||||
a) Give prominent notice with each copy of the Combined Work that
|
||||
the Library is used in it and that the Library and its use are
|
||||
covered by this License.
|
||||
|
||||
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
||||
document.
|
||||
|
||||
c) For a Combined Work that displays copyright notices during
|
||||
execution, include the copyright notice for the Library among
|
||||
these notices, as well as a reference directing the user to the
|
||||
copies of the GNU GPL and this license document.
|
||||
|
||||
d) Do one of the following:
|
||||
|
||||
0) Convey the Minimal Corresponding Source under the terms of this
|
||||
License, and the Corresponding Application Code in a form
|
||||
suitable for, and under terms that permit, the user to
|
||||
recombine or relink the Application with a modified version of
|
||||
the Linked Version to produce a modified Combined Work, in the
|
||||
manner specified by section 6 of the GNU GPL for conveying
|
||||
Corresponding Source.
|
||||
|
||||
1) Use a suitable shared library mechanism for linking with the
|
||||
Library. A suitable mechanism is one that (a) uses at run time
|
||||
a copy of the Library already present on the user's computer
|
||||
system, and (b) will operate properly with a modified version
|
||||
of the Library that is interface-compatible with the Linked
|
||||
Version.
|
||||
|
||||
e) Provide Installation Information, but only if you would otherwise
|
||||
be required to provide such information under section 6 of the
|
||||
GNU GPL, and only to the extent that such information is
|
||||
necessary to install and execute a modified version of the
|
||||
Combined Work produced by recombining or relinking the
|
||||
Application with a modified version of the Linked Version. (If
|
||||
you use option 4d0, the Installation Information must accompany
|
||||
the Minimal Corresponding Source and Corresponding Application
|
||||
Code. If you use option 4d1, you must provide the Installation
|
||||
Information in the manner specified by section 6 of the GNU GPL
|
||||
for conveying Corresponding Source.)
|
||||
|
||||
5. Combined Libraries.
|
||||
|
||||
You may place library facilities that are a work based on the
|
||||
Library side by side in a single library together with other library
|
||||
facilities that are not Applications and are not covered by this
|
||||
License, and convey such a combined library under terms of your
|
||||
choice, if you do both of the following:
|
||||
|
||||
a) Accompany the combined library with a copy of the same work based
|
||||
on the Library, uncombined with any other library facilities,
|
||||
conveyed under the terms of this License.
|
||||
|
||||
b) Give prominent notice with the combined library that part of it
|
||||
is a work based on the Library, and explaining where to find the
|
||||
accompanying uncombined form of the same work.
|
||||
|
||||
6. Revised Versions of the GNU Lesser General Public License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions
|
||||
of the GNU Lesser General Public License from time to time. Such new
|
||||
versions will be similar in spirit to the present version, but may
|
||||
differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Library as you received it specifies that a certain numbered version
|
||||
of the GNU Lesser General Public License "or any later version"
|
||||
applies to it, you have the option of following the terms and
|
||||
conditions either of that published version or of any later version
|
||||
published by the Free Software Foundation. If the Library as you
|
||||
received it does not specify a version number of the GNU Lesser
|
||||
General Public License, you may choose any version of the GNU Lesser
|
||||
General Public License ever published by the Free Software Foundation.
|
||||
|
||||
If the Library as you received it specifies that a proxy can decide
|
||||
whether future versions of the GNU Lesser General Public License shall
|
||||
apply, that proxy's public statement of acceptance of any version is
|
||||
permanent authorization for you to choose that version for the
|
||||
Library.
|
40
vendor/github.com/mholt/caddy/dist/README.txt
generated
vendored
Normal file
40
vendor/github.com/mholt/caddy/dist/README.txt
generated
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
CADDY 0.11
|
||||
|
||||
Website
|
||||
https://caddyserver.com
|
||||
|
||||
Community Forum
|
||||
https://caddy.community
|
||||
|
||||
Twitter
|
||||
@caddyserver
|
||||
|
||||
Source Code
|
||||
https://github.com/mholt/caddy
|
||||
https://github.com/caddyserver
|
||||
|
||||
|
||||
For instructions on using Caddy, please see the docs on the
|
||||
website. For a list of what's new in this version, see
|
||||
CHANGES.txt.
|
||||
|
||||
For a good time, follow @mholt6 on Twitter.
|
||||
|
||||
Want to get involved with Caddy's development? We love to have
|
||||
contributions! Please file an issue on GitHub to discuss a
|
||||
change or fix you'd like to make, then submit a pull request
|
||||
and we'll review it! Your contributions will reach millions
|
||||
of people who connect to sites served by Caddy.
|
||||
|
||||
Extend Caddy by developing a plugin for it! Instructions on
|
||||
the project wiki: https://github.com/mholt/caddy/wiki
|
||||
|
||||
And thanks - you're awesome!
|
||||
|
||||
If you think Caddy is awesome too, consider sponsoring it:
|
||||
https://caddyserver.com/sponsor - and help keep Caddy free
|
||||
for personal use.
|
||||
|
||||
|
||||
---
|
||||
(c) 2015-2018 Light Code Labs, LLC
|
3
vendor/github.com/mholt/caddy/dist/gitcookie.sh.enc
generated
vendored
Normal file
3
vendor/github.com/mholt/caddy/dist/gitcookie.sh.enc
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
(<28><0C><>#劕-<2D><><EFBFBD>
|
||||
<EFBFBD>D<EFBFBD><EFBFBD>r<EFBFBD><EFBFBD>}`<60>:<3A>,0<>@9<><39>p<EFBFBD>K8<4B>Z<EFBFBD><5A><EFBFBD>ˎVm0^B%<25>լ<EFBFBD><D5AC>@<40><>9<EFBFBD>]<5D>l<EFBFBD>П)<29>8<EFBFBD>"Z<><5A>_<EFBFBD><5F><EFBFBD><EFBFBD>͑:g<><67><EFBFBD>7v<05>]<5D>7#`'<>ޅ<EFBFBD>Ǧ<EFBFBD>B9<1C><>z^<5E><>'5<>\*<2A><>N
|
||||
<EFBFBD>k<EFBFBD>~<7E>=<3D>w^$<24><08><><EFBFBD>-D<><44><EFBFBD>f(<07>*<2A><>C<EFBFBD>d<03><13>/u<><75><EFBFBD>k<EFBFBD>
|
28
vendor/github.com/mholt/caddy/dist/init/README.md
generated
vendored
Normal file
28
vendor/github.com/mholt/caddy/dist/init/README.md
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
Init/Service Scripts
|
||||
====================
|
||||
|
||||
This folder contains init/service scripts for using Caddy on various Linux and BSD distributions. They are created and maintained by the community.
|
||||
|
||||
## Getting Help
|
||||
|
||||
Different scripts have different maintainers; please consult the comments in the file and any README for assistance setting it up. Do not open an issue on the Caddy project about these scripts; instead, to ask a question or suggest a change, please contact the maintainer of the script directly.
|
||||
|
||||
## Disclaimer
|
||||
|
||||
The files contained herein are not officially supported by the Caddy project author and/or contributors, and as such, the files are not endorsed by the same. The Caddy project author and its contributors are not responsible for the function or malfunction of these scripts/files, or any unintended consequences to your system or website in attempting to set up Caddy. Users are expected to know how to administer their system, and these files should be considered as only a guide or suggestion for using Caddy in certain environments.
|
||||
|
||||
## Guidelines
|
||||
|
||||
The files distributed here should adhere to these principles where relevant (adjust accordingly for each system/platform):
|
||||
|
||||
- Don't run as root.
|
||||
- Create a no-shell default user to run it.
|
||||
- Raise file descriptor limits.
|
||||
- Don't restart endlessly; if Caddy fails to start, there's a reason -- fix it, don't hammer it.
|
||||
- Allow Caddy to re-use the same, persistent folder for storage.
|
||||
- Stay as simple and minimal as possible.
|
||||
- Be idempotent.
|
||||
- Use comments to explain unexpected or unusual lines/patterns.
|
||||
- Be secure by default.
|
||||
|
||||
Thank you for using Caddy! May it serve you well.
|
83
vendor/github.com/mholt/caddy/dist/init/freebsd/caddy
generated
vendored
Executable file
83
vendor/github.com/mholt/caddy/dist/init/freebsd/caddy
generated
vendored
Executable file
@@ -0,0 +1,83 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# PROVIDE: caddy
|
||||
# REQUIRE: networking
|
||||
# KEYWORD: shutdown
|
||||
|
||||
#
|
||||
# Add the following lines to /etc/rc.conf to enable caddy:
|
||||
# caddy_enable (bool): Set to "NO" by default.
|
||||
# Set it to "YES" to enable caddy
|
||||
#
|
||||
# caddy_cert_email (str): Set to "" by default.
|
||||
# Defines the SSL certificate issuer email. By providing an
|
||||
# email address you automatically agree to letsencrypt.org's
|
||||
# general terms and conditions
|
||||
#
|
||||
# caddy_bin_path (str): Set to "/usr/local/bin/caddy" by default.
|
||||
# Provides the path to the caddy server executable
|
||||
#
|
||||
# caddy_cpu (str): Set to "99%" by default.
|
||||
# Configures, how much CPU capacity caddy may gain
|
||||
#
|
||||
# caddy_config_path (str): Set to "/usr/local/www/Caddyfile" by default.
|
||||
# Defines the path for the configuration file caddy will load on boot
|
||||
#
|
||||
# caddy_user (str): Set to "root" by default.
|
||||
# Defines the user that caddy will run on
|
||||
#
|
||||
# caddy_group (str): Set to "wheel" by default.
|
||||
# Defines the group that caddy files will be attached to
|
||||
#
|
||||
# caddy_logfile (str) Set to "/var/log/caddy.log" by default.
|
||||
# Defines where the process log file is written, this is not a web access log
|
||||
#
|
||||
# caddy_env (str) Set to "" by default.
|
||||
# This allows environment variable to be set that may be required, for example when using "DNS Challenge" account credentials are required.
|
||||
# e.g. (in your rc.conf) caddy_env="CLOUDFLARE_EMAIL=me@domain.com CLOUDFLARE_API_KEY=my_api_key"
|
||||
#
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name="caddy"
|
||||
rcvar="${name}_enable"
|
||||
|
||||
load_rc_config ${name}
|
||||
|
||||
: ${caddy_enable:="NO"}
|
||||
: ${caddy_cert_email=""}
|
||||
: ${caddy_bin_path="/usr/local/bin/caddy"}
|
||||
: ${caddy_cpu="99%"} # was a bug for me that caused a crash within jails
|
||||
: ${caddy_config_path="/usr/local/www/Caddyfile"}
|
||||
: ${caddy_logfile="/var/log/caddy.log"}
|
||||
: ${caddy_user="root"}
|
||||
: ${caddy_group="wheel"}
|
||||
|
||||
if [ "$caddy_cert_email" = "" ]
|
||||
then
|
||||
echo "rc variable \$caddy_cert_email is not set. Please provide a valid SSL certificate issuer email."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
pidfile="/var/run/${name}.pid"
|
||||
procname="${caddy_bin_path}" #enabled builtin pid checking for start / stop
|
||||
command="/usr/sbin/daemon"
|
||||
command_args="-p ${pidfile} /usr/bin/env ${caddy_env} ${procname} -cpu ${caddy_cpu} -log stdout -conf ${caddy_config_path} -agree -email ${caddy_cert_email} < /dev/null >> ${caddy_logfile} 2>&1"
|
||||
|
||||
start_precmd="caddy_startprecmd"
|
||||
|
||||
caddy_startprecmd()
|
||||
{
|
||||
if [ ! -e "${pidfile}" ]; then
|
||||
install -o "${caddy_user}" -g "${caddy_group}" "/dev/null" "${pidfile}"
|
||||
fi
|
||||
|
||||
if [ ! -e "${caddy_logfile}" ]; then
|
||||
install -o "${caddy_user}" -g "${caddy_group}" "/dev/null" "${caddy_logfile}"
|
||||
fi
|
||||
}
|
||||
|
||||
required_files="${caddy_config_path}"
|
||||
|
||||
run_rc_command "$1"
|
||||
|
128
vendor/github.com/mholt/caddy/dist/init/linux-systemd/README.md
generated
vendored
Normal file
128
vendor/github.com/mholt/caddy/dist/init/linux-systemd/README.md
generated
vendored
Normal file
@@ -0,0 +1,128 @@
|
||||
# systemd Service Unit for Caddy
|
||||
|
||||
Please do not hesitate to ask on
|
||||
[caddyserver/support](https://gitter.im/caddyserver/support)
|
||||
if you have any questions. Feel free to prepend to your question
|
||||
the username of whoever touched the file most recently, for example
|
||||
`@wmark re systemd: …`.
|
||||
|
||||
The provided file should work with systemd version 219 or later. It might work with earlier versions.
|
||||
The easiest way to check your systemd version is to run `systemctl --version`.
|
||||
|
||||
## Instructions
|
||||
|
||||
We will assume the following:
|
||||
|
||||
* that you want to run caddy as user `www-data` and group `www-data`, with UID and GID 33
|
||||
* you are working from a non-root user account that can use 'sudo' to execute commands as root
|
||||
|
||||
Adjust as necessary or according to your preferences.
|
||||
|
||||
First, put the caddy binary in the system wide binary directory and give it
|
||||
appropriate ownership and permissions:
|
||||
|
||||
```bash
|
||||
sudo cp /path/to/caddy /usr/local/bin
|
||||
sudo chown root:root /usr/local/bin/caddy
|
||||
sudo chmod 755 /usr/local/bin/caddy
|
||||
```
|
||||
|
||||
Give the caddy binary the ability to bind to privileged ports (e.g. 80, 443) as a non-root user:
|
||||
|
||||
```bash
|
||||
sudo setcap 'cap_net_bind_service=+ep' /usr/local/bin/caddy
|
||||
```
|
||||
|
||||
Set up the user, group, and directories that will be needed:
|
||||
|
||||
```bash
|
||||
sudo groupadd -g 33 www-data
|
||||
sudo useradd \
|
||||
-g www-data --no-user-group \
|
||||
--home-dir /var/www --no-create-home \
|
||||
--shell /usr/sbin/nologin \
|
||||
--system --uid 33 www-data
|
||||
|
||||
sudo mkdir /etc/caddy
|
||||
sudo chown -R root:www-data /etc/caddy
|
||||
sudo mkdir /etc/ssl/caddy
|
||||
sudo chown -R root:www-data /etc/ssl/caddy
|
||||
sudo chmod 0770 /etc/ssl/caddy
|
||||
```
|
||||
|
||||
Place your caddy configuration file ("Caddyfile") in the proper directory
|
||||
and give it appropriate ownership and permissions:
|
||||
|
||||
```bash
|
||||
sudo cp /path/to/Caddyfile /etc/caddy/
|
||||
sudo chown www-data:www-data /etc/caddy/Caddyfile
|
||||
sudo chmod 444 /etc/caddy/Caddyfile
|
||||
```
|
||||
|
||||
Create the home directory for the server and give it appropriate ownership
|
||||
and permissions:
|
||||
|
||||
```bash
|
||||
sudo mkdir /var/www
|
||||
sudo chown www-data:www-data /var/www
|
||||
sudo chmod 555 /var/www
|
||||
```
|
||||
|
||||
Let's assume you have the contents of your website in a directory called 'example.com'.
|
||||
Put your website into place for it to be served by caddy:
|
||||
|
||||
```bash
|
||||
sudo cp -R example.com /var/www/
|
||||
sudo chown -R www-data:www-data /var/www/example.com
|
||||
sudo chmod -R 555 /var/www/example.com
|
||||
```
|
||||
|
||||
You'll need to explicitly configure caddy to serve the site from this location by adding
|
||||
the following to your Caddyfile if you haven't already:
|
||||
|
||||
```
|
||||
example.com {
|
||||
root /var/www/example.com
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
Install the systemd service unit configuration file, reload the systemd daemon,
|
||||
and start caddy:
|
||||
|
||||
```bash
|
||||
wget https://raw.githubusercontent.com/mholt/caddy/master/dist/init/linux-systemd/caddy.service
|
||||
sudo cp caddy.service /etc/systemd/system/
|
||||
sudo chown root:root /etc/systemd/system/caddy.service
|
||||
sudo chmod 644 /etc/systemd/system/caddy.service
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl start caddy.service
|
||||
```
|
||||
|
||||
Have the caddy service start automatically on boot if you like:
|
||||
|
||||
```bash
|
||||
sudo systemctl enable caddy.service
|
||||
```
|
||||
|
||||
If caddy doesn't seem to start properly you can view the log data to help figure out what the problem is:
|
||||
|
||||
```bash
|
||||
journalctl --boot -u caddy.service
|
||||
```
|
||||
|
||||
Use `log stdout` and `errors stderr` in your Caddyfile to fully utilize systemd journaling.
|
||||
|
||||
If your GNU/Linux distribution does not use *journald* with *systemd* then check any logfiles in `/var/log`.
|
||||
|
||||
If you want to follow the latest logs from caddy you can do so like this:
|
||||
|
||||
```bash
|
||||
journalctl -f -u caddy.service
|
||||
```
|
||||
|
||||
You can make other certificates and private key files accessible to the `www-data` user with the following command:
|
||||
|
||||
```bash
|
||||
setfacl -m user:www-data:r-- /etc/ssl/private/my.key
|
||||
```
|
51
vendor/github.com/mholt/caddy/dist/init/linux-systemd/caddy.service
generated
vendored
Normal file
51
vendor/github.com/mholt/caddy/dist/init/linux-systemd/caddy.service
generated
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
[Unit]
|
||||
Description=Caddy HTTP/2 web server
|
||||
Documentation=https://caddyserver.com/docs
|
||||
After=network-online.target
|
||||
Wants=network-online.target systemd-networkd-wait-online.service
|
||||
|
||||
[Service]
|
||||
Restart=on-abnormal
|
||||
|
||||
; User and group the process will run as.
|
||||
User=www-data
|
||||
Group=www-data
|
||||
|
||||
; Letsencrypt-issued certificates will be written to this directory.
|
||||
Environment=CADDYPATH=/etc/ssl/caddy
|
||||
|
||||
; Always set "-root" to something safe in case it gets forgotten in the Caddyfile.
|
||||
ExecStart=/usr/local/bin/caddy -log stdout -agree=true -conf=/etc/caddy/Caddyfile -root=/var/tmp
|
||||
ExecReload=/bin/kill -USR1 $MAINPID
|
||||
|
||||
; Use graceful shutdown with a reasonable timeout
|
||||
KillMode=mixed
|
||||
KillSignal=SIGQUIT
|
||||
TimeoutStopSec=5s
|
||||
|
||||
; Limit the number of file descriptors; see `man systemd.exec` for more limit settings.
|
||||
LimitNOFILE=1048576
|
||||
; Unmodified caddy is not expected to use more than that.
|
||||
LimitNPROC=512
|
||||
|
||||
; Use private /tmp and /var/tmp, which are discarded after caddy stops.
|
||||
PrivateTmp=true
|
||||
; Use a minimal /dev (May bring additional security if switched to 'true', but it may not work on Raspberry Pi's or other devices, so it has been disabled in this dist.)
|
||||
PrivateDevices=false
|
||||
; Hide /home, /root, and /run/user. Nobody will steal your SSH-keys.
|
||||
ProtectHome=true
|
||||
; Make /usr, /boot, /etc and possibly some more folders read-only.
|
||||
ProtectSystem=full
|
||||
; … except /etc/ssl/caddy, because we want Letsencrypt-certificates there.
|
||||
; This merely retains r/w access rights, it does not add any new. Must still be writable on the host!
|
||||
ReadWriteDirectories=/etc/ssl/caddy
|
||||
|
||||
; The following additional security directives only work with systemd v229 or later.
|
||||
; They further restrict privileges that can be gained by caddy. Uncomment if you like.
|
||||
; Note that you may have to add capabilities required by any plugins in use.
|
||||
;CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
||||
;AmbientCapabilities=CAP_NET_BIND_SERVICE
|
||||
;NoNewPrivileges=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
27
vendor/github.com/mholt/caddy/dist/init/linux-sysvinit/README.md
generated
vendored
Normal file
27
vendor/github.com/mholt/caddy/dist/init/linux-sysvinit/README.md
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
SysVinit conf for Caddy
|
||||
=======================
|
||||
|
||||
Usage
|
||||
-----
|
||||
|
||||
* Download the appropriate Caddy binary in `/usr/local/bin/caddy` or use `curl https://getcaddy.com | bash`.
|
||||
* Save the SysVinit config file in `/etc/init.d/caddy`.
|
||||
* Ensure that the folder `/etc/caddy` exists and that the folder `/etc/ssl/caddy` is owned by `www-data`.
|
||||
* Create a Caddyfile in `/etc/caddy/Caddyfile`
|
||||
* Now you can use `service caddy start|stop|restart|reload|status` as `root`.
|
||||
|
||||
Init script manipulation
|
||||
-----
|
||||
|
||||
The init script supports configuration via the following files:
|
||||
* `/etc/default/caddy` ( Debian based https://www.debian.org/doc/manuals/debian-reference/ch03.en.html#_the_default_parameter_for_each_init_script )
|
||||
* `/etc/sysconfig/caddy` ( CentOS based https://www.centos.org/docs/5/html/5.2/Deployment_Guide/s1-sysconfig-files.html )
|
||||
|
||||
The following variables can be changed:
|
||||
* DAEMON: path to the caddy binary file (default: `/usr/local/bin/caddy`)
|
||||
* DAEMONUSER: user used to run caddy (default: `www-data`)
|
||||
* PIDFILE: path to the pidfile (default: `/var/run/$NAME.pid`)
|
||||
* LOGFILE: path to the log file for caddy daemon (not for access logs) (default: `/var/log/$NAME.log`)
|
||||
* CONFIGFILE: path to the caddy configuration file (default: `/etc/caddy/Caddyfile`)
|
||||
* CADDYPATH: path for SSL certificates managed by caddy (default: `/etc/ssl/caddy`)
|
||||
* ULIMIT: open files limit (default: `8192`)
|
106
vendor/github.com/mholt/caddy/dist/init/linux-sysvinit/caddy
generated
vendored
Normal file
106
vendor/github.com/mholt/caddy/dist/init/linux-sysvinit/caddy
generated
vendored
Normal file
@@ -0,0 +1,106 @@
|
||||
#!/bin/sh
|
||||
### BEGIN INIT INFO
|
||||
# Provides: caddy
|
||||
# Required-Start: $local_fs $network $named $time $syslog
|
||||
# Required-Stop: $local_fs $network $named $time $syslog
|
||||
# Default-Start: 2 3 4 5
|
||||
# Default-Stop: 0 1 6
|
||||
# Short-Description: starts the caddy web server
|
||||
# Description: starts caddy using start-stop-daemon
|
||||
### END INIT INFO
|
||||
|
||||
# Original Author: Frédéric Galusik (fredg)
|
||||
# Maintainer: Daniel van Dorp (djvdorp)
|
||||
|
||||
DESC="the caddy web server"
|
||||
NAME=caddy
|
||||
DAEMON=/usr/local/bin/caddy
|
||||
|
||||
DAEMONUSER=www-data
|
||||
PIDFILE=/var/run/$NAME.pid
|
||||
LOGFILE=/var/log/$NAME.log
|
||||
CONFIGFILE=/etc/caddy/Caddyfile
|
||||
|
||||
USERBIND="setcap cap_net_bind_service=+ep"
|
||||
STOP_SCHEDULE="${STOP_SCHEDULE:-QUIT/5/TERM/5/KILL/5}"
|
||||
CADDYPATH=/etc/ssl/caddy
|
||||
ULIMIT=8192
|
||||
|
||||
test -x $DAEMON || exit 0
|
||||
|
||||
# allow overwriting variables
|
||||
# Debian based
|
||||
[ -e "/etc/default/caddy" ] && . /etc/default/caddy
|
||||
# CentOS based
|
||||
[ -e "/etc/sysconfig/caddy" ] && . /etc/sysconfig/caddy
|
||||
|
||||
if [ -z "$DAEMONOPTS" ]; then
|
||||
# daemon options
|
||||
DAEMONOPTS="-agree=true -log=$LOGFILE -conf=$CONFIGFILE"
|
||||
fi
|
||||
|
||||
# Set the CADDYPATH; Let's Encrypt certificates will be written to this directory.
|
||||
export CADDYPATH
|
||||
|
||||
# Set the ulimits
|
||||
ulimit -n ${ULIMIT}
|
||||
|
||||
|
||||
start() {
|
||||
$USERBIND $DAEMON
|
||||
touch $LOGFILE && chown $DAEMONUSER $LOGFILE
|
||||
start-stop-daemon --start --quiet --make-pidfile --pidfile $PIDFILE \
|
||||
--background --chuid $DAEMONUSER --oknodo --exec $DAEMON -- $DAEMONOPTS
|
||||
}
|
||||
|
||||
stop() {
|
||||
start-stop-daemon --stop --quiet --pidfile $PIDFILE --retry=$STOP_SCHEDULE \
|
||||
--name $NAME --oknodo
|
||||
rm -f $PIDFILE
|
||||
}
|
||||
|
||||
reload() {
|
||||
start-stop-daemon --stop --quiet --signal USR1 --pidfile $PIDFILE \
|
||||
--name $NAME
|
||||
}
|
||||
|
||||
status() {
|
||||
if [ -f $PIDFILE ]; then
|
||||
if kill -0 $(cat "$PIDFILE"); then
|
||||
echo "$NAME is running"
|
||||
else
|
||||
echo "$NAME process is dead, but pidfile exists"
|
||||
fi
|
||||
else
|
||||
echo "$NAME is not running"
|
||||
fi
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo "Starting $NAME"
|
||||
start
|
||||
;;
|
||||
stop)
|
||||
echo "Stopping $NAME"
|
||||
stop
|
||||
;;
|
||||
restart)
|
||||
echo "Restarting $NAME"
|
||||
stop
|
||||
start
|
||||
;;
|
||||
reload)
|
||||
echo "Reloading $NAME configuration"
|
||||
reload
|
||||
;;
|
||||
status)
|
||||
status
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|reload|status}"
|
||||
exit 2
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
14
vendor/github.com/mholt/caddy/dist/init/linux-upstart/README.md
generated
vendored
Normal file
14
vendor/github.com/mholt/caddy/dist/init/linux-upstart/README.md
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
Upstart conf for Caddy
|
||||
=====================
|
||||
|
||||
Usage
|
||||
-----
|
||||
|
||||
Usage in this blogpost: [Running Caddy Server as a service with Upstart](https://denbeke.be/blog/servers/running-caddy-server-as-a-service/).
|
||||
Short recap:
|
||||
|
||||
* Download Caddy in `/usr/local/bin/caddy` and execute `sudo setcap cap_net_bind_service=+ep /usr/local/bin/caddy`.
|
||||
* Save the appropriate upstart config file in `/etc/init/caddy.conf`.
|
||||
* Ensure that the folder `/etc/caddy` exists and that the subfolder .caddy is owned by `www-data`.
|
||||
* Create a Caddyfile in `/etc/caddy/Caddyfile`.
|
||||
* Now you can use `sudo service caddy start|stop|restart`.
|
25
vendor/github.com/mholt/caddy/dist/init/linux-upstart/caddy.conf
generated
vendored
Normal file
25
vendor/github.com/mholt/caddy/dist/init/linux-upstart/caddy.conf
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
description "Caddy HTTP/2 web server"
|
||||
|
||||
start on runlevel [2345]
|
||||
stop on runlevel [016]
|
||||
|
||||
console log
|
||||
|
||||
setuid www-data
|
||||
setgid www-data
|
||||
|
||||
respawn
|
||||
respawn limit 10 5
|
||||
|
||||
reload signal SIGUSR1
|
||||
|
||||
# Let's Encrypt certificates will be written to this directory.
|
||||
env CADDYPATH=/etc/ssl/caddy
|
||||
|
||||
limit nofile 1048576 1048576
|
||||
|
||||
script
|
||||
cd /etc/ssl/caddy
|
||||
rootdir="$(mktemp -d -t "caddy-run.XXXXXX")"
|
||||
exec /usr/local/bin/caddy -agree -log=stdout -conf=/etc/caddy/Caddyfile -root=$rootdir
|
||||
end script
|
21
vendor/github.com/mholt/caddy/dist/init/linux-upstart/caddy.conf.centos-6
generated
vendored
Normal file
21
vendor/github.com/mholt/caddy/dist/init/linux-upstart/caddy.conf.centos-6
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
description "Caddy HTTP/2 web server"
|
||||
|
||||
start on runlevel [2345]
|
||||
stop on runlevel [016]
|
||||
|
||||
console output
|
||||
|
||||
respawn
|
||||
respawn limit 10 5
|
||||
|
||||
# Let's Encrypt certificates will be written to this directory.
|
||||
env CADDYPATH=/etc/ssl/caddy
|
||||
|
||||
limit nofile 1048576 1048576
|
||||
|
||||
script
|
||||
cd /etc/ssl/caddy
|
||||
rootdir="$(mktemp -d -t "caddy-run.XXXXXX")"
|
||||
chown www-data:www-data $rootdir
|
||||
exec sudo -u www-data /usr/local/bin/caddy -agree -log=/var/log/caddy.log -conf=/etc/caddy/Caddyfile -root=$rootdir
|
||||
end script
|
26
vendor/github.com/mholt/caddy/dist/init/linux-upstart/caddy.conf.ubuntu-12.04
generated
vendored
Normal file
26
vendor/github.com/mholt/caddy/dist/init/linux-upstart/caddy.conf.ubuntu-12.04
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
description "Caddy HTTP/2 web server"
|
||||
|
||||
start on runlevel [2345]
|
||||
stop on runlevel [016]
|
||||
|
||||
console log
|
||||
|
||||
setuid www-data
|
||||
setgid www-data
|
||||
|
||||
respawn
|
||||
respawn limit 10 5
|
||||
|
||||
# 12.04 upstart version does not support reload
|
||||
#reload signal SIGUSR1
|
||||
|
||||
# Let's Encrypt certificates will be written to this directory.
|
||||
env CADDYPATH=/etc/ssl/caddy
|
||||
|
||||
limit nofile 1048576 1048576
|
||||
|
||||
script
|
||||
cd /etc/ssl/caddy
|
||||
rootdir="$(mktemp -d -t "caddy-run.XXXXXX")"
|
||||
exec /usr/local/bin/caddy -agree -log=stdout -conf=/etc/caddy/Caddyfile -root=$rootdir
|
||||
end script
|
42
vendor/github.com/mholt/caddy/dist/init/mac-launchd/README.md
generated
vendored
Normal file
42
vendor/github.com/mholt/caddy/dist/init/mac-launchd/README.md
generated
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
launchd service for macOS
|
||||
=========================
|
||||
|
||||
This is a working sample file for a *launchd* service on Mac, which should be placed here:
|
||||
|
||||
```bash
|
||||
/Library/LaunchDaemons/com.caddyserver.web.plist
|
||||
```
|
||||
|
||||
To create the proper directories as used in the example file:
|
||||
|
||||
```bash
|
||||
sudo mkdir -p /etc/caddy /etc/ssl/caddy /var/log/caddy /usr/local/bin /var/tmp /srv/www/localhost
|
||||
sudo touch /etc/caddy/Caddyfile
|
||||
sudo chown root:wheel -R /usr/local/bin/caddy /Library/LaunchDaemons/
|
||||
sudo chown _www:_www -R /etc/caddy /etc/ssl/caddy /var/log/caddy
|
||||
sudo chmod 0750 /etc/ssl/caddy
|
||||
```
|
||||
|
||||
Create a simple web page and Caddyfile
|
||||
|
||||
```bash
|
||||
sudo bash -c 'echo "Hello, World!" > /srv/www/localhost/index.html'
|
||||
sudo bash -c 'echo "http://localhost {
|
||||
root /srv/www/localhost
|
||||
}" >> /etc/caddy/Caddyfile'
|
||||
```
|
||||
|
||||
Start and Stop the Caddy launchd service using the following commands:
|
||||
|
||||
```bash
|
||||
launchctl load /Library/LaunchDaemons/com.caddyserver.web.plist
|
||||
launchctl unload /Library/LaunchDaemons/com.caddyserver.web.plist
|
||||
```
|
||||
|
||||
To start on every boot use the `-w` flag (to write):
|
||||
|
||||
```bash
|
||||
launchctl load -w /Library/LaunchAgents/com.caddyserver.web.plist
|
||||
```
|
||||
|
||||
More information can be found in this blogpost: [Running Caddy as a service on macOS X server](https://denbeke.be/blog/software/running-caddy-as-a-service-on-macos-os-x-server/)
|
53
vendor/github.com/mholt/caddy/dist/init/mac-launchd/com.caddyserver.web.plist
generated
vendored
Normal file
53
vendor/github.com/mholt/caddy/dist/init/mac-launchd/com.caddyserver.web.plist
generated
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>Label</key>
|
||||
<string>Caddy</string>
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/usr/local/bin/caddy</string>
|
||||
<string>-agree</string>
|
||||
<string>-conf</string>
|
||||
<string>/etc/caddy/Caddyfile</string>
|
||||
<string>-root</string>
|
||||
<string>/var/tmp</string>
|
||||
</array>
|
||||
<key>EnvironmentVariables</key>
|
||||
<dict>
|
||||
<key>CADDYPATH</key>
|
||||
<string>/etc/ssl/caddy</string>
|
||||
</dict>
|
||||
|
||||
<key>UserName</key>
|
||||
<string>root</string>
|
||||
<key>GroupName</key>
|
||||
<string>wheel</string>
|
||||
<key>InitGroups</key>
|
||||
<true/>
|
||||
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
<key>KeepAlive</key>
|
||||
<dict>
|
||||
<key>Crashed</key>
|
||||
<true/>
|
||||
</dict>
|
||||
|
||||
<key>SoftResourceLimits</key>
|
||||
<dict>
|
||||
<key>NumberOfFiles</key>
|
||||
<integer>8192</integer>
|
||||
</dict>
|
||||
<key>HardResourceLimits</key>
|
||||
<dict/>
|
||||
|
||||
<key>WorkingDirectory</key>
|
||||
<string>/etc/ssl/caddy</string>
|
||||
|
||||
<key>StandardErrorPath</key>
|
||||
<string>/var/log/caddy/error.log</string>
|
||||
<key>StandardOutPath</key>
|
||||
<string>/var/log/caddy/info.log</string>
|
||||
</dict>
|
||||
</plist>
|
Reference in New Issue
Block a user