Running Kong gateway on fly.io

Fly used to have a docs page to run Kong Gateway but that’s gone for some reason.
I recently started running Kong on Fly again and I thought a “How-to” doc may helpful to others as well.
Here is the document: GitHub - hbagdi/fly-kong: Deploy Kong to fly.io using Kong Konnect. Happy to answer questions if anyone is interested.

Oh nice, this is great! We removed our page because we couldn’t keep it updated.

Im trying to set up Kong using the fly-kong project above and couldn’t get it working @hbagdi . I triple checked my cert and key and verified that the secrets and env variables were set correctly; also updated the settings to point to my own instance of the Kong controlplane. Any ideas? Looks like it’s erroring when trying to read the pem file.

2023-03-21T21:14:31.200 app[286ea52f] sjc [info] running kong's docker-entrypoint.sh...

2023-03-21T21:14:32.900 app[286ea52f] sjc [info] 2023/03/21 21:14:32 [notice] 528#0: [lua] license_helpers.lua:123: read_license_info(): [license-helpers] could not decode license JSON: No license found

2023-03-21T21:14:32.900 app[286ea52f] sjc [info] 2023/03/21 21:14:32 [notice] 528#0: [lua] license_helpers.lua:123: read_license_info(): [license-helpers] could not decode license JSON: No license found

2023-03-21T21:14:32.904 app[286ea52f] sjc [info] 2023/03/21 21:14:32 [error] 528#0: init_by_lua error: /usr/local/share/lua/5.1/kong/clustering/init.lua:168: PEM_read_bio_X509_AUX() failed

2023-03-21T21:14:32.904 app[286ea52f] sjc [info] stack traceback:

2023-03-21T21:14:32.904 app[286ea52f] sjc [info] [C]: in function 'assert'

2023-03-21T21:14:32.904 app[286ea52f] sjc [info] /usr/local/share/lua/5.1/kong/clustering/init.lua:168: in function 'new'

2023-03-21T21:14:32.904 app[286ea52f] sjc [info] /usr/local/share/lua/5.1/kong/init.lua:614: in function 'init'

2023-03-21T21:14:32.904 app[286ea52f] sjc [info] init_by_lua:3: in main chunk

2023-03-21T21:14:32.904 app[286ea52f] sjc [info] nginx: [error] init_by_lua error: /usr/local/share/lua/5.1/kong/clustering/init.lua:168: PEM_read_bio_X509_AUX() failed

2023-03-21T21:14:32.904 app[286ea52f] sjc [info] stack traceback:

2023-03-21T21:14:32.904 app[286ea52f] sjc [info] [C]: in function 'assert'

2023-03-21T21:14:32.904 app[286ea52f] sjc [info] /usr/local/share/lua/5.1/kong/clustering/init.lua:168: in function 'new'

2023-03-21T21:14:32.904 app[286ea52f] sjc [info] /usr/local/share/lua/5.1/kong/init.lua:614: in function 'init'

2023-03-21T21:14:32.904 app[286ea52f] sjc [info] init_by_lua:3: in main chunk

2023-03-21T21:14:33.193 app[286ea52f] sjc [info] Starting clean up.