Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
Add a healthz route
Browse files Browse the repository at this point in the history
  • Loading branch information
desoindx committed Jan 5, 2022
1 parent 184d848 commit 315161c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 238 deletions.
204 changes: 0 additions & 204 deletions .socialgouv/__tests__/__snapshots__/deploy.js.snap

This file was deleted.

27 changes: 0 additions & 27 deletions .socialgouv/__tests__/deploy.js

This file was deleted.

9 changes: 2 additions & 7 deletions .socialgouv/config.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
{
"name": "app",
"type": "static",
"type": "app",
"subdomain": "monpsy",
"registry": "ghcr",
"project": "mon-psy-sante",
"ingress": {
"annotations": {
"nginx.ingress.kubernetes.io/configuration-snippet": "more_set_headers \"Content-Security-Policy: default-src 'none'; connect-src 'self' https://*.gouv.fr https://services.sarbacane.com; font-src 'self' data:; img-src 'self' data: https://forms.sbc08.com; prefetch-src 'self' https://*.gouv.fr; script-src 'self' https://*.gouv.fr https://*.sbc08.com; frame-src 'self' https://*.gouv.fr; style-src 'self' 'unsafe-inline'\";\nmore_set_headers \"X-Frame-Options: deny\";\nmore_set_headers \"X-XSS-Protection: 1; mode=block\";\nmore_set_headers \"X-Content-Type-Options: nosniff\";"
}
}
"project": "mon-psy-sante"
}
7 changes: 7 additions & 0 deletions src/pages/healthz.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { NextApiRequest, NextApiResponse } from "next";

const healthz = async (req: NextApiRequest, res: NextApiResponse) => {
return res.status(200);
};

export default healthz;

0 comments on commit 315161c

Please sign in to comment.