All Projects → selvinortiz → Craft.patrol

selvinortiz / Craft.patrol

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

Projects that are alternatives of or similar to Craft.patrol

craft-audit
Audit log for Craft 3
Stars: ✭ 18 (-80.22%)
Mutual labels:  craft, craftcms, craft-plugin
craft-entry-instructions
A simple fieldtype to add instructions.
Stars: ✭ 16 (-82.42%)
Mutual labels:  craft, craftcms, craft-plugin
tablemaker
A user-definable table field type for Craft CMS
Stars: ✭ 39 (-57.14%)
Mutual labels:  craft, craftcms, craft-plugin
Craft Brief
Quick, easy, and customizable user-group notifications for Craft CMS.
Stars: ✭ 47 (-48.35%)
Mutual labels:  craftcms, craft-plugin, craft
craft-instagram-feed
Craft CMS plugin to receive Instragram feed data as variable in templates
Stars: ✭ 25 (-72.53%)
Mutual labels:  craft, craftcms, craft-plugin
Seo
SEO utilities including a unique field type, sitemap & redirect manager
Stars: ✭ 210 (+130.77%)
Mutual labels:  craftcms, craft-plugin, craft
overflow.craft-plugin
A plain text Craft field type, with a soft or hard character limit.
Stars: ✭ 13 (-85.71%)
Mutual labels:  craft, craftcms, craft-plugin
Buttonbox
A collection of utility field types for Craft
Stars: ✭ 94 (+3.3%)
Mutual labels:  craftcms, craft-plugin, craft
picpuller-for-craft3
Pic Puller for Craft 3 lets authorized users pull in their Instagram media into Craft.
Stars: ✭ 12 (-86.81%)
Mutual labels:  craft, craftcms, craft-plugin
craft.patrol
Patrol simplifies SSL and maintenance routing for sites built with Craft
Stars: ✭ 90 (-1.1%)
Mutual labels:  craft, craftcms, craft-plugin
Linkit
Multi-purpose link plugin for Craft CMS
Stars: ✭ 155 (+70.33%)
Mutual labels:  craftcms, craft-plugin, craft
craft-entriessubset
Craft field type plugin that extends the core Entries field type to give extra settings
Stars: ✭ 27 (-70.33%)
Mutual labels:  craft, craftcms, craft-plugin
Simplemap
A beautifully simple map field type for Craft CMS.
Stars: ✭ 136 (+49.45%)
Mutual labels:  craftcms, craft-plugin, craft
smartdown.craft-plugin
Bringing the unbridled joy of Markdown Extra and Smartypants to your Craft websites.
Stars: ✭ 26 (-71.43%)
Mutual labels:  craft, craftcms, craft-plugin
Craft Preparse Field
Field type that parses twig when an element is saved.
Stars: ✭ 103 (+13.19%)
Mutual labels:  craftcms, craft-plugin, craft
oembed
A simple plugin to extract media information from websites, like youtube videos, twitter statuses or blog articles.
Stars: ✭ 34 (-62.64%)
Mutual labels:  craft, craftcms, craft-plugin
craft-json-snippets
Helps make CraftCMS models in .json
Stars: ✭ 17 (-81.32%)
Mutual labels:  craft, craftcms, craft-plugin
craft-plugin-mix
Helper plugin for Laravel Mix in Craft CMS templates
Stars: ✭ 50 (-45.05%)
Mutual labels:  craft, craftcms, craft-plugin
Awesome
A collection of awesome Craft CMS plugins, articles, resources and shiny things.
Stars: ✭ 449 (+393.41%)
Mutual labels:  craftcms, craft-plugin, craft
Commercemailer
ARCHIVED: For Craft Commerce. Makes it easy to create forms for sending carts, products and orders by email.
Stars: ✭ 8 (-91.21%)
Mutual labels:  craftcms, craft-plugin

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].