Alexander Morozov
b199825c3b
Fix formatting directives in tests
...
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-09-04 08:34:58 -07:00
Maxime
bdcbd11d65
Merge branch 'master' of https://github.com/mholt/caddy
2015-09-02 15:16:06 +02:00
Maxime
008160998a
Added LogRoller parser and entity.
...
The errors and logs can now have log rolling if provided by the user.
The current customisable parameter of it are:
The maximal size of the file before rolling.
The maximal age/time of the file before rolling.
The number of backups to keep.
2015-09-02 15:13:31 +02:00
Maxime
bb5a322ce2
Added lumberjack library for log rolling
2015-08-08 16:13:10 +02: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
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
Abiola Ibrahim
3b910645e7
Markdown: generate static sites after links.
2015-08-05 09:55:04 +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
Maxime
f1f1eb040a
Changed the facility of syslog to be LOCAL0
2015-08-03 12:00:17 +02:00
Matthew Holt
e63b83c8c4
markdown: report errors during initial sitegen
2015-08-01 13:08:55 -06:00
Maxime
7fb1c7e91d
Change access log level to INFO
2015-07-30 22:01:15 +02:00
Maxime
4b92808bbf
Add syslog support for log and errors directives
2015-07-30 20:29:41 +02:00
Maxime
ec51e14451
Merge branch 'master' of https://github.com/mholt/caddy
2015-07-29 23:43:26 +02:00
Maxime
0168a627a4
Added test on markdown static files generation
2015-07-29 16:21:35 +02:00
Abiola Ibrahim
e240cd5ba2
Metadata variables flattened.
...
Fix race condition on parsers.
Added page links generator.
2015-07-28 05:21:09 +01:00
Karthic Rao
094436c23a
Complete Test set For config/setup/fastcgi.go
2015-07-27 20:19:20 +05:30
Matthew Holt
53b7b131cb
Update change list, and note in comment
2015-07-25 15:18:10 -06:00
Matthew Holt
bec9b9a3f7
redir: Redirect tables
...
Open a redir block to bulk-specify a bunch of redirects that share a status code
2015-07-25 15:18:10 -06:00
Matt Holt
bf47951f3a
Merge pull request #196 from evermax/master
...
markdown, browse: Integrated Context struct for templating
2015-07-25 15:15:51 -06:00
Karthic Rao
665f24d85f
initial test for config/setup/fastcgi.go
2015-07-23 10:27:42 +05:30
Maxime
6451e10d3e
Add context to markdown template
...
Created a struct containing middleware.Context, Title, Markdown and the
variables from the user to use to render the template.
The title now can be accessed via {{.Title}}.
The variables can now be accessed via {{.Var.myVariableName}}.
2015-07-21 07:58:34 +02:00
Maxime
f536bc94b2
Added the Context to the browse directive
...
Moved the Context type to middleware and exported it.
Users can use .Include and others in browse directive templating
Created test for the templates directive.
2015-07-17 20:07:24 +02:00
Karthic Rao
2b7ec1b023
Complete test coverage for config/setup/markdown.go
2015-07-11 00:44:31 +05:30
Abiola Ibrahim
4588812d24
Gzip: Fix wildcard extension bug.
2015-07-06 06:36:48 +01:00
Matt Holt
7dbe42286d
Merge pull request #174 from mholt/gzipfix
...
gzip: Make it gzip again
Removes mimes filter in favor of extensions filter (might be temporary)
2015-07-05 23:19:51 -06:00
Matthew Holt
b5579ca910
gzip: Remove mimes
2015-07-03 18:13:30 -06:00
Karthic Rao
93f29a7598
preliminary test case for config/setup/markdown.go
2015-07-03 10:03:22 +05:30
Matthew Holt
abf22909f1
gzip: Make it gzip again
2015-07-01 18:56:30 -06:00
Abiola Ibrahim
b030d0cf79
Merge remote-tracking branch 'upstream/master'
2015-06-29 09:16:59 +01:00
Karthic Rao
62456c1bed
Complete test coverage for config/setup/templates.go
2015-06-28 07:03:42 +05:30
Abiola Ibrahim
3f1f6720ee
Decouple git middleware from caddy core. Now available as an add-on at https://github.com/abiosoft/caddy-git .
2015-06-28 00:31:52 +01:00
Karthic Rao
e039577d66
export of variables undone
2015-06-27 03:49:44 +05:30
Karthic Rao
9995466a18
Initial Test case for config/setup/templates.go
2015-06-27 02:27:02 +05:30
Karthic Rao
a78cea7d8a
test for webSocketParse function in config/setup
2015-06-24 07:05:53 +05:30
Karthic Rao
292c15cd48
Modularizing config/setup/Websocket.go and for the same
2015-06-23 14:40:27 +05:30
Guilherme Rezende
efbf01b49d
change from error to a warning in errors setup
2015-06-22 23:19:48 -03:00
Matthew Holt
4b349805db
browse: better-looking sort order arrows
2015-06-22 15:04:22 -06:00
Matt Holt
47096e112a
Merge pull request #156 from pyed/sort
...
browse: Ability to sort
2015-06-22 12:40:58 -06:00
pyed
68add78230
Implement sorting functionality for "Browse"
2015-06-21 18:04:47 +03:00
Abiola Ibrahim
460c0c8a42
setup: export functions and variables for external packages.
2015-06-20 14:59:33 +01:00
Karthic Rao
9d33d9d6b0
typo corrected
2015-06-19 23:54:34 +05:30
Karthic Rao
d9729b4a2e
test for config/setup/internal.go
2015-06-19 23:34:54 +05:30
Karthic Rao
13c5d25a2e
Typo corrected
2015-06-19 22:30:48 +05:30
Karthic Rao
c166261513
more test cases for the test struct
2015-06-19 19:37:48 +05:30
Karthic Rao
84998a4d19
Tests for config/setup/log.go
2015-06-19 19:15:57 +05:30
Karthic Rao
65f7190030
more cases added to test struct in extParse test
2015-06-17 14:07:26 +05:30
Karthic Rao
a5a5c06716
test for function extParse written for config/setup/ext_go
2015-06-17 12:48:52 +05:30