config.sample.sh 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/bin/sh
  2. #### Configs - edit them to suit your needs!
  3. # Gitea/Codeberg url. e.g. 'https://codeberg.org', 'https://gitea.example.org'
  4. export DRONE_GITEA_SERVER=''
  5. # Get it from Gitea/Codeberg
  6. export DRONE_GITEA_CLIENT_ID=''
  7. # Get it from Gitea/Codeberg
  8. export DRONE_GITEA_CLIENT_SECRET=''
  9. # Shared secret you created with openssl
  10. # Run 'openssl rand -hex 16' to get one
  11. export DRONE_RPC_SECRET=''
  12. # The url you got from pgrok, without "https://", set to 'AUTO' to get automatically (requires pgrok, localtunnel or tunnelto)
  13. export DRONE_SERVER_HOST='AUTO'
  14. # The protocol should be used to access $DRONE_SERVER_HOST. Set to 'http' or 'https'.
  15. export DRONE_SERVER_PROTO='https'
  16. # Your Gitea/Codeberg username
  17. export GITEA_USERNAME=''
  18. #### Tunneling service config
  19. ## Localhost tunneling service to use
  20. # Available values:
  21. # - pgrok
  22. # - localtunnel
  23. # - tunnelto
  24. export TUNNELING_SERVICE='pgrok'
  25. ## Preferred subdomain (some services may not respect this)
  26. # Default value: "`uname -n`-drone"
  27. export TUNNELING_SERVICE_SUBDOMAIN="`uname -n`drone"
  28. ## tunnelto.dev config
  29. # tunnelto.dev API key. Required only if you use tunnelto for tunneling. Otherwise leave as it is.
  30. export TUNNELTO_API_KEY=''
  31. #### Runner related configs
  32. # Change them if you use other domain/subdomain for runner. Otherwise leave them as is.
  33. export DRONE_RPC_PROTO="${DRONE_SERVER_PROTO}"
  34. export DRONE_RPC_HOST="${DRONE_SERVER_HOST}"
  35. #### Docker image names
  36. export DOCKER_MAIN_NAME="local-drone-gitea-main"
  37. export DOCKER_RUNNER_NAME="local-drone-gitea-runner"