Skip to content

Commit 1786b5b

Browse files
update linkding
1 parent 6851cba commit 1786b5b

File tree

4 files changed

+8
-42
lines changed

4 files changed

+8
-42
lines changed

apps/linkding/components/oidc/kustomization.yaml

Lines changed: 2 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -4,42 +4,5 @@ kind: Component
44
configMapGenerator:
55
- name: linkding
66
behavior: merge
7-
envs:
8-
- linkding.properties
9-
- name: oauth2-proxy
10-
behavior: merge
11-
envs:
12-
- oauth2-proxy.properties
13-
patches:
14-
- target:
15-
kind: "Deployment"
16-
name: "linkding"
17-
path: "oauth2-proxy.yaml"
18-
- target:
19-
kind: "Service"
20-
name: "linkding"
21-
patch: |
22-
- op: "replace"
23-
path: "/spec/ports/0/targetPort"
24-
value: "oauth2-proxy"
25-
- target:
26-
kind: "Deployment"
27-
name: "oauth2-proxy"
28-
patch: |-
29-
- op: add
30-
path: /spec/template/spec/containers/0/env
31-
value:
32-
- name: LD_SUPERUSER_NAME
33-
valueFrom:
34-
secretKeyRef:
35-
name: "linkding"
36-
key: "LD_SUPERUSER_NAME"
37-
- target:
38-
kind: "NetworkPolicy"
39-
name: "linkding"
40-
patch: |-
41-
- op: replace
42-
path: "/spec/ingress/0/ports"
43-
value:
44-
- protocol: "TCP"
45-
port: "oauth2-proxy"
7+
literals:
8+
- LD_ENABLE_OIDC=True

apps/linkding/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ spec:
8282
envFrom:
8383
- configMapRef:
8484
name: "linkding"
85+
- secretRef:
86+
name: "linkding"
87+
optional: true
8588
topologySpreadConstraints:
8689
- maxSkew: 1
8790
topologyKey: location

apps/linkding/linkding.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
LD_HOST_DATA_DIR=/data/linkding
1+
LD_HOST_DATA_DIR=/data/linkding
2+
LD_FAVICON_PROVIDER=https://icons.duckduckgo.com/ip3/{domain}.ico
3+
LD_DISABLE_REQUEST_LOGS=true

apps/linkding/networkpolicy.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,3 @@ spec:
2626
- to:
2727
- ipBlock:
2828
cidr: "0.0.0.0/0"
29-
except:
30-
- "192.168.0.0/16"

0 commit comments

Comments
 (0)