You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/modules
wxiaoguang fa0b5b14c2
Make "install page" respect environment config (#25648)
Replace #25580

Fix #19453

The problem was: when users set "GITEA__XXX__YYY" , the "install page"
doesn't respect it.

So, to make the result consistent and avoid surprising end users, now
the "install page" also writes the environment variables to the config
file.

And, to make things clear, there are enough messages on the UI to tell
users what will happen.

There are some necessary/related changes to `environment-to-ini.go`:

* The "--clear" flag is removed and it was incorrectly written there.
The "clear" operation should be done if INSTALL_LOCK=true
* The "--prefix" flag is removed because it's never used, never
documented and it only causes inconsistent behavior.


![image](https://github.com/go-gitea/gitea/assets/2114189/12778ee4-3fb5-4664-a73a-41ebbd77cd5b)
1 year ago
..
actions Fix `ref` for workflows triggered by `pull_request_target` (#25743) 1 year ago
activitypub Update tool dependencies, lock govulncheck and actionlint (#25655) 1 year ago
analyze Implement FSFE REUSE for golang files (#21840) 2 years ago
assetfs Make "install page" respect environment config (#25648) 1 year ago
auth Use a general approach to access custom/static/builtin assets (#24022) 1 year ago
avatar Add unit test for `HashAvatar` (#25662) 1 year ago
base Replace `interface{}` with `any` (#25686) 1 year ago
cache Replace `interface{}` with `any` (#25686) 1 year ago
charset Replace `interface{}` with `any` (#25686) 1 year ago
container Implement FSFE REUSE for golang files (#21840) 2 years ago
context Revert package access change from #23879 (#25707) 1 year ago
csv Refactor locale number (#24134) 1 year ago
doctor Less naked returns (#25713) 1 year ago
emoji Update emoji set to Unicode 15 (#25595) 1 year ago
eventsource Less naked returns (#25713) 1 year ago
generate Implement FSFE REUSE for golang files (#21840) 2 years ago
git Update tool dependencies, lock govulncheck and actionlint (#25655) 1 year ago
gitgraph Add context cache as a request level cache (#22294) 1 year ago
graceful Replace `interface{}` with `any` (#25686) 1 year ago
hcaptcha Consume hcaptcha and pwn deps (#22610) 1 year ago
highlight test_env: hardcode major go version in use (#23464) 1 year ago
hostmatcher Implement FSFE REUSE for golang files (#21840) 2 years ago
html Replace `interface{}` with `any` (#25686) 1 year ago
httpcache Less naked returns (#25713) 1 year ago
httplib Less naked returns (#25713) 1 year ago
indexer Add open/closed field support for issue index (#25708) 1 year ago
issue/template Replace `interface{}` with `any` (#25686) 1 year ago
json Replace `interface{}` with `any` (#25686) 1 year ago
label Make label templates have consistent behavior and priority (#23749) 1 year ago
lfs Rewrite logger system (#24726) 1 year ago
log Fix sub-command log level (#25537) 1 year ago
markup Replace `interface{}` with `any` (#25686) 1 year ago
mcaptcha Implement FSFE REUSE for golang files (#21840) 2 years ago
metrics Use a separate admin page to show global stats, remove `actions` stat (#25062) 1 year ago
migration Replace `interface{}` with `any` (#25686) 1 year ago
mirror Improve queue and logger context (#24924) 1 year ago
nosql Update tool dependencies, lock govulncheck and actionlint (#25655) 1 year ago
notification Add Adopt repository event and handler (#25497) 1 year ago
options Use a general approach to access custom/static/builtin assets (#24022) 1 year ago
packages Replace `interface{}` with `any` (#25686) 1 year ago
paginator Use more specific test methods (#24265) 1 year ago
pprof Implement FSFE REUSE for golang files (#21840) 2 years ago
private Replace `interface{}` with `any` (#25686) 1 year ago
process Less naked returns (#25713) 1 year ago
proxy Use proxy for pull mirror (#22771) 1 year ago
proxyprotocol Implement FSFE REUSE for golang files (#21840) 2 years ago
public Use standard HTTP library to serve files (#24693) 1 year ago
queue Update tool dependencies, lock govulncheck and actionlint (#25655) 1 year ago
recaptcha Implement FSFE REUSE for golang files (#21840) 2 years ago
references Use correct captured group range when parsing cross-reference (#22672) 1 year ago
regexplru Implement FSFE REUSE for golang files (#21840) 2 years ago
repository Fix branch commit message too long problem (#25588) 1 year ago
secret Improve decryption failure message (#24573) 1 year ago
session Replace `interface{}` with `any` (#25686) 1 year ago
setting Make "install page" respect environment config (#25648) 1 year ago
sitemap Fix sitemap (#22272) 2 years ago
ssh Refactor path & config system (#25330) 1 year ago
storage Replace `interface{}` with `any` (#25686) 1 year ago
structs Replace `interface{}` with `any` (#25686) 1 year ago
svg Replace `interface{}` with `any` (#25686) 1 year ago
sync Implement FSFE REUSE for golang files (#21840) 2 years ago
system Implement FSFE REUSE for golang files (#21840) 2 years ago
templates Replace `interface{}` with `any` (#25686) 1 year ago
test Replace `interface{}` with `any` (#25686) 1 year ago
testlogger Replace `interface{}` with `any` (#25686) 1 year ago
timeutil Fix incorrect webhook time and use relative-time to display it (#24477) 1 year ago
translation Replace `interface{}` with `any` (#25686) 1 year ago
turnstile Add new captcha: cloudflare turnstile (#22369) 1 year ago
typesniffer Do not recognize text files as audio (#23355) 1 year ago
updatechecker Implement FSFE REUSE for golang files (#21840) 2 years ago
upload Implement FSFE REUSE for golang files (#21840) 2 years ago
uri Implement FSFE REUSE for golang files (#21840) 2 years ago
user Implement FSFE REUSE for golang files (#21840) 2 years ago
util Less naked returns (#25713) 1 year ago
validation Replace `interface{}` with `any` (#25686) 1 year ago
web Make route middleware/handler mockable (#25766) 1 year ago
webhook New webhook trigger for receiving Pull Request review requests (#24481) 1 year ago