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'; | |
exports.handler = (event, context, callback) => { | |
const response = event.Records[0].cf.response; | |
const headers = response.headers; | |
// Server header to conceil technology | |
headers['server'] = [{ | |
key: 'Server', | |
value: "" |
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
import json | |
import boto3 | |
import zipfile | |
import tempfile | |
code_pipeline = boto3.client('codepipeline') | |
s3 = boto3.client('s3') |
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
autoUpdate: | |
enabled: false | |
schedule: "" | |
bootConfigURL: https://gitlab.com/cz-sandbox/boot-jx | |
cluster: | |
clusterName: cicd | |
devEnvApprovers: | |
- cz-jx-bot | |
- DerPauli | |
environmentGitOwner: cz-sandbox |
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
nginx-ingress: | |
controller: | |
replicaCount: 3 | |
extraArgs: | |
publish-service: kube-system/jxing-nginx-ingress-controller | |
service: | |
omitClusterIP: true | |
{{- if eq .Requirements.cluster.provider "eks" }} | |
annotations: | |
service.beta.kubernetes.io/aws-load-balancer-type: alb |
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
external-dns: | |
enabled: {{ .Requirements.ingress.externalDNS }} | |
sources: | |
- ingress | |
{{- if eq .Requirements.cluster.provider "eks"}} | |
provider: aws | |
aws: | |
region: {{ .Requirements.cluster.region}} | |
securityContext: | |
fsGroup: 65534 |
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
autoUpdate: | |
enabled: false | |
schedule: "" | |
bootConfigURL: https://github.com/codezenith/cz-jx-boot | |
cluster: | |
clusterName: cicd-cluster | |
environmentGitOwner: codezenith | |
environmentGitPublic: true | |
gitKind: github | |
gitName: github |
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
sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 3000 | |
sudo iptables-save |
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
import express from 'express' | |
import { ApolloServer } from 'apollo-server-express' | |
import typeDefs from './graphql/schema' | |
import resolvers from './graphql/resolvers' | |
import fs from 'fs' | |
import https from 'https' | |
import http from 'http' | |
const configurations = { | |
// Note: You may need sudo to run on port 443 |