-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fccb1b7
commit 06c4c45
Showing
26 changed files
with
1,544 additions
and
3,439 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.temp | ||
.cache | ||
temp | ||
cache | ||
dist | ||
_site | ||
!.vitepress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import {createRequire} from 'module'; | ||
|
||
import {defineConfig} from '@lando/vitepress-theme-default-plus/config'; | ||
|
||
const require = createRequire(import.meta.url); | ||
|
||
const {name, version} = require('../../package.json'); | ||
const landoPlugin = name.replace('@lando/', ''); | ||
|
||
export default defineConfig({ | ||
title: 'Lando Varnish Plugin', | ||
description: 'The offical Lando plugin for Varnish.', | ||
landoDocs: 3, | ||
landoPlugin, | ||
version, | ||
head: [ | ||
['meta', {name: 'viewport', content: 'width=device-width, initial-scale=1'}], | ||
['link', {rel: 'icon', href: '/varnish/favicon.ico', size: 'any'}], | ||
['link', {rel: 'icon', href: '/varnish/favicon.svg', type: 'image/svg+xml'}], | ||
], | ||
themeConfig: { | ||
sidebar: sidebar(), | ||
}, | ||
}); | ||
|
||
function sidebar() { | ||
return [ | ||
{ | ||
text: 'Introduction', | ||
collapsed: false, | ||
items: [ | ||
{text: 'Overview', link: '/'}, | ||
{text: 'Installation', link: '/install'}, | ||
{text: 'Usage', link: '/config'}, | ||
], | ||
}, | ||
{ | ||
text: 'Contribution', | ||
collapsed: false, | ||
items: [ | ||
{text: 'Development', link: '/development'}, | ||
{text: 'Team', link: '/team'}, | ||
], | ||
}, | ||
{ | ||
text: 'Help & Support', | ||
collapsed: false, | ||
items: [ | ||
{text: 'GitHub', link: 'https://github.com/lando/varnish/issues/new/choose'}, | ||
{text: 'Slack', link: 'https://www.launchpass.com/devwithlando'}, | ||
{text: 'Contact Us', link: '/support'}, | ||
], | ||
}, | ||
{text: 'Examples', link: 'https://github.com/lando/varnish/tree/main/examples'}, | ||
]; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import VPLTheme from '@lando/vitepress-theme-default-plus'; | ||
|
||
export default VPLTheme; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ next: ./config.html | |
|
||
[Varnish Cache](https://varnish-cache.org/intro/index.html#intro) is a web application accelerator also known as a caching HTTP reverse proxy. You install it in front of any server that speaks HTTP and configure it to cache the contents. | ||
|
||
You can easily add it to your Lando app by adding an entry to the [services](https://docs.lando.dev/config/services.html) top-level config in your [Landofile](https://docs.lando.dev/config/lando.html). | ||
You can easily add it to your Lando app by adding an entry to the [services](https://docs.lando.dev/core/v3/lando-service.html) top-level config in your [Landofile](https://docs.lando.dev/core/v3). | ||
|
||
```yaml | ||
services: | ||
|
@@ -25,50 +25,9 @@ services: | |
* [6](https://hub.docker.com/r/wodby/varnish) | ||
* **[4.1](https://hub.docker.com/r/wodby/varnish)** **(default)** | ||
* [4](https://hub.docker.com/r/wodby/varnish) | ||
* [custom](https://docs.lando.dev/config/services.html#advanced) | ||
* [custom](https://docs.lando.dev/core/v3/lando-service.html#overrides) | ||
## Patch versions | ||
This service does not support patch versions but if you **really** need something like that, you could consider using either a [custom compose service](https://docs.lando.dev/compose) or a service [overrides](https://docs.lando.dev/config/services.html#overrides). | ||
This service does not support patch versions but if you **really** need something like that, you could consider using either a [custom compose service](https://docs.lando.dev/compose) or a service [overrides](https://docs.lando.dev/core/v3/lando-service.html#overrides). | ||
## Custom Installation | ||
This plugin is included with Lando by default. That means if you have Lando version `3.0.8` or higher then this plugin is already installed! | ||
|
||
However if you would like to manually install the plugin, update it to the bleeding edge or install a particular version then use the below. Note that this installation method requires Lando `3.5.0+`. | ||
|
||
:::: code-group | ||
::: code-group-item LANDO 3.21+ | ||
```bash:no-line-numbers | ||
lando plugin-add @lando/varnish | ||
``` | ||
::: | ||
::: code-group-item HYPERDRIVE | ||
```bash:no-line-numbers | ||
# @TODO | ||
# @NOTE: This doesn't actaully work yet | ||
hyperdrive install @lando/varnish | ||
``` | ||
::: | ||
::: code-group-item DOCKER | ||
```bash:no-line-numbers | ||
# Ensure you have a global plugins directory | ||
mkdir -p ~/.lando/plugins | ||
# Install plugin | ||
# NOTE: Modify the "npm install @lando/varnish" line to install a particular version eg | ||
# npm install @lando/[email protected] | ||
docker run --rm -it -v ${HOME}/.lando/plugins:/plugins -w /tmp node:14-alpine sh -c \ | ||
"npm init -y \ | ||
&& npm install @lando/varnish --production --flat --no-default-rc --no-lockfile --link-duplicates \ | ||
&& npm install --production --cwd /tmp/node_modules/@lando/varnish \ | ||
&& mkdir -p /plugins/@lando \ | ||
&& mv --force /tmp/node_modules/@lando/varnish /plugins/@lando/varnish" | ||
# Rebuild the plugin cache | ||
lando --clear | ||
``` | ||
::: | ||
:::: | ||
|
||
You should be able to verify the plugin is installed by running `lando config --path plugins` and checking for `@lando/varnish`. This command will also show you _where_ the plugin is being loaded from. |
Oops, something went wrong.