redtopia
10/31/2022, 6:23 PMbdw429s
10/31/2022, 6:24 PMredtopia
10/31/2022, 6:24 PMbdw429s
10/31/2022, 6:25 PMbdw429s
10/31/2022, 6:25 PM.cfconfig.json
file to the root of the project so it's just there with the source code. Then we replace any sensitive or env-specific bits with environment variables.redtopia
10/31/2022, 6:27 PMbdw429s
10/31/2022, 6:27 PMredtopia
10/31/2022, 6:27 PMbdw429s
10/31/2022, 6:27 PM.cfconfig.json
file by convention every time the server startsredtopia
10/31/2022, 6:27 PMbdw429s
10/31/2022, 6:28 PMcoldbox create app
in an empty folder if you want to see how we usually set it upbdw429s
10/31/2022, 6:28 PM.cfonfig.json
, .env
, .env.example
, etc)redtopia
10/31/2022, 6:29 PMbdw429s
10/31/2022, 6:29 PMbdw429s
10/31/2022, 6:30 PMcfconfig export .cfconfig.json
and there's your JSON file full of settings.redtopia
10/31/2022, 6:31 PMbdw429s
10/31/2022, 6:31 PM.env
file for you
https://cfconfig.ortusbooks.com/using-the-cli/command-overview/export-settings#json-expansion-replacementsredtopia
10/31/2022, 6:32 PMbdw429s
10/31/2022, 6:32 PMredtopia
10/31/2022, 6:32 PMbdw429s
10/31/2022, 6:32 PMbdw429s
10/31/2022, 6:33 PMif I put them in the server context, is that still isolated from other commandbox embedded server instances?Yes, of course! Every CommandBox server is 100% totally separate from every other server
redtopia
10/31/2022, 6:33 PMbdw429s
10/31/2022, 6:34 PMredtopia
10/31/2022, 6:38 PMredtopia
10/31/2022, 6:44 PMcfconfig export .cfconfig.json
and got an error "we couldn't find your [from] server. Do I need to be in the WEB-INF
folder when I run it?redtopia
10/31/2022, 6:45 PMbdw429s
10/31/2022, 6:53 PMbdw429s
10/31/2022, 6:53 PMredtopia
10/31/2022, 6:54 PMbdw429s
10/31/2022, 6:57 PMredtopia
10/31/2022, 6:57 PMbdw429s
10/31/2022, 6:57 PMredtopia
10/31/2022, 6:58 PMbdw429s
10/31/2022, 6:58 PMbdw429s
10/31/2022, 6:59 PMis there a way to modify tomcat settings?In CommandBox? CommandBox doesn't use Tomcat.
redtopia
10/31/2022, 7:01 PMredtopia
10/31/2022, 7:02 PMbdw429s
10/31/2022, 7:04 PMbdw429s
10/31/2022, 7:05 PMserver.json
as documented here
https://commandbox.ortusbooks.com/embedded-server/configuring-your-server/undertow-options#undertow-optionsredtopia
10/31/2022, 7:06 PMbdw429s
10/31/2022, 7:07 PMMULTIPART_MAX_ENTITY_SIZE
setting which may or may not apply based on your form typebdw429s
10/31/2022, 7:07 PMserver set runwar.undertowOptions.MAX_ENTITY_SIZE=9999
bdw429s
10/31/2022, 7:08 PMbdw429s
10/31/2022, 7:09 PMbdw429s
10/31/2022, 7:19 PMDEFAULT_MAX_ENTITY_SIZE
has this note in the javadocs
We do not have a default upload limitSo you may not need to set anything. I'd test first and see if CommandBox will just work out of the box for you.
bdw429s
10/31/2022, 7:21 PMredtopia
10/31/2022, 7:30 PM