Get transfersh working with s3 backend

This commit is contained in:
SeanOMik 2023-04-25 20:07:10 -04:00
parent fbb7996029
commit 16b9ae4663
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
4 changed files with 19 additions and 21 deletions

View File

@ -85,9 +85,16 @@ spec:
pathType: Prefix pathType: Prefix
service: service:
port: *api-port port: *api-port
- host: &api-host-wildcard "*.s3.${SECRET_NEW_DOMAIN}"
paths:
- path: /
pathType: Prefix
service:
port: *api-port
tls: tls:
- hosts: - hosts:
- *api-host - *api-host
- *api-host-wildcard
secretName: wildcard-main-tls secretName: wildcard-main-tls
podSecurityContext: podSecurityContext:

View File

@ -21,10 +21,7 @@ spec:
args: args:
- --provider - --provider
- local - s3
- --basedir
- /storage/
- --temp-path - --temp-path
- /tmp/ - /tmp/
@ -32,9 +29,9 @@ spec:
- --max-upload-size - --max-upload-size
- "10000000" - "10000000"
# envFrom: envFrom:
# - secretRef: - secretRef:
# name: transfersh-s3-bucket-secrets name: transfersh-s3-bucket-secrets
service: service:
main: main:
@ -62,14 +59,6 @@ spec:
- *host - *host
secretName: wildcard-main-tls secretName: wildcard-main-tls
persistence:
storage:
enabled: true
type: pvc
accessMode: ReadWriteOnce
size: 40Gi
mountPath: /storage
resources: resources:
requests: requests:
cpu: 1m cpu: 1m

View File

@ -4,18 +4,19 @@ metadata:
name: transfersh-s3-bucket-secrets name: transfersh-s3-bucket-secrets
namespace: tools namespace: tools
stringData: stringData:
S3_ENDPOINT: ENC[AES256_GCM,data:6lDjOezV7V2J+bt68Rt8K08RLhHS2DIcMCc=,iv:FgZedw8vja/th4rwNm/dSIX/7o+1kUbOdAZzO56o3Gk=,tag:tW6gRLCmY53V4WYfh0KMMg==,type:str] S3_ENDPOINT: ENC[AES256_GCM,data:CwabeOncztxmIVfGMxcJpALl9N0hDDhMqO8=,iv:loX8hNOOR/Tc2LIqzCo2VHSUQL/XR7kVkGmrV1Yl0MU=,tag:3/JVpQ4qJB8IbOqKdYpJSw==,type:str]
AWS_ACCESS_KEY: ENC[AES256_GCM,data:e3GhNv50ybh9Ls1FSjKQWA==,iv:idI8r4s10Ux9Vv3JWDX7QiNWQRgJl1PwevWhAKCwbII=,tag:Z417z7ZcQE7QKXTkStcwLA==,type:str] AWS_ACCESS_KEY: ENC[AES256_GCM,data:aNsgIdH0UXaCBbv27n5ggg==,iv:M4OgCXxAwlfxqgDsUVxSIxFIm7TDqzAquGJPKwMAECA=,tag:PLpc14MqoSKeWjQHyhdzKw==,type:str]
AWS_SECRET_KEY: ENC[AES256_GCM,data:oyFs0Nf7paRsJwD0xDeveuw3ATBi6+tjhZwZLCwiRSA=,iv:LawbdorbaIkkH95CMr2iEPkuFuY4kkLYcWfuyQJwEDY=,tag:XQcOq32Dd1rjFT3zR9ftew==,type:str] AWS_SECRET_KEY: ENC[AES256_GCM,data:Tj/Esk/IX/0zJGPFCLbIHTBsTnorttnhxEEZfNeW02g=,iv:IxVRKUHSAOxyAVqPYu1Tl9R3wpX0tWrO9q5yvmfFHe4=,tag:ysKmqnOvf2IYlgIrFqZ4XQ==,type:str]
BUCKET: ENC[AES256_GCM,data:3QoiSskImQEilA==,iv:kmNrSWfCm+2rW0HOVM51xCIZk9nD4vIQMSZMiBp/WTQ=,tag:gjy63D+VHvILIaxyEarrUA==,type:str] BUCKET: ENC[AES256_GCM,data:3QoiSskImQEilA==,iv:kmNrSWfCm+2rW0HOVM51xCIZk9nD4vIQMSZMiBp/WTQ=,tag:gjy63D+VHvILIaxyEarrUA==,type:str]
S3_PATH_STYLE: ENC[AES256_GCM,data:uAwTlw==,iv:YuJRcRipGnP34TUGdPvl1T9Uv+PCreaq5sOH1/JqOKU=,tag:PGhVTHdD9p7Yh5iRBYBt0Q==,type:str]
sops: sops:
kms: [] kms: []
gcp_kms: [] gcp_kms: []
azure_kv: [] azure_kv: []
hc_vault: [] hc_vault: []
age: [] age: []
lastmodified: "2023-04-15T03:22:41Z" lastmodified: "2023-04-25T23:32:00Z"
mac: ENC[AES256_GCM,data:El/gwIiCSD1Nuw+VVO8fAIGdOIKczhubYZYMbMjHEKjAGSRSn5shk7PGk1caqaeL3tX66EK6SWNpw5rcY74Cuo7C7brDjYR7hRELjHAD+vRdSFIQEI9tWVed2QWyUi7XsEuCv+b980QeG3wSY8BS3VOjRM6NuSw+t6V9DBJ+QYs=,iv:kygRBGm3o/lKsrYPg5/CSOlEnxCQ39x4kL8PcNXxOnY=,tag:MjPQwVmn+FYWuBjifmcaFw==,type:str] mac: ENC[AES256_GCM,data:gYyPWXQyPUBmBR6za2M1W3M2B7U/6ZkfSqaOXWrxd9hEGFqYgCoFzuhpmY+OCq3XMgqk8rWjLEzR73NYYC/oNFysAWBG8g6yqDMOXhFcaZC5DVFAVpptMcE4XJsl8qbkAWQg4SXzvZoWj1ybiiBJHl7cUJUITfiGqQoT0R/6fzU=,iv:ycb7OwIIMQglDL/aZFQm9sLRd0TQgQPe4SvmyxTntPg=,tag:2Db2Nn/Na1aFzrRXHYbClw==,type:str]
pgp: pgp:
- created_at: "2023-04-07T01:57:22Z" - created_at: "2023-04-07T01:57:22Z"
enc: | enc: |

View File

@ -20,4 +20,5 @@ spec:
dnsNames: dnsNames:
- "*.${SECRET_NEW_DOMAIN}" - "*.${SECRET_NEW_DOMAIN}"
- "*.k3s.${SECRET_NEW_DOMAIN}" - "*.k3s.${SECRET_NEW_DOMAIN}"
- "*.database.${SECRET_NEW_DOMAIN}" - "*.database.${SECRET_NEW_DOMAIN}"
- "*.s3.${SECRET_NEW_DOMAIN}"