diff --git a/forgejo/README.md b/forgejo/README.md index 8914110..a5063b0 100644 --- a/forgejo/README.md +++ b/forgejo/README.md @@ -11,13 +11,14 @@ This deploys the Forgejo git hosting software on Fly.io. 1. Generate, and store securely, you secrets: ```shell fly secrets set \ - "GITEA__security__SECRET_KEY=$(openssl rand -hex 12)" \ - "GITEA__security__INTERNAL_TOKEN=$(openssl rand -hex 12)" + "GITEA__security__SECRET_KEY=$(openssl rand -hex 16)" \ + "GITEA__security__INTERNAL_TOKEN=$(openssl rand -hex 16)" ``` 1. For S3 storage you'll need to add two more secrets: ```shell - fly secrets set "GITEA__storage__MINIO_ACCESS_KEY_ID=[redacted]" - fly secrets set "GITEA__storage__MINIO_SECRET_ACCESS_KEY=[redacted]" + fly secrets set \ + "GITEA__storage__MINIO_ACCESS_KEY_ID=[redacted]" \ + "GITEA__storage__MINIO_SECRET_ACCESS_KEY=[redacted]" ``` 1. Deploy, `fly deploy --remote-only` 1. Setup DNS with your registrar, you must have either CNAME or A/AAAA records @@ -51,7 +52,7 @@ This deploys the Forgejo git hosting software on Fly.io. # Final Step 1. Delete the Docker Engine from your local system. -1. You probably want to scale your remote Daemon: `fly scale vm dedicated-cpu-2x` +1. You probably want to scale your remote Daemon: `fly scale vm shared-cpu-2x` # NOTES: diff --git a/forgejo/fly.toml b/forgejo/fly.toml index 0eb76d8..33d5039 100644 --- a/forgejo/fly.toml +++ b/forgejo/fly.toml @@ -7,6 +7,7 @@ app = "burd-infra-forgejo" primary_region = "sea" kill_signal = "SIGINT" kill_timeout = "5s" +swap_size_mb = 512 [experimental] auto_rollback = true