1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-10-28 13:05:48 -04:00

redirect new netlify.app subdomain

This commit is contained in:
2020-03-16 09:56:24 -04:00
parent 106d6e3224
commit f313975606
5 changed files with 28 additions and 13 deletions

View File

@@ -1,6 +1,2 @@
# Repo will be added as a volume, so ignore everything...
**
# ...except readme and license
!/README.md
!/LICENSE.md

20
.gitignore vendored
View File

@@ -1,15 +1,27 @@
# Hugo artifacts
public/
builds/
resources/
.env
# node/npm/yarn
node_modules/
package-lock.json
yarn-debug.log
yarn-error.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# here be secrets
.env
.env.production
# macOS/iCloud junk
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
*.icloud
.nosync
# Local Netlify folder
.netlify

2
.npmrc
View File

@@ -1,2 +0,0 @@
engine-strict=true
package-lock=false

View File

@@ -5,7 +5,7 @@
#
# Based on: https://github.com/jakejarvis/hugo-build-action/blob/master/Dockerfile
FROM alpine:latest
FROM node:lts-alpine
ENV HUGO_VERSION 0.65.3
# remove/comment the following line completely to build with vanilla Hugo:
@@ -17,7 +17,11 @@ RUN apk update && \
apk add --no-cache \
ca-certificates \
git \
nodejs \
yarn \
asciidoctor \
python3 \
py3-setuptools \
py3-pygments \
${HUGO_EXTENDED:+libc6-compat libstdc++} && \
update-ca-certificates && \
wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_EXTENDED:+extended_}${HUGO_VERSION}_Linux-64bit.tar.gz && \

View File

@@ -52,7 +52,7 @@
# X-XSS-Protection = "1; mode=block; report=https://jarvis.report-uri.com/r/d/xss/enforce"
X-Pingback = "https://jarv.is/ping/xmlrpc"
X-Got-Milk = "2%"
X-View-Source = "https://github.com/jakejarvis/jarv.is"
# X-View-Source = "https://github.com/jakejarvis/jarv.is"
# PGP file: open in browser, download correctly
[[headers]]
@@ -75,6 +75,11 @@
to = "https://jarv.is/:splat"
status = 301
force = true
[[redirects]]
from = "https://jakejarvis.netlify.app/*"
to = "https://jarv.is/:splat"
status = 301
force = true
[[redirects]]
from = "https://www.jarv.is/*"
to = "https://jarv.is/:splat"