faustinoaq changed the topic of #amber to: Welcome to Amber Framework community! | https://amberframework.org | Developer happiness, productivity and bare metal performance | GH: https://github.com/amberframework | Docs: https://docs.amberframework.org | Gitter: https://gitter.im/amberframework/amber | IRC Logger: https://irclog.whitequark.org/amber | Amber::Server.start
<FromGitter> <sam0x17> does the production encryption key get baked into the binary or do I have to include it in the same directory as the binary when I deploy?
<FromGitter> <sam0x17> (using static compilation)
<FromGitter> <damianham> You have to include it in the deployment but in the root folder of the application not in the bin folder where the binary is located.
<FromGitter> <sam0x17> strangely, even though I have AMBER_ENCRYPTION_KEY set it's not using production settings
<FromGitter> <sam0x17> AHA!!!
<FromGitter> <sam0x17> apparently `config/environments/.production.enc` has to be present as well (I assumed that file was getting baked in)
<FromGitter> <sam0x17> also found this handy for baking the encryption key into the binary at the top of `application.cr` ⏎ ⏎ ```code paste, see link``` [https://gitter.im/amberframework/amber?at=5e8702fdd8c05b5c4924e09e]
<FromGitter> <sam0x17> then just specify `-Dproduction` when building
<FromGitter> <sam0x17> can someone give an example of whitelisting some specific origins using the CORS pipeline? It seems to be broken or I don't understand how to initialize it
<FromGitter> <sam0x17> in particular, an origin like `*.domain.com`
feepbot has quit [Ping timeout: 265 seconds]
feepbot has joined #amber
feepbot has quit [Ping timeout: 250 seconds]
feepbot has joined #amber
feepbot has quit [Ping timeout: 265 seconds]
feepbot has joined #amber
feepbot has quit [Ping timeout: 260 seconds]
feepbot has joined #amber