All Projects → selvindev → craft.patrol

selvindev / craft.patrol

Licence: MIT license
Patrol simplifies SSL and maintenance routing for sites built with Craft

Programming Languages

PHP
23972 projects - #3 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to craft.patrol

anchors
Add anchor links to headings in your Craft CMS website content.
Stars: ✭ 47 (-47.78%)
Mutual labels:  craftcms, craft-plugin, craft2
overflow.craft-plugin
A plain text Craft field type, with a soft or hard character limit.
Stars: ✭ 13 (-85.56%)
Mutual labels:  craft, craftcms, craft-plugin
craft-audit
Audit log for Craft 3
Stars: ✭ 18 (-80%)
Mutual labels:  craft, craftcms, craft-plugin
craft-entry-instructions
A simple fieldtype to add instructions.
Stars: ✭ 16 (-82.22%)
Mutual labels:  craft, craftcms, craft-plugin
PowerNap
Sample Task plugin
Stars: ✭ 15 (-83.33%)
Mutual labels:  craftcms, craft-plugin, craft2
craft-router
A Craft CMS plugin for using URL segments as filtering criteria on an entry query.
Stars: ✭ 21 (-76.67%)
Mutual labels:  craftcms, craft-plugin, craft2
tablemaker
A user-definable table field type for Craft CMS
Stars: ✭ 39 (-56.67%)
Mutual labels:  craft, craftcms, craft-plugin
Simplemap
A beautifully simple map field type for Craft CMS.
Stars: ✭ 136 (+51.11%)
Mutual labels:  craft, craftcms, craft-plugin
oembed
A simple plugin to extract media information from websites, like youtube videos, twitter statuses or blog articles.
Stars: ✭ 34 (-62.22%)
Mutual labels:  craft, craftcms, craft-plugin
like
Let your users like your Craft website's entries, assets and any other element.
Stars: ✭ 44 (-51.11%)
Mutual labels:  craftcms, craft-plugin, craft2
smartdown.craft-plugin
Bringing the unbridled joy of Markdown Extra and Smartypants to your Craft websites.
Stars: ✭ 26 (-71.11%)
Mutual labels:  craft, craftcms, craft-plugin
query
Run SQL queries as an admin from the Craft CMS control panel.
Stars: ✭ 14 (-84.44%)
Mutual labels:  craftcms, craft-plugin, craft2
Seo
SEO utilities including a unique field type, sitemap & redirect manager
Stars: ✭ 210 (+133.33%)
Mutual labels:  craft, craftcms, craft-plugin
AssetSubfolderAccess
Limits user groups to only access certain asset subfolders
Stars: ✭ 18 (-80%)
Mutual labels:  craftcms, craft-plugin, craft2
Linkit
Multi-purpose link plugin for Craft CMS
Stars: ✭ 155 (+72.22%)
Mutual labels:  craft, craftcms, craft-plugin
store-hours
Manage business hours with Craft CMS.
Stars: ✭ 60 (-33.33%)
Mutual labels:  craftcms, craft-plugin, craft2
Buttonbox
A collection of utility field types for Craft
Stars: ✭ 94 (+4.44%)
Mutual labels:  craft, craftcms, craft-plugin
Craft Preparse Field
Field type that parses twig when an element is saved.
Stars: ✭ 103 (+14.44%)
Mutual labels:  craft, craftcms, craft-plugin
DigitalProducts
Sell digital products with Craft Commerce
Stars: ✭ 48 (-46.67%)
Mutual labels:  craftcms, craft-plugin, craft2
craft-plugin-patrol
Patrol for Craft 3
Stars: ✭ 28 (-68.89%)
Mutual labels:  craftcms, craft-plugin, patrol

Patrol

Patrol

Patrol simplifies SSL and maintenance routing for sites built with Craft CMS

Features

  • Allows you to force SSL on specific areas of your site or globally
  • Allows you to put your site on maintenance mode and route traffic to your offline page
  • Allows you to define who can access your website during maintenance
  • Allows you to enforce a primary domain (primaryDomain environment config)
  • Allows you to limit control panel access (limitCpAccessTo environment config)

You can let users access your website during maintenance by:

  • Making them admins
  • Authorizing their IP address
  • Giving them this permission: Patrol > Access the site when maintenance is on

If you want to block all users, (including admins) during maintenance:

  • Add your email or username to limitCpAccessTo in your config file and login with that account

Installation

  1. Download the latest release
  2. Extract the archive and place patrol inside your craft/plugins directory
  3. Adjust file permissions as necessary

Environment Configs

You can configure Patrol from any environment definition. Here is an example of how you could go about setting that up...

// config/general.php
return [
    '*'    => [
        'environmentVariables' => [],
    ],
    '.dev' => [
        'patrol' => [
            'forceSsl' => false,
        ],
    ],
    '.com' => [
        'patrol' => [
            'primaryDomain'   => '*',
            'forceSsl'        => true,
            'restrictedAreas' => [
                '/{cpTrigger}',
                '/members',
            ],
            'maintenanceMode' => false,
            'maintenanceUrl'  => '/offline.html',
            'authorizedIps'   => [
                '127.0.0.1',
            ],
            'limitCpAccessTo' => ['[email protected]'],
            'enableCpTab'     => true,
            'pluginAlias'     => 'Patrol',
        ],
    ],
];

Notes

Patrol will throw an HttpException(403) for unauthorized users during maintenance if you do not have an offline page set up.

To force SSL everywhere (recommended practice), you can set / as the restricted area. If you only want to force SSL on the control panel, you could use /admin or /{cpTrigger}, the latter is recommended.

Help & Feedback

If you have questions, comments, or suggestions, feel free to reach out to me on twitter @selvinortiz

License

Patrol for Craft CMS is open source software, licensed under the MIT License

Open Source Initiative

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].