copyparty.yaml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. ---
  2. apiVersion: apps/v1
  3. kind: Deployment
  4. metadata:
  5. name: copyparty
  6. namespace: copyparty
  7. spec:
  8. strategy:
  9. type: Recreate
  10. selector:
  11. matchLabels:
  12. app: copyparty
  13. replicas: 1
  14. template:
  15. metadata:
  16. labels:
  17. app: copyparty
  18. annotations:
  19. backup.velero.io/backup-volumes-excludes: copyparty
  20. spec:
  21. containers:
  22. - name: copyparty
  23. image: copyparty/ac:latest
  24. imagePullPolicy: Always
  25. ports:
  26. - containerPort: 3923
  27. name: http-web-svc
  28. volumeMounts:
  29. - mountPath: "/w"
  30. name: copyparty
  31. - name: accounts
  32. mountPath: /cfg/accounts.conf
  33. subPath: accounts.conf
  34. - name: config-default
  35. mountPath: /cfg/default.conf
  36. subPath: default.conf
  37. resources:
  38. requests:
  39. memory: "0"
  40. limits:
  41. memory: "1Gi"
  42. volumes:
  43. - name: copyparty
  44. persistentVolumeClaim:
  45. claimName: copyparty-pvc
  46. - name: config-default
  47. configMap:
  48. name: copyparty-config
  49. configMap:
  50. items:
  51. - key: default.conf
  52. path: default.conf
  53. - name: accounts
  54. secret:
  55. secretName: copyparty-accounts
  56. ---
  57. apiVersion: v1
  58. kind: ConfigMap
  59. metadata:
  60. name: copyparty-config
  61. namespace: copyparty
  62. data:
  63. default.conf: |
  64. [global]
  65. p: 3923
  66. e2dsa # enable file indexing and filesystem scanning
  67. e2ts # and enable multimedia indexing
  68. name: copyparty.jibby.org
  69. qr
  70. qrs # HTTPS QR code
  71. qri: copyparty.jibby.org
  72. xff-src: lan
  73. rproxy: -1
  74. dav-auth
  75. usernames
  76. # create volumes:
  77. [/pub]
  78. /w/pub
  79. accs:
  80. r: *
  81. A: josh
  82. flags:
  83. og
  84. #og_ua: '(Discord|Twitter|Slack)bot' # doesn't work w/ signal
  85. [/priv]
  86. /w/priv
  87. accs:
  88. A: josh
  89. [/priv/Archive/Signal]
  90. /w/priv/Archive/Signal
  91. accs:
  92. A: josh
  93. flags:
  94. e2ds
  95. lifetime: 604800 # 1wk
  96. daw
  97. nohash: .*
  98. [/priv/Archive/SMS]
  99. /w/priv/Archive/SMS
  100. accs:
  101. A: josh
  102. flags:
  103. lifetime: 7257600 # 3mo
  104. daw
  105. [/writes]
  106. /w/writes
  107. accs:
  108. w: *
  109. A: josh
  110. flags:
  111. lifetime: 604800 # 1wk
  112. xz: 0
  113. ---
  114. apiVersion: v1
  115. kind: Service
  116. metadata:
  117. name: copyparty-service
  118. namespace: copyparty
  119. spec:
  120. selector:
  121. app: copyparty
  122. type: ClusterIP
  123. ports:
  124. - name: copyparty-web-port
  125. protocol: TCP
  126. port: 3923
  127. targetPort: http-web-svc
  128. ---
  129. apiVersion: networking.k8s.io/v1
  130. kind: Ingress
  131. metadata:
  132. name: copyparty
  133. namespace: copyparty
  134. annotations:
  135. traefik.ingress.kubernetes.io/router.entrypoints: websecure
  136. spec:
  137. rules:
  138. - host: copyparty.jibby.org
  139. http:
  140. paths:
  141. - path: /
  142. pathType: Prefix
  143. backend:
  144. service:
  145. name: copyparty-service
  146. port:
  147. number: 3923
  148. ---
  149. apiVersion: external-secrets.io/v1
  150. kind: ExternalSecret
  151. metadata:
  152. name: copyparty-accounts
  153. namespace: copyparty
  154. spec:
  155. target:
  156. name: copyparty-accounts
  157. deletionPolicy: Delete
  158. template:
  159. type: Opaque
  160. data:
  161. accounts.conf: |-
  162. {{ .accounts }}
  163. data:
  164. - secretKey: accounts
  165. sourceRef:
  166. storeRef:
  167. name: bitwarden-notes
  168. kind: ClusterSecretStore
  169. remoteRef:
  170. key: f740005f-bcca-4e69-88e9-b3f701333650