helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm repo update
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
| [Unit] | |
| Description=Geth Archive Node | |
| After=network.target auditd.service | |
| Wants=network.target | |
| [Service] | |
| ExecStartPre=/usr/bin/bash -c "/usr/bin/systemctl set-environment NODE_NAME=$(hostname -s) && /usr/bin/systemctl set-environment PRIVATE_IP=$(hostname -i)" | |
| ExecStart=/usr/bin/geth --identity "${NODE_NAME}" --ethstats "${NODE_NAME}:helloWorld@10.104.8.107:3000" --config /bkc-node/mainnet/config.toml --cache 10240 --txlookuplimit 0 --syncmode full --snapshot=true --gcmode=archive --nat extip:${PRIVATE_IP} | |
| User=root | |
| Group=root |
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
| [Eth] | |
| NetworkId = 96 | |
| SyncMode = "full" | |
| NoPruning = false | |
| NoPrefetch = false | |
| LightPeers = 100 | |
| UltraLightFraction = 75 | |
| DatabaseCache = 1024 | |
| DatabaseFreezer = "" | |
| TrieCleanCache = 1024 |
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
| export interface Question { | |
| id: string | |
| title: string | |
| categoryId: string | |
| order: number | |
| } | |
| // Collection(name=uppeople_quizzes) | |
| export interface Quiz { | |
| id: string |
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
| // firebase.json | |
| { | |
| "functions": { | |
| "source": "functions" | |
| }, | |
| "hosting": { | |
| "public": "public", | |
| "rewrites": [ | |
| { | |
| "source": "**", |
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
| // ./next.config.js | |
| module.exports = { | |
| distDir: './functions/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
| // ./functions/index.js | |
| const functions = require('firebase-functions'); | |
| const next = require('next') | |
| const app = next({ dev: false, conf: { distDir: "next" } }) | |
| const handle = app.getRequestHandler() | |
| exports.nextApp = functions.https.onRequest((request, response) => { | |
| console.log("[Function] RequestUrl", request.originalUrl) | |
| return app.prepare().then(() => handle(request, response)) | |
| }) |
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
| /// ./pages/preact.js | |
| import React from 'react' | |
| import Link from 'next/link' | |
| import 'isomorphic-unfetch' | |
| export default class Preact extends React.Component { | |
| static async getInitialProps () { | |
| // eslint-disable-next-line no-undef | |
| const res = await fetch('https://api.github.com/repos/developit/preact') | |
| const json = await res.json() |
NewerOlder