40 lines
1.8 KiB
YAML
40 lines
1.8 KiB
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: wetty-config
|
|
#name: {{ .Values.config.configMapName }}
|
|
labels:
|
|
{{- include "wetty.labels" . | nindent 4 }}
|
|
data:
|
|
config.json: "{ \n \"ssh\": {\n \"user\": \"{{ .Values.config.remote_ssh_user }}\", // default user to
|
|
use when ssh-ing\n \"host\": \"{{ .Values.config.remote_ssh_server }}\", // Server to ssh
|
|
to\n \"auth\": \"{{ .Values.config.remote_ssh_auth }}\", // shh authentication, method. Defaults
|
|
to \"password\", you can use \"publickey,password\" instead'\n \"key\":
|
|
\"/src/.ssh/id_ecdsa\", // path to an optional client private key, connection
|
|
will be password-less and insecure!\n \"port\": {{ .Values.config.remote_ssh_port }}, // Port to ssh to\n
|
|
\ },\n \"server\": {\n \"base\": \"{{ .Values.config.wetty_base }}\", // URL base to serve resources
|
|
from\n \"port\": 3000, // Port to listen on\n \"host\": \"0.0.0.0\",
|
|
// listen on all interfaces or can be 127.0.0.1 with nginx\n \"title\":
|
|
\"WeTTy - The Web Terminal Emulator\", // Page title\n \"bypassHelmet\":
|
|
false // Disable Helmet security checks\n },\n \"forceSSH\": false, // Force
|
|
sshing to local machine over login if running as root\n \"command\": \"login\",
|
|
// Command to run on server. Login will use ssh if connecting to different server\n}\n"
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: wetty-key-copy
|
|
#name: {{ .Values.config.configMapName }}
|
|
labels:
|
|
{{- include "wetty.labels" . | nindent 4 }}
|
|
data:
|
|
key-copy.sh: |
|
|
#/bin/sh
|
|
## Script to copy shared keys into correct location
|
|
cd /src
|
|
cp id_ecdsa .ssh/
|
|
cp id_ecdsa.pub .ssh/
|
|
chmod 400 .ssh/*
|
|
chmod 700 .ssh
|
|
chown -R 1001:1001 .ssh
|