diff options
-rw-r--r-- | .gitignore | 3 | ||||
-rwxr-xr-x | justfile | 18 | ||||
-rw-r--r-- | netlify.toml | 33 | ||||
-rw-r--r-- | shell.nix | 2 | ||||
-rw-r--r-- | vercel.json | 59 |
5 files changed, 0 insertions, 115 deletions
diff --git a/.gitignore b/.gitignore index e40b491..9f41698 100644 --- a/.gitignore +++ b/.gitignore @@ -25,12 +25,9 @@ vendor/ go.work # End of https://www.toptal.com/developers/gitignore/api/go -/netlify/.netlify/ /website/ /.pre-commit-config.yaml /result -.vercel -/.netlify/ *_templ.go *_templ.txt diff --git a/justfile b/justfile index 385f439..1dc651a 100755 --- a/justfile +++ b/justfile @@ -32,21 +32,3 @@ ci: build check-links cd *DEPLOY_FLAGS: fly auth docker fly deploy --image $(KO_DOCKER_REPO={{ docker-registry }} ko build --bare ./cmd/server) {{ DEPLOY_FLAGS }} - -deploy-vercel-preview: build - vercel pull --environment=preview - vercel deploy - -deploy-vercel: build check-links - vercel pull --environment=production - vercel deploy --prod - -deploy-netlify-preview: build - netlify deploy - -deploy-netlify: build check-links - netlify deploy --prodIfUnlocked - -deploy-preview: deploy-vercel-preview deploy-netlify-preview - -deploy-production: deploy-vercel deploy-netlify diff --git a/netlify.toml b/netlify.toml deleted file mode 100644 index 1f89ebb..0000000 --- a/netlify.toml +++ /dev/null @@ -1,33 +0,0 @@ -[build] - publish = "website/public" - -[[redirects]] - from = "/.well-known/openid-configuration" - to = "https://id.alanpearce.eu/.well-known/openid-configuration" - status = 302 - -[[headers]] - for = "/*" - [headers.values] - x-content-type-options = "nosniff" - x-xss-protection = "1; mode=block" - referrer-policy = "strict-origin-when-cross-origin" - strict-transport-security = "max-age=63072000; includeSubDomains; preload" - cache-control = ''' - max-age=300, - s-maxage=86400, - state-while-revalidate - ''' - content-security-policy = ''' - default-src 'none'; - img-src 'self' https://gc.zgo.at; - object-src 'none'; - script-src 'self' https://gc.zgo.at; - style-src - 'sha256-bGzdRsb1Yu6TLWwCqsdslYaNhLBikKOD6pFYeGsJ4lc=' - 'sha256-dCSzNS1o8vygl80V2G2nPTiSOUNvyDnW+06hHS4ZdHQ='; - form-action 'none'; - base-uri 'self'; - connect-src https://alanpearce-eu.goatcounter.com/count; - frame-ancestors https://kagi.com; -''' diff --git a/shell.nix b/shell.nix index d7db15c..4d46e2a 100644 --- a/shell.nix +++ b/shell.nix @@ -25,7 +25,5 @@ pkgs.mkShell { ko flyctl - nodePackages.vercel - netlify-cli ]; } diff --git a/vercel.json b/vercel.json deleted file mode 100644 index a4c873a..0000000 --- a/vercel.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "$schema": "https://openapi.vercel.sh/vercel.json", - "buildCommand": null, - "framework": null, - "outputDirectory": "website/public", - "cleanUrls": false, - "trailingSlash": false, - "redirects": [ - { - "source": "/.well-known/openid-configuration", - "destination": "https://id.alanpearce.eu/.well-known/openid-configuration", - "permanent": false - } - ], - "headers": [ - { - "source": "/.well-known/webfinger", - "headers": [ - { - "key": "Content-Type", - "value": "application/jrd+json" - } - ] - }, - { - "source": "/(.*)", - "headers": [ - { - "key": "X-Frame-Options", - "value": "DENY" - }, - { - "key": "X-Content-Type-Options", - "value": "nosniff" - }, - { - "key": "X-XSS-Protection", - "value": "1; mode=block" - }, - { - "key": "Referrer-Policy", - "value": "strict-origin-when-cross-origin" - }, - { - "key": "Strict-Transport-Security", - "value": "max-age=63072000; includeSubDomains; preload" - }, - { - "key": "Content-Security-Policy", - "value": "default-src 'none'; img-src 'self' https://gc.zgo.at; object-src 'none'; script-src https://gc.zgo.at; style-src 'sha256-bGzdRsb1Yu6TLWwCqsdslYaNhLBikKOD6pFYeGsJ4lc=' 'sha256-dCSzNS1o8vygl80V2G2nPTiSOUNvyDnW+06hHS4ZdHQ='; form-action 'none'; base-uri 'self'; frame-ancestors https://kagi.com; connect-src https://alanpearce-eu.goatcounter.com/count" - }, - { - "key": "Cache-Control", - "value": "max-age=14400, s-maxage=86400, state-while-revalidate" - } - ] - } - ] -} |