Compare commits
2 commits
391e9a85ce
...
0ca6e4fc5f
Author | SHA1 | Date | |
---|---|---|---|
0ca6e4fc5f | |||
7c74a7c47c |
4 changed files with 37 additions and 24 deletions
17
History.md
17
History.md
|
@ -1,3 +1,20 @@
|
||||||
|
# 1.11.0 / 2023-12-10
|
||||||
|
|
||||||
|
* Improvements
|
||||||
|
* [#148] Make secret optional when files are attached (#150)
|
||||||
|
* [#149] Make attachments stand out more (#152)
|
||||||
|
* [#154] Add debug logging for rejected attachment types & strip meta-info from mime-type (#155)
|
||||||
|
* [#154] Improve UX for rejected / allowed files
|
||||||
|
|
||||||
|
* Bugfixes
|
||||||
|
* [client] Fix wrong method when creating secrets
|
||||||
|
* Fix: Baked in version-string empty in build-local
|
||||||
|
* Update dependencies
|
||||||
|
|
||||||
|
* Translations
|
||||||
|
* Add tool to update translations in PRs
|
||||||
|
* Update Chinese translations (#151) (Thanks @YongJie-Xie)
|
||||||
|
|
||||||
# 1.10.0 / 2023-11-11
|
# 1.10.0 / 2023-11-11
|
||||||
|
|
||||||
* New Features
|
* New Features
|
||||||
|
|
|
@ -1,24 +1,22 @@
|
||||||
version: '3.8'
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
build:
|
build:
|
||||||
context: https://github.com/Luzifer/ots.git#v1.8.0
|
context: https://github.com/Luzifer/ots.git#v1.11.0
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
# Optional, see "Customization" in README
|
# Optional, see "Customization" in README
|
||||||
#CUSTOMIZE: '/etc/ots/customize.yaml'
|
#CUSTOMIZE: '/etc/ots/customize.yaml'
|
||||||
# See README for details
|
# See README for details
|
||||||
REDIS_URL: 'redis://redis:6379/0'
|
REDIS_URL: redis://redis:6379/0
|
||||||
# 168h = 1w
|
# 168h = 1w
|
||||||
SECRET_EXPIRY: '604800'
|
SECRET_EXPIRY: "604800"
|
||||||
# "mem" or "redis" (See README)
|
# "mem" or "redis" (See README)
|
||||||
STORAGE_TYPE: 'redis'
|
STORAGE_TYPE: redis
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- 3000:3000
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis:alpine
|
image: redis:alpine
|
||||||
restart: always
|
restart: always
|
||||||
|
|
|
@ -9,7 +9,6 @@ spec:
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 1Gi
|
storage: 1Gi
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
|
@ -37,7 +36,7 @@ spec:
|
||||||
claimName: ots-redis
|
claimName: ots-redis
|
||||||
containers:
|
containers:
|
||||||
- name: leader
|
- name: leader
|
||||||
image: "docker.io/redis:6.2.5-alpine"
|
image: docker.io/redis:6.2.5-alpine
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
|
@ -45,7 +44,7 @@ spec:
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 6379
|
- containerPort: 6379
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: "/data"
|
- mountPath: /data
|
||||||
name: redis-storage
|
name: redis-storage
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
tcpSocket:
|
tcpSocket:
|
||||||
|
@ -57,7 +56,6 @@ spec:
|
||||||
- redis-cli
|
- redis-cli
|
||||||
- ping
|
- ping
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 5
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
@ -75,19 +73,17 @@ spec:
|
||||||
app: ots-redis
|
app: ots-redis
|
||||||
role: leader
|
role: leader
|
||||||
tier: backend
|
tier: backend
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: "v1"
|
apiVersion: v1
|
||||||
kind: "ConfigMap"
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: "ots-customize"
|
name: ots-customize
|
||||||
data:
|
data:
|
||||||
customize.yml: |
|
customize.yml: |
|
||||||
appTitle: "My very customized OTS"
|
appTitle: "My very customized OTS"
|
||||||
disableQRSupport: true
|
disableQRSupport: true
|
||||||
maxAttachmentSizeTotal: 1048576
|
maxAttachmentSizeTotal: 1048576
|
||||||
maxSecretSize: 2097152
|
maxSecretSize: 2097152
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
|
@ -111,17 +107,21 @@ spec:
|
||||||
name: ots-cutomize
|
name: ots-cutomize
|
||||||
containers:
|
containers:
|
||||||
- name: ots
|
- name: ots
|
||||||
image: "luzifer/ots:v1.10.0"
|
image: luzifer/ots:v1.11.0
|
||||||
args: ["--storage-type", "redis", "--customize", "/custom/customize.yml"]
|
args:
|
||||||
|
- --storage-type
|
||||||
|
- redis
|
||||||
|
- --customize
|
||||||
|
- /custom/customize.yml
|
||||||
env:
|
env:
|
||||||
- name: REDIS_URL
|
- name: REDIS_URL
|
||||||
value: "tcp://ots-redis:6379"
|
value: tcp://ots-redis:6379
|
||||||
- name: REDIS_KEY
|
- name: REDIS_KEY
|
||||||
value: "ots"
|
value: ots
|
||||||
- name: SECRET_EXPIRY
|
- name: SECRET_EXPIRY
|
||||||
value: "172800"
|
value: "172800"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: "/custom"
|
- mountPath: /custom
|
||||||
name: custom
|
name: custom
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
|
@ -134,7 +134,6 @@ spec:
|
||||||
path: /
|
path: /
|
||||||
port: 3000
|
port: 3000
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 5
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
@ -150,7 +149,6 @@ spec:
|
||||||
selector:
|
selector:
|
||||||
app: ots
|
app: ots
|
||||||
tier: frontend
|
tier: frontend
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
|
|
|
@ -106,7 +106,7 @@ func Create(instanceURL string, secret Secret, expireIn time.Duration) (string,
|
||||||
}.Encode()
|
}.Encode()
|
||||||
}
|
}
|
||||||
|
|
||||||
req, err := http.NewRequestWithContext(ctx, http.MethodGet, createURL.String(), body)
|
req, err := http.NewRequestWithContext(ctx, http.MethodPost, createURL.String(), body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", time.Time{}, fmt.Errorf("creating request: %w", err)
|
return "", time.Time{}, fmt.Errorf("creating request: %w", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue