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
package main | |
import ( | |
"encoding/json" | |
"net/http" | |
"path" | |
"strconv" | |
) | |
type Post struct { |
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 { createServer } from "http"; | |
const server = createServer((req, res) => { | |
res.writeHead(200, { "Content-Type": "application/json" }); | |
res.end( | |
JSON.stringify({ | |
data: "Hello World!", | |
}) | |
); | |
}); |
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
# GraphQL | |
# Type queries into this side of the screen, and you will | |
# see intelligent typeaheads aware of the current GraphQL type schema, | |
# live syntax, and validation errors highlighted within the text. | |
# We'll get you started with a simple query showing your username! | |
query { | |
user(login: "AndriiMaliuta") { | |
# fetch only owner repos & not forks | |
repositories(ownerAffiliations: OWNER, isFork: false, first: 100) { |
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
location / { | |
proxy_pass http://localhost:8080; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection 'upgrade'; | |
proxy_set_header Host $host; | |
proxy_cache_bypass $http_upgrade; | |
} |
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
apiVersion: networking.k8s.io/v1 | |
kind: Ingress | |
metadata: | |
name: minimal-ingress | |
annotations: | |
nginx.ingress.kubernetes.io/rewrite-target: / | |
spec: | |
rules: | |
- http: | |
paths: |
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
### INGRESS | |
apiVersion: networking.k8s.io/v1 | |
kind: Ingress | |
metadata: | |
name: http-ingress | |
spec: | |
rules: | |
- http: | |
paths: | |
- path: / |
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
apiVersion: networking.k8s.io/v1 | |
kind: Ingress | |
metadata: | |
name: ingress-wildcard-host | |
spec: | |
rules: | |
- host: "andmal.cyou" | |
http: | |
paths: | |
- pathType: Prefix |
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
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: testsecret-tls | |
namespace: default | |
data: | |
tls.crt: base64 encoded cert | |
tls.key: base64 encoded key | |
type: kubernetes.io/tls |
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
version: '3' | |
services: | |
micro1-db: | |
image: sb-micro-1:0.0.1 | |
container_name: sb-micro-1 | |
environment: | |
- DB_URL= | |
- R2_USERNAME= | |
- R2_PASSWORD= | |
networks: |
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
# | |
# Create a custom JLink runtime | |
# | |
FROM adoptopenjdk:16 AS builder | |
RUN cd /usr/local && \ | |
curl -O https://archive.apache.org/dist/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz && \ | |
tar xfvz apache-maven-3.6.3-bin.tar.gz && \ | |
rm apache-maven-3.6.3-bin.tar.gz | |
COPY . /root | |
RUN export PATH=$PATH:/usr/local/apache-maven-3.6.3/bin && \ |