Skip to content

Commit 5a4bf98

Browse files
committed
improve transfersh deployment
1 parent 5189613 commit 5a4bf98

File tree

3 files changed

+23
-22
lines changed

3 files changed

+23
-22
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,11 @@ fastlane/report.xml
6969

7070
app/CMakeUserPresets.json
7171

72-
infra/scw-transfer/terraform.tfvars
73-
7472
venv/
7573

7674
infra/scw-transfer/.terraform/
7775
infra/scw-transfer/.terraform.lock.hcl
76+
infra/scw-transfer/secret.auto.tfvars
7877

7978
# Terraform state files
8079
*.tfstate
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copy to secret.auto.tfvars (gitignored) and fill with live credentials or use SCW_* env vars instead.
2+
3+
project_id = "00000000-0000-0000-0000-000000000000"
4+
access_key = "SCWXXXXXXXXXXXXXXXXX"
5+
secret_key = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

infra/scw-transfer/terraform.tfvars

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,24 @@
1-
# Scaleway credentials and deployment settings for transfer.sh
2-
# Fill in the project ID and adjust names/limits as needed.
1+
# Deployment settings for transfer.sh (non-secret values).
2+
# Put project_id/access_key/secret_key in infra/scw-transfer/secret.auto.tfvars (gitignored) or set SCW_* env vars.
33

4-
project_id = "xxxx"
5-
access_key = "xxxx" # or leave unset to use SCW_ACCESS_KEY env var
6-
secret_key = "xxxx" # or leave unset to use SCW_SECRET_KEY env var
7-
region = "nl-ams"
8-
zone = "nl-ams-1"
4+
region = "nl-ams"
5+
zone = "nl-ams-1"
96

10-
namespace_name = "transfer-sh"
11-
container_name = "transfer-sh"
7+
namespace_name = "transfer-sh"
8+
container_name = "transfer-sh"
129

13-
registry_image = "rg.nl-ams.scw.cloud/funcscwtransfershxuil1jyq/transfer-sh:v1.6.1"
10+
registry_image = "rg.nl-ams.scw.cloud/funcscwtransfershxuil1jyq/transfer-sh:v1.6.1"
1411

15-
purge_days = 1
16-
purge_interval_hours = 1
17-
max_upload_size = 51200
18-
storage_dir = "/data"
19-
port = 8080
20-
cpu_limit_millicpu = 350
21-
memory_limit_mb = 512
22-
min_scale = 1
23-
max_scale = 1
24-
healthcheck_path = "/"
12+
purge_days = 1
13+
purge_interval_hours = 1
14+
max_upload_size = 51200
15+
storage_dir = "/data"
16+
port = 8080
17+
cpu_limit_millicpu = 350
18+
memory_limit_mb = 512
19+
min_scale = 1
20+
max_scale = 1
21+
healthcheck_path = "/"
2522

2623
environment_variables = {
2724
TMPDIR = "/data"

0 commit comments

Comments
 (0)