Compare commits

...

2 commits

Author SHA1 Message Date
0ca6e4fc5f
Release: OTS v1.11.0 2023-12-10 13:32:50 +01:00
7c74a7c47c
[client] Fix wrong method when creating secrets
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2023-12-10 13:29:37 +01:00
4 changed files with 37 additions and 24 deletions

View file

@ -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
* New Features

View file

@ -1,24 +1,22 @@
version: '3.8'
version: "3.8"
services:
app:
build:
context: https://github.com/Luzifer/ots.git#v1.8.0
context: https://github.com/Luzifer/ots.git#v1.11.0
restart: always
environment:
# Optional, see "Customization" in README
#CUSTOMIZE: '/etc/ots/customize.yaml'
# See README for details
REDIS_URL: 'redis://redis:6379/0'
REDIS_URL: redis://redis:6379/0
# 168h = 1w
SECRET_EXPIRY: '604800'
SECRET_EXPIRY: "604800"
# "mem" or "redis" (See README)
STORAGE_TYPE: 'redis'
STORAGE_TYPE: redis
depends_on:
- redis
ports:
- 3000:3000
redis:
image: redis:alpine
restart: always

View file

@ -9,7 +9,6 @@ spec:
resources:
requests:
storage: 1Gi
---
apiVersion: apps/v1
kind: Deployment
@ -37,7 +36,7 @@ spec:
claimName: ots-redis
containers:
- name: leader
image: "docker.io/redis:6.2.5-alpine"
image: docker.io/redis:6.2.5-alpine
resources:
requests:
cpu: 100m
@ -45,7 +44,7 @@ spec:
ports:
- containerPort: 6379
volumeMounts:
- mountPath: "/data"
- mountPath: /data
name: redis-storage
livenessProbe:
tcpSocket:
@ -57,7 +56,6 @@ spec:
- redis-cli
- ping
initialDelaySeconds: 5
---
apiVersion: v1
kind: Service
@ -75,19 +73,17 @@ spec:
app: ots-redis
role: leader
tier: backend
---
apiVersion: "v1"
kind: "ConfigMap"
apiVersion: v1
kind: ConfigMap
metadata:
name: "ots-customize"
name: ots-customize
data:
customize.yml: |
appTitle: "My very customized OTS"
disableQRSupport: true
maxAttachmentSizeTotal: 1048576
maxSecretSize: 2097152
---
apiVersion: apps/v1
kind: Deployment
@ -111,17 +107,21 @@ spec:
name: ots-cutomize
containers:
- name: ots
image: "luzifer/ots:v1.10.0"
args: ["--storage-type", "redis", "--customize", "/custom/customize.yml"]
image: luzifer/ots:v1.11.0
args:
- --storage-type
- redis
- --customize
- /custom/customize.yml
env:
- name: REDIS_URL
value: "tcp://ots-redis:6379"
value: tcp://ots-redis:6379
- name: REDIS_KEY
value: "ots"
value: ots
- name: SECRET_EXPIRY
value: "172800"
volumeMounts:
- mountPath: "/custom"
- mountPath: /custom
name: custom
resources:
requests:
@ -134,7 +134,6 @@ spec:
path: /
port: 3000
initialDelaySeconds: 5
---
apiVersion: v1
kind: Service
@ -150,7 +149,6 @@ spec:
selector:
app: ots
tier: frontend
---
apiVersion: networking.k8s.io/v1
kind: Ingress

View file

@ -106,7 +106,7 @@ func Create(instanceURL string, secret Secret, expireIn time.Duration) (string,
}.Encode()
}
req, err := http.NewRequestWithContext(ctx, http.MethodGet, createURL.String(), body)
req, err := http.NewRequestWithContext(ctx, http.MethodPost, createURL.String(), body)
if err != nil {
return "", time.Time{}, fmt.Errorf("creating request: %w", err)
}