config.sample.sh 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #!/bin/sh
  2. #### Configs - edit them to suit your needs!
  3. ### Repo provider ###
  4. # Available values:
  5. # - gitea (enter this if you use codeberg.org)
  6. # - gogs (enter this if you use notabug.org)
  7. export REPO_PROVIDER=''
  8. ### Repo related ###
  9. ## Repo server
  10. # In case you use Gitea/codeberg.org: 'https://codeberg.org', 'https://gitea.example.org'
  11. # In case you use Gogs/notabug.org: 'https://notabug.org', 'https://gogs.example.org'
  12. export REPO_SERVER=''
  13. # Get it from your account settings.
  14. # Check docs/config.md for details on how to get it.
  15. export REPO_CLIENT_ID=''
  16. # Get it from your account settings.
  17. # Check docs/config.md for details on how to get it.
  18. export REPO_CLIENT_SECRET=''
  19. # Your repo login username
  20. export REPO_USERNAME=''
  21. ### Drone related ###
  22. # Shared secret you created with openssl
  23. # Run 'openssl rand -hex 16' to get one
  24. export DRONE_RPC_SECRET=''
  25. # The url you got from pgrok, without "https://", set to 'AUTO' to get automatically (requires pgrok, localtunnel or tunnelto)
  26. export DRONE_SERVER_HOST='AUTO'
  27. # The protocol should be used to access $DRONE_SERVER_HOST. Set to 'http' or 'https'.
  28. export DRONE_SERVER_PROTO='https'
  29. ### Tunneling service config ###
  30. ## Localhost tunneling service to use
  31. # Available values:
  32. # - pgrok
  33. # - localtunnel
  34. # - tunnelto
  35. export TUNNELING_SERVICE='pgrok'
  36. ## Preferred subdomain (some services may not respect this)
  37. # Default value: "`uname -n`-drone"
  38. export TUNNELING_SERVICE_SUBDOMAIN="`uname -n`drone"
  39. ## tunnelto.dev config
  40. # tunnelto.dev API key. Required only if you use tunnelto for tunneling. Otherwise leave as it is.
  41. export TUNNELTO_API_KEY=''
  42. #### Runner related configs
  43. # Change them if you use other domain/subdomain for runner. Otherwise leave them as is.
  44. export DRONE_RPC_PROTO="${DRONE_SERVER_PROTO}"
  45. export DRONE_RPC_HOST="${DRONE_SERVER_HOST}"
  46. #### Docker image names
  47. export DOCKER_MAIN_NAME="local-droney-main"
  48. export DOCKER_RUNNER_NAME="local-droney-runner"