mirror of
https://gitplac.si/aljaxus/upn-qr.git
synced 2025-12-17 04:00:59 +00:00
Update src/index.js, manifests/upn-qr.yaml
This commit is contained in:
@@ -21,6 +21,23 @@ spec:
|
|||||||
- name: upn-qr-ct
|
- name: upn-qr-ct
|
||||||
image: registry.gitplac.si/aljaxus/upn-qr
|
image: registry.gitplac.si/aljaxus/upn-qr
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
|
env:
|
||||||
|
- name: POD_NAME
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.name
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: "/healthcheck"
|
||||||
|
port: 80
|
||||||
|
initialDelaySeconds: 5
|
||||||
|
periodSeconds: 10
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: "/healthcheck"
|
||||||
|
port: 80
|
||||||
|
initialDelaySeconds: 10
|
||||||
|
periodSeconds: 20
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ app.set('views', path.join(__dirname, 'views'))
|
|||||||
app.set('view engine', 'ejs')
|
app.set('view engine', 'ejs')
|
||||||
|
|
||||||
app.get('/', (req, res) => res.render('index'))
|
app.get('/', (req, res) => res.render('index'))
|
||||||
|
app.get('/healthcheck', (req, res) => res.send({ ok: true, pod: process.env.POD_NAME }))
|
||||||
app.get('/form', (req, res) => res.render('form', { q: req.query }))
|
app.get('/form', (req, res) => res.render('form', { q: req.query }))
|
||||||
|
|
||||||
app.get('/api/qrcode', async (req, res) => {
|
app.get('/api/qrcode', async (req, res) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user