forgejo/modules
wxiaoguang b4460cf541
Make "install page" respect environment config (#25648) (#25799)
Backport #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.

The only conflict during backport is "ui divider" in
templates/install.tmpl
2023-07-10 11:51:05 +00:00
..
actions Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
activitypub
analyze
assetfs Make "install page" respect environment config (#25648) (#25799) 2023-07-10 11:51:05 +00:00
auth
avatar Improve avatar uploading / resizing / compressing, remove Fomantic card module (#24653) 2023-05-13 20:59:11 +02:00
base Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
cache Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
charset Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
container
context Revert package access change from #23879 (#25707) (#25785) 2023-07-09 21:00:42 +00:00
csv
doctor Refactor path & config system (#25330) (#25416) 2023-06-22 16:27:18 +00:00
emoji
eventsource Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
generate
git Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
gitgraph
graceful Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
hcaptcha
highlight
hostmatcher
html Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
httpcache Use standard HTTP library to serve files (#24693) 2023-05-13 16:04:57 +02:00
httplib Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
indexer Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
issue/template Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
json Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
label
lfs Rewrite logger system (#24726) 2023-05-21 22:35:11 +00:00
log Fix sub-command log level (#25537) (#25553) 2023-06-28 17:35:20 +08:00
markup Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
mcaptcha
metrics Use a separate admin page to show global stats, remove actions stat (#25062) 2023-06-03 22:03:41 +08:00
migration Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
mirror Improve queue and logger context (#24924) 2023-05-26 07:31:55 +00:00
nosql Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
notification Add Adopt repository event and handler (#25497) (#25518) 2023-06-26 20:09:07 +00:00
options
packages Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
paginator
pprof
private Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
process Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
proxy
proxyprotocol
public Use standard HTTP library to serve files (#24693) 2023-05-13 16:04:57 +02:00
queue Help to recover from corrupted levelqueue (#24912) 2023-05-29 10:52:32 +08:00
recaptcha
references
regexplru
repository Remove stars when repo goes private (#19904) 2023-06-05 13:25:43 +00:00
secret
session Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
setting Make "install page" respect environment config (#25648) (#25799) 2023-07-10 11:51:05 +00:00
sitemap
ssh Fix incorrect config argument position for builtin SSH server (#25341) 2023-06-18 16:56:21 +00:00
storage Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
structs Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
svg Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
sync
system
templates Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
test Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
testlogger Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
timeutil
translation Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
turnstile
typesniffer
updatechecker
upload
uri
user
util Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
validation Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
web Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
webhook New webhook trigger for receiving Pull Request review requests (#24481) 2023-05-24 22:06:27 -04:00