This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| variable "modules" { | |
| type = list | |
| default = ["ai", "payments"] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict' | |
| const { PrometheusExporter } = require('@opentelemetry/exporter-prometheus') | |
| const { MeterProvider } = require('@opentelemetry/metrics') | |
| // configuration options omitted for brevity | |
| const exporter = new PrometheusExporter({ host, port, endpoint, appendTimestamp, prefix }, () => { | |
| console.log('Exporter now running on port', port) | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict' | |
| module.exports = (result) => { | |
| return result.map(({ user, 'login@': login, from }) => { | |
| return Object.assign({}, { user, login, from }) | |
| }).reduce((context, next) => { | |
| if (!Array.isArray(context[next.user])) { | |
| context[next.user] = [] | |
| } | |
| context[next.user].push(next) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| module.exports = (output) => { | |
| const lines = output.split('\n') | |
| const columns = lines[1].split(' ').filter(column => column).map(entry => entry.toLowerCase()) | |
| const values = lines.slice(2).map(line => line.split(' ').filter(entry => entry)) | |
| return values.slice(0, values.length - 1).reduce((context, next) => { | |
| const line = {} | |
| next.forEach((value, index) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # place file in .github directory of your repository | |
| version: 2 | |
| updates: | |
| - package-ecosystem: github-actions | |
| assignees: | |
| - stfsy # add yourself or other users here as you wish | |
| directory: / | |
| schedule: | |
| interval: daily |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server: | |
| port: 8443 | |
| ssl: | |
| key-store: "file:/etc/letsencrypt/live/monitoring.blauspecht.io/keystore.p12" | |
| key-store-password: "" | |
| key-password: "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict' | |
| const spdy = require('spdy') | |
| const express = require('express') | |
| const port = process.env.port || 8080 | |
| const app = express() | |
| app.use('/.well-known/acme-challenge/', express.static('./certbot/.well-known/acme-challenge/', { | |
| dotfiles: 'allow' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict' | |
| const fs = require('fs') | |
| const constants = require('crypto').constants | |
| const spdy = require('spdy') | |
| const server = require('express') | |
| const app = express() | |
| const port = process.env.port || 3000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ssl_dhparam /etc/ssl/certs/dhparam.pem; | |
| ssl_session_timeout 1d; | |
| ssl_session_cache shared:SSL:10m; | |
| ssl_session_tickets off; | |
| ssl_protocols TLSv1.2 TLSv1.3; | |
| ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384; | |
| ssl_stapling on; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| include snippets/ssl.conf; | |
| client_header_buffer_size 1k; | |
| client_max_body_size 8m; | |
| large_client_header_buffers 4 4k; | |
| server_tokens off; | |
| server { | |
| listen 8080; |