Skip to content

Commit

Permalink
Merge pull request #5 from tellery/anonymous_mode
Browse files Browse the repository at this point in the history
chore: add anonymous mode
  • Loading branch information
domechn authored Jul 30, 2021
2 parents 1ba38ce + c891a83 commit de54f83
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 13 deletions.
4 changes: 2 additions & 2 deletions charts/tellery/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: tellery
type: application
version: 0.0.5
version: 0.0.6
appVersion: 0.6.0-rc1
icon: https://avatars.githubusercontent.com/u/86034719?s=400&v=4
description: A Helm Chart for quickly installing highly available Tellery on Kubernetes
Expand All @@ -15,7 +15,7 @@ annotations:
image: tellery/tellery:0.6.0-rc1
- name: connector
image: tellery/connector:0.6.0-rc1
artifacthub.io/prerelease: "true"
artifacthub.io/prerelease: "false"
artifacthub.io/license: Apache-2.0
artifacthub.io/links: |
- name: Homepage
Expand Down
21 changes: 12 additions & 9 deletions charts/tellery/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,18 +113,21 @@ You can choose `Redis deployed by Helm` by `--set redis.enabled=true` or `Extern

### System Configuration

`system.web.host` is required, setting it, to specify the access domain of Tellery service
`system.web.host` is required, setting it, to specify the access domain of Tellery service.

If your written language is not English, you can modify your search plugin through [this document](https://github.com/tellery/tellery) to get a better search experience.

| Parameter | Description | Default |
| ---------------------- | ---------------------------------------------------------- | ---------------------- |
| system.secretKey | Secret key for encrypt sensitive information into database | pjfJ2Cbe3sv0Gtz32Krr4A |
| system.search.language | Language for full-text search | en |
| system.search.plugin | Pixel plug-in for full-text search | null |
| system.web.port | Web server port | 80 |
| system.web.protocol | Web server protocol | https |
| system.web.host | Web server host | null |
| Parameter | Description | Default |
| ------------------------ | ---------------------------------------------------------- | ---------------------- |
| system.secretKey | Secret key for encrypt sensitive information into database | pjfJ2Cbe3sv0Gtz32Krr4A |
| system.search.language | Language for full-text search | en |
| system.search.plugin | Pixel plug-in for full-text search | null |
| system.web.port | Web server port | 80 |
| system.web.protocol | Web server protocol | https |
| system.web.host | Web server host | null |
| system.anonymous.enabled | Enabling anonymous mode | false |

> If anonymous mode is enabled, the initial user and initial workspace are automatically created.
### Initialization Configuration

Expand Down
3 changes: 3 additions & 0 deletions charts/tellery/templates/configmap-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,6 @@ data:
SERVER_PROTO: {{ .Values.system.web.protocol }}
SERVER_HOST: {{ required "A valid system.web.host required!" .Values.system.web.host }}
SERVER_WEB_PORT: {{ .Values.system.web.port | quote }}
{{- if .Values.system.anonymous.enabled }}
ANONYMOUS: 'true'
{{- end }}
2 changes: 1 addition & 1 deletion charts/tellery/templates/hooks/user-create.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.init.user.create -}}
{{- if or .Values.system.anonymous.enabled .Values.init.user.create -}}
apiVersion: batch/v1
kind: Job
metadata:
Expand Down
2 changes: 1 addition & 1 deletion charts/tellery/templates/hooks/workspace-create.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.init.workspace.create -}}
{{- if or .Values.system.anonymous.enabled .Values.init.workspace.create -}}
apiVersion: batch/v1
kind: Job
metadata:
Expand Down
2 changes: 2 additions & 0 deletions charts/tellery/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ system:
port: 80
protocol: https
# host: tellery.local
anonymous:
enabled: false

profile:
create: false
Expand Down

0 comments on commit de54f83

Please sign in to comment.