woodpecker/server/model
Marian Steinbach 17b8867b96
Clean up config environment variables for server and agent (#218)
The goal here is to make consistent use of configuration environment variables prefixed `WOODPECKER_`. Where several variants existed, this PR aims to remove all but one option, leaving the most explicit.

This PR only changes server and agent code, but not documentation, in order to keep the PR digestible. Once we have consensus that this is correct, I'll change docs accordingly.

User (rather: admin) facing changes in this PR:

- In general, support for all server and agent config environment variables (env vars) starting with `DRONE_` is removed. The according `WOODPECKER_*` variables must be used instead.
- The env var `WOODPECKER_HOST` replaces `DRONE_HOST`, and `DRONE_SERVER_HOST`.
- The env var `WOODPECKER_AGENT_SECRET` is used to configure the shared secret which agents use to authenticate against the server. It replaces `WOODPECKER_SECRET`, `DRONE_SECRET`, `WOODPECKER_PASSWORD`, `DRONE_PASSWORD`, and `DRONE_AGENT_SECRET`.
- The env var `WOODPECKER_DATABASE_DRIVER` replaces `DRONE_DATABASE_DRIVER` and `DATABASE_DRIVER`.
- The env var `WOODPECKER_DATABASE_DATASOURCE` replaces `DRONE_DATABASE_DATASOURCE` and `DATABASE_CONFIG`.
2021-09-28 15:43:44 +02:00
..
build.go Refactor: move model/ to server/model/ (#366) 2021-09-27 19:51:55 +02:00
build_test.go Refactor: move model/ to server/model/ (#366) 2021-09-27 19:51:55 +02:00
cc.go Refactor: move model/ to server/model/ (#366) 2021-09-27 19:51:55 +02:00
cc_test.go Refactor: move model/ to server/model/ (#366) 2021-09-27 19:51:55 +02:00
config.go Refactor: move model/ to server/model/ (#366) 2021-09-27 19:51:55 +02:00
const.go Extend Logging & Report to WebHook Caller back if pulls are disabled (#369) 2021-09-27 23:32:08 +02:00
environ.go Refactor: move model/ to server/model/ (#366) 2021-09-27 19:51:55 +02:00
event.go Refactor: move model/ to server/model/ (#366) 2021-09-27 19:51:55 +02:00
feed.go Refactor: move model/ to server/model/ (#366) 2021-09-27 19:51:55 +02:00
file.go Refactor: move model/ to server/model/ (#366) 2021-09-27 19:51:55 +02:00
netrc.go Refactor: move model/ to server/model/ (#366) 2021-09-27 19:51:55 +02:00
perm.go Refactor: move model/ to server/model/ (#366) 2021-09-27 19:51:55 +02:00
proc.go Refactor: move model/ to server/model/ (#366) 2021-09-27 19:51:55 +02:00
queue.go Refactor: move model/ to server/model/ (#366) 2021-09-27 19:51:55 +02:00
registry.go Refactor: move model/ to server/model/ (#366) 2021-09-27 19:51:55 +02:00
repo.go Extend Logging & Report to WebHook Caller back if pulls are disabled (#369) 2021-09-27 23:32:08 +02:00
resource_limit.go Refactor: move model/ to server/model/ (#366) 2021-09-27 19:51:55 +02:00
secret.go Refactor: move model/ to server/model/ (#366) 2021-09-27 19:51:55 +02:00
secret_test.go Refactor: move model/ to server/model/ (#366) 2021-09-27 19:51:55 +02:00
sender.go Refactor: move model/ to server/model/ (#366) 2021-09-27 19:51:55 +02:00
settings.go Refactor: move model/ to server/model/ (#366) 2021-09-27 19:51:55 +02:00
team.go Refactor: move model/ to server/model/ (#366) 2021-09-27 19:51:55 +02:00
user.go Clean up config environment variables for server and agent (#218) 2021-09-28 15:43:44 +02:00
user_test.go Refactor: move model/ to server/model/ (#366) 2021-09-27 19:51:55 +02:00