Matt Holt
c5006321a7
Merge pull request #224 from pyed/patch-2
...
Fixing comment
2015-08-27 10:13:38 -06:00
pyed
b9d3e7721e
Fixing my comment
...
the old comment might throw the source-reader off, my bad.
2015-08-27 18:01:46 +03:00
Matt Holt
49a229835a
Merge pull request #220 from pyed/json
...
browse: Optional JSON output
2015-08-27 08:48:44 -06:00
Abdulelah Alfuntukh
414b47d653
adds json option for the browse middleware
2015-08-24 23:37:11 +03:00
Abiola Ibrahim
b62d087bb6
Merge pull request #218 from Karthic-Hackintosh/master
...
Complete test coverage for recorder.go of middleware package
2015-08-14 07:23:27 +01:00
Karthic Rao
4704625e3a
Complete test coverage for middleware/recorder.go
2015-08-14 09:59:22 +05:30
Karthic Rao
53c4797606
Initial setup of test for recorder.go of middleware package
2015-08-11 22:02:13 +05:30
Matthew Holt
60b6c0c03d
Add link to joshix/caddy in readme
2015-08-10 16:33:36 -06:00
Matt Holt
5f3ef9c0da
Merge pull request #215 from Karthic-Hackintosh/master
...
Initial test for middleware/middleware.go
2015-08-10 07:26:56 -06:00
Maxime
bb5a322ce2
Added lumberjack library for log rolling
2015-08-08 16:13:10 +02:00
Karthic Rao
bb072faeee
Initial test for middleware/middleware.go
2015-08-08 00:56:59 +05:30
Matthew Holt
a2be7b4548
Bumped version to 0.7.5
2015-08-05 13:26:12 -06:00
Matthew Holt
7796ff0f69
core: Disable TLS for http sites (again)
...
Fixes bug introduced in 0ac8bf5
- Also note that setup functions no longer have access to server port. Will need to fix later.
2015-08-05 11:33:51 -06:00
Matt Holt
afd6b7ea27
Merge pull request #210 from evermax/master
...
log, errors: Support system log (except Windows)
Specify log file of 'syslog' to output to system log
2015-08-05 10:25:49 -06:00
Matthew Holt
b62de4c521
New template action NowDate to get the time.Time of Now()
2015-08-05 08:27:13 -06:00
Matthew Holt
2e8a74ecff
markdown: Prefix log messages, and slight refactor
...
Also change sha1 to md5 for the directory scans; slightly faster.
2015-08-05 08:15:52 -06:00
Matthew Holt
e94e90b046
Add new docker link, DO link, and enhanced comment
2015-08-05 07:37:51 -06:00
Matthew Holt
7173764d6d
markdown: Render lists as part of summary (upstream bug workaround)
...
See github.com/russross/blackfriday/issues/189
2015-08-05 07:37:51 -06:00
Matthew Holt
e4643f048a
core: Bind all listeners to wildcard host by default ( closes #208 )
...
This behavior can still be overridden by bind directive
2015-08-05 07:37:51 -06:00
Matt Holt
236c8c4eaf
Merge pull request #214 from abiosoft/master
...
markdown: generate static sites after links
2015-08-05 07:24:56 -06:00
Abiola Ibrahim
3b910645e7
Markdown: generate static sites after links.
2015-08-05 09:55:04 +01:00
Matt Holt
9669363504
Merge pull request #213 from abiosoft/master
...
markdown: Watch for file changes for links. Removed sitegen requirement for link index.
2015-08-04 18:06:37 -06:00
Abiola Ibrahim
b5d79bdccc
Markdown: Removed unused constant.
2015-08-05 01:01:57 +01:00
Abiola Ibrahim
1d3d705aae
Markdown: Rename 'development' to 'dev' in config.
2015-08-05 00:49:42 +01:00
Abiola Ibrahim
2ab466599d
Markdown: Modify development mode to generate links on page requests.
2015-08-05 00:41:04 +01:00
Abiola Ibrahim
851026d3fa
Markdown: Watch for file changes. Removed sitegen dependency for links.
2015-08-04 23:35:09 +01:00
Matthew Holt
32da2ed706
Updated change log
2015-08-03 17:51:33 -06:00
Matthew Holt
d8c50264cc
Fix parser when address is empty token
...
Bug detected by go-fuzz (more fuzzing is required; need larger corpus)
2015-08-03 17:31:10 -06:00
Matthew Holt
8d81ae88da
fastcgi: Add HTTPS env variable on HTTPS connections
2015-08-03 17:16:24 -06:00
Maxime
f1f1eb040a
Changed the facility of syslog to be LOCAL0
2015-08-03 12:00:17 +02:00
Matthew Holt
36fa6e857b
markdown: Sitegen only occurs if directory exists
...
We do this by returning an error and stopping link generation (which scans the markdown path for files)
2015-08-01 16:09:10 -06:00
Matthew Holt
b401267aa4
License is a text file
2015-08-01 16:07:59 -06:00
Matthew Holt
e63b83c8c4
markdown: report errors during initial sitegen
2015-08-01 13:08:55 -06:00
Matthew Holt
0ac8bf58ea
core: Run startup/shutdown functions only once
...
Even if defined for multiple hosts. Startup or shutdown callbacks registered by any directive (startup, shutdown, markdown, git, log, etc.) will only run as many times as it appears in the Caddyfile, not repeated for each host that shares that server block. Fixing this involved refactoring three packages (yeesh) and we need to restore some tests that are no longer valid (that used to verify splitting a multiServerBlock into multiple serverBlocks).
2015-08-01 13:08:31 -06:00
Maxime
7fb1c7e91d
Change access log level to INFO
2015-07-30 22:01:15 +02:00
Maxime
60690c78ae
Merge branch 'master' of https://github.com/mholt/caddy
2015-07-30 20:32:15 +02:00
Maxime
4b92808bbf
Add syslog support for log and errors directives
2015-07-30 20:29:41 +02:00
Matthew Holt
73397a0973
New version
2015-07-30 10:29:28 -06:00
Matthew Holt
35e25be1a4
browse: Size displayed in IEC format
...
Powers of 2, or base 1024, rather than powers of 10 or base 1000. The powers of 2 are technically more accurate.
2015-07-29 19:15:38 -06:00
Matthew Holt
f7129b219e
Fix markdown tests that I broke
2015-07-29 17:47:33 -06:00
Matthew Holt
e1153f8797
Update change list...
2015-07-29 17:43:00 -06:00
Matthew Holt
ff28bc8b0a
markdown: Change .Url -> .URL, increase summary length
...
Also, summary truncated at nearest space instead of middle of word, and code spans become part of summary.
2015-07-29 17:43:00 -06:00
Matthew Holt
0b01489f7d
templates: Date -> Now, add Replace and Truncate
2015-07-29 17:43:00 -06:00
Matt Holt
7a69770026
Merge pull request #207 from evermax/master
...
markdown: Added test on static files generation
2015-07-29 16:58:14 -06:00
Maxime
ec51e14451
Merge branch 'master' of https://github.com/mholt/caddy
2015-07-29 23:43:26 +02:00
Matt Holt
86e9749d6c
Merge pull request #204 from abiosoft/master
...
markdown: Add .Links action and flattened metadata structure
.Links available only for generated sites and variables no longer in a [variables] category in metadata (flat structure).
2015-07-29 11:12:02 -06:00
Abiola Ibrahim
aa89f30f2a
renamed sorter to byDate.
2015-07-29 18:06:53 +01:00
Maxime
da794a866e
Change date of the files in test to serve the static file and not generate a new one
2015-07-29 18:00:08 +02:00
Maxime
705cd16dee
Fixed path issue: was absolute path but should be relative path
2015-07-29 17:12:32 +02:00
Maxime
0168a627a4
Added test on markdown static files generation
2015-07-29 16:21:35 +02:00