Commit Graph

153 Commits

Author SHA1 Message Date
❤ rose shimada
c51a07c4e9 Adding xlsm to supported mime types (#1054)
Most of Excel family is there except for macro-capable xls in Office 2007. Tested and working to enable .xlsm file upload.
2016-10-03 16:56:59 +02:00
Bernhard Altendorfer
584f4efcb1 Added possiblity to connect to redis via a unix socket (#1055)
* Added possiblity to connect to redis via a unix socket

* Improved redis via socket config usage and added config option to blueprints

* Updated Changelog

* Improved redis via socket by adding a default value and a placeholder in the blueprint
2016-09-21 10:45:13 -06:00
Djamil Legato
afc7963644 SSL Verify Peer (#1053)
* GPM: SSL verify peer and method (auto|fopen|curl) are now settings

* Added Admin blueprints settings

* Fixed default verify_peer value

* Fixed lang references for verify_peer

* Minor fixes for improper comments default values
2016-09-19 11:21:16 -07:00
Andy Miller
0e16a271b7 organization tweaks for system.yaml 2016-09-09 16:02:31 -06:00
Djamil Legato
dc882fffd8 Cleanup 2016-08-29 23:23:21 -07:00
Djamil Legato
ca5bfcaaed Fixed regression with Sessions and its path. Forcing $domain when creating a new session 2016-08-25 16:27:20 -07:00
Flavio Copes
0496fc3790 Allow subfolder url rewrite (#896)
By setting `custom_base_url` in system.yaml, we can have Grav in a subfolder but run it in the domain root.

## Scenario 1

Grav is installed in `http://localhost:8080/grav-develop` but you want it to respond on `http://localhost:8080`

In system.yaml, set

```
custom_base_url: 'http://localhost:8080'
```

and set the session path to the new Grav site path, 

```
session:
  path: /
```

And in the domain root, set the redirect, e.g. with .htaccess:

```
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/grav-develop/
RewriteRule ^(.*)$ /grav-develop/$1
```

where `grav-develop` is the subfolder where Grav is.

## Scenario 2

Grav is installed in `http://localhost:8080/grav-develop` but you want it to respond on `http://localhost:8080/xxxxx`

In system.yaml, set

```
custom_base_url: 'http://localhost:8080/xxxxx'
```

and set the session path to the new Grav site path, 

```
session:
  path: /xxxxx
```

And in the new root folder, /xxxxx, set the redirect, e.g. with .htaccess:

```
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/grav-develop/
RewriteRule ^(.*)$ /grav-develop/$1
```

where `grav-develop` is the sister subfolder where Grav is.
2016-08-24 19:23:49 +02:00
Andy Miller
f7c968128a updated changelog 2016-08-16 16:10:06 -06:00
Andy Miller
1c462e8784 quoted redirect rules 2016-08-09 13:33:51 -06:00
Flavio Copes
98534bc836 Force SSL on a page if system.force_ssl is enabled (#899)
* Force SSL on a page if system.force_ssl is enabled

* Blueprint for force_ssl option

* Add default false for force_ssl
2016-07-20 17:33:29 +02:00
Andy Miller
b0db8c89dd changed to stable releases 2016-07-14 14:33:17 -06:00
Andy Miller
ee567fc1dc Moved media list items into an types: key. 2016-06-02 14:50:22 -06:00
Andy Miller
471cf7fe31 Removed references to mcrclay/minify's CSS and JS min 2016-05-31 11:29:37 -06:00
Andy Miller
a24b7faef5 Added a new CSS / JS minify library that seems to do a better job #864 2016-05-30 23:05:59 -06:00
Andy Miller
2abd70467c Set twig.debug to true by default 2016-04-21 14:01:58 -06:00
Andy Miller
3eafc4a089 set gpm.releases to testing during beta phase 2016-04-20 16:03:42 -06:00
Andy Miller
33f06e00a1 add webm and ogv 2016-04-19 17:08:39 -06:00
Andy Miller
6124f71d6e Feature/frontmatter twig processing (#788)
* start on processFrontmatter logic

* optimized the twig processing

* Added blueprint definitions

* updated changelog

* Fix to not process in admin
2016-04-14 15:33:45 -06:00
Andy Miller
90481e8a6d Added new gpm.releases option and output in CLI 2016-04-12 15:49:09 -06:00
Andy Miller
0e40257176 removed proxy_url and moved to gpm section 2016-04-12 15:46:28 -06:00
Andy Miller
0ed84642e9 Added option to exclude_externals from pipeline and before_excludes to control the render order - #770 2016-04-06 17:27:31 -06:00
Andy Miller
1d23d29485 Various PSR fixes 2016-02-05 12:39:04 -07:00
Andy Miller
1f75e014d3 added example 2016-01-28 10:30:24 -07:00
Andy Miller
b8437fbd01 Added support for proxy_url to enable GPM behind proxy servers #639 2016-01-27 17:15:39 -07:00
Andy Miller
8dbe06941c comment out default routes/aliases from system/config/site.yaml 2016-01-27 11:44:46 -07:00
Flavio Copes
172236e58d 🚧 Rename jquery-2.2.0.min.js to jquery-2.x.min.js
When stored in the user config, configuration for collections might
still reference old shipped releases. We move to jquery-2.x.min.js for
all future 2.x releases, and we'll have a jquery-3.x.min.js when it's
shipped.
2016-01-26 13:24:29 +01:00
Flavio Copes
515f257ee3 Update jQuery to 2.2.0 2016-01-22 18:25:24 +01:00
Andy Miller
9a3005e3c5 Added a reverse_proxy config option and use it to skip setting ports when enabled 2016-01-08 16:35:33 -07:00
Andy Miller
2ef7f7cf36 Merge branch 'feature/hide_home_in_urls' into develop 2016-01-04 11:14:57 -07:00
Andy Miller
e4930a144f Merge pull request #554 from getgrav/feature/session-improvements
Add secure and httponly parameters to sessions
2016-01-04 09:54:49 -07:00
Andy Miller
da882ebcd2 set twig_first: false by default due to modular pages 2015-12-31 15:35:54 -07:00
Andy Miller
73b9abd38b Added a global setting for twig_first processing, and set it to true (was false) 2015-12-31 12:25:22 -07:00
Andy Miller
3eb2a5664a logic to strip home from Page routes and urls (optional) 2015-12-24 17:42:02 -07:00
Flavio Copes
3698afb8a6 Add secure and httponly parameters to sessions 2015-12-22 17:03:39 +01:00
Andy Miller
ec7dbbdc8b Added 7z format to standard file types #521 2015-12-14 18:13:14 -07:00
Andy Miller
40f5d57737 Default value not in quotes. Needs to be a string for Admin compatibility - https://docs.saltstack.com/en/latest/topics/troubleshooting/yaml_idiosyncrasies.html#integers-are-parsed-as-integers 2015-12-12 08:43:41 -07:00
Andy Miller
52947b3a2c Added Image cache perms option 2015-12-10 20:51:40 -07:00
Flavio Copes
af5c52c52f Update session name hints 2015-11-30 14:36:23 +01:00
Andy Miller
18a540c867 Don't set a default hash in system.yaml 2015-11-19 18:56:05 -07:00
Andy Miller
3d774b7585 moved fallback types to media 2015-11-18 15:50:46 -07:00
Andy Miller
e96445abe3 Added append_url_extension option to system/page headers. 2015-11-16 21:33:24 -07:00
Andy Miller
4b68036a1b Fixed assets stream for bin/grav clear 2015-11-01 20:52:14 -07:00
Andy Miller
467d68344e added a default umask_fix property to system.yaml 2015-10-30 11:42:36 -06:00
Andy Miller
1e81d5e38c whitespace tweak 2015-10-29 16:34:30 -06:00
Andy Miller
70b67a0805 Created whitelist for fallback route functionality 2015-10-28 10:39:15 -06:00
Andy Miller
8b414c388d wrapped_site option in system.yaml 2015-10-26 17:14:58 -06:00
Andy Miller
98d0538868 Option to allow all hidden files/folders #306 2015-10-23 10:23:01 -06:00
Andy Miller
f03921690c Created system option for redirect code + allowed [30x] syntax on redirect urls 2015-10-22 14:37:38 -06:00
Andy Miller
7c6471fe2a Added option to disable url_taxonomy_filters for page collections globally in system.yaml or in content: page header 2015-10-20 10:53:08 -06:00
Flavio Copes
29b8c1d124 Use the 'file' type for some of the recently added mime types
Anything that is an 'image' should be able to have the image
manipulations applied to it. So BMP, Tiff, etc are not valid images in
in this sense. Same goes for Videos, they must be able to be supported
with the tag. -> http://www.w3schools.com/html/html5_video.asp, so
basically that's only: MP4, WebM, and Ogg

Everything else should be under 'files' which are accessible via
media['files'] but not much can be done with them outside of getting
their URL or a simple HTML link
2015-10-19 16:46:26 +02:00