diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 00000000..98212f28 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,7 @@ +FROM node:21-alpine3.18 +RUN apk add --no-cache \ + git \ + nano\ + openssh + +USER node diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..58e0d8b6 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,23 @@ +{ + "name": "Pi-hole web devcontainer", + "dockerFile": "Dockerfile", + // Use 'postCreateCommand' to run commands after the container is created. + "postCreateCommand": "npm install", + "customizations": { + // Configure properties specific to VS Code. + "vscode": { + "settings": {}, + "extensions": [ + "eamodio.gitlens", + "EditorConfig.EditorConfig", + "github.vscode-github-actions" + ] + } + }, + "containerEnv": { + "GIT_EDITOR": "nano" + }, + "mounts": [ + "type=bind,source=/home/${localEnv:USER}/.ssh,target=/home/node/.ssh,readonly" + ] +} diff --git a/.editorconfig b/.editorconfig index 81d63a06..e0029320 100644 --- a/.editorconfig +++ b/.editorconfig @@ -17,7 +17,7 @@ indent_size = 2 [*.js] indent_size = 2 -[package.json] +[*.json] indent_size = 2 [.yamllint.conf] diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml index 05e5593f..e9222f63 100644 --- a/.github/workflows/codespell.yml +++ b/.github/workflows/codespell.yml @@ -1,6 +1,9 @@ name: Codespell on: + push: + branches: + - '**' pull_request: types: [opened, synchronize, reopened, ready_for_review] diff --git a/error403.lp b/error403.lp new file mode 100644 index 00000000..d071669f --- /dev/null +++ b/error403.lp @@ -0,0 +1,26 @@ + --[[ +* Pi-hole: A black hole for Internet advertisements +* (c) 2023 Pi-hole, LLC (https://pi-hole.net) +* Network-wide ad blocking via your own hardware. +* +* This file is copyright under the latest version of the EUPL. +* Please see LICENSE file for your rights under this license. +--]] + +mg.include('scripts/pi-hole/lua/header.lp','r') +?> +
+
+ You don't have permission to access =mg.request_info.request_uri?> on this server.
+ Did you mean to go to your Pi-hole's dashboard instead?
+