@geekmidas/cli 10.0.0-alpha.179 → 10.0.0-alpha.180
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{EndpointGenerator-DMq6ameY.mjs → EndpointGenerator-CBKH87_b.mjs} +3 -3
- package/dist/{EndpointGenerator-DMq6ameY.mjs.map → EndpointGenerator-CBKH87_b.mjs.map} +1 -1
- package/dist/{EndpointGenerator-yx7_SoXT.cjs → EndpointGenerator-iyA3HkOH.cjs} +3 -3
- package/dist/{EndpointGenerator-yx7_SoXT.cjs.map → EndpointGenerator-iyA3HkOH.cjs.map} +1 -1
- package/dist/{LegacyStateStore-BzUlIHvz.mjs → LegacyStateStore-B7pQA25B.mjs} +2 -2
- package/dist/{LegacyStateStore-BzUlIHvz.mjs.map → LegacyStateStore-B7pQA25B.mjs.map} +1 -1
- package/dist/{LegacyStateStore-C7FFaVce.cjs → LegacyStateStore-l0hBdv-E.cjs} +2 -2
- package/dist/{LegacyStateStore-C7FFaVce.cjs.map → LegacyStateStore-l0hBdv-E.cjs.map} +1 -1
- package/dist/{LocalStateStore-BvI8RUtS.mjs → LocalStateStore-CP0UHL85.mjs} +2 -2
- package/dist/{LocalStateStore-BvI8RUtS.mjs.map → LocalStateStore-CP0UHL85.mjs.map} +1 -1
- package/dist/{LocalStateStore-BJQvLCrg.cjs → LocalStateStore-DEE0Kc_s.cjs} +2 -2
- package/dist/{LocalStateStore-BJQvLCrg.cjs.map → LocalStateStore-DEE0Kc_s.cjs.map} +1 -1
- package/dist/{OpenApiTsGenerator-C_JqxkWt.mjs → OpenApiTsGenerator-CoVA3Ykv.mjs} +2 -2
- package/dist/{OpenApiTsGenerator-C_JqxkWt.mjs.map → OpenApiTsGenerator-CoVA3Ykv.mjs.map} +1 -1
- package/dist/{OpenApiTsGenerator-gM70-7qw.cjs → OpenApiTsGenerator-vy-fOJgs.cjs} +2 -2
- package/dist/{OpenApiTsGenerator-gM70-7qw.cjs.map → OpenApiTsGenerator-vy-fOJgs.cjs.map} +1 -1
- package/dist/{S3StateStore-C1ZX1w5v.cjs → S3StateStore-DE0BNuXc.cjs} +4 -4
- package/dist/{S3StateStore-C1ZX1w5v.cjs.map → S3StateStore-DE0BNuXc.cjs.map} +1 -1
- package/dist/{S3StateStore-DYQSxiVw.mjs → S3StateStore-vmxZWMKh.mjs} +4 -4
- package/dist/{S3StateStore-DYQSxiVw.mjs.map → S3StateStore-vmxZWMKh.mjs.map} +1 -1
- package/dist/{SSMStateStore-DWQk17j8.mjs → SSMStateStore-DQyXnX2M.mjs} +2 -2
- package/dist/{SSMStateStore-DWQk17j8.mjs.map → SSMStateStore-DQyXnX2M.mjs.map} +1 -1
- package/dist/{SSMStateStore-tXnZSJxP.cjs → SSMStateStore-p4hBdTg3.cjs} +2 -2
- package/dist/{SSMStateStore-tXnZSJxP.cjs.map → SSMStateStore-p4hBdTg3.cjs.map} +1 -1
- package/dist/{SubscriberGenerator-NxcLNeDJ.mjs → SubscriberGenerator-B3jHf26s.mjs} +4 -4
- package/dist/{SubscriberGenerator-NxcLNeDJ.mjs.map → SubscriberGenerator-B3jHf26s.mjs.map} +1 -1
- package/dist/{SubscriberGenerator-DXh1Touk.cjs → SubscriberGenerator-JhwVlWBS.cjs} +4 -4
- package/dist/{SubscriberGenerator-DXh1Touk.cjs.map → SubscriberGenerator-JhwVlWBS.cjs.map} +1 -1
- package/dist/{add-D6GloVNz.cjs → add-DEdpKya-.cjs} +8 -8
- package/dist/{add-D6GloVNz.cjs.map → add-DEdpKya-.cjs.map} +1 -1
- package/dist/{add-nJBUo4fT.mjs → add-QBvDmVA-.mjs} +8 -8
- package/dist/{add-nJBUo4fT.mjs.map → add-QBvDmVA-.mjs.map} +1 -1
- package/dist/{apps-GDmO_v7v.mjs → apps-D0LULFmU.mjs} +15 -361
- package/dist/apps-D0LULFmU.mjs.map +1 -0
- package/dist/{apps-DPw1i9E7.cjs → apps-qJ5FPJGQ.cjs} +12 -389
- package/dist/apps-qJ5FPJGQ.cjs.map +1 -0
- package/dist/{aws-DKC2m3sT.cjs → aws-BXfiWNbi.cjs} +2 -2
- package/dist/{aws-DKC2m3sT.cjs.map → aws-BXfiWNbi.cjs.map} +1 -1
- package/dist/{aws-C5LAU_Ii.mjs → aws-BjvSTTcE.mjs} +2 -2
- package/dist/{aws-C5LAU_Ii.mjs.map → aws-BjvSTTcE.mjs.map} +1 -1
- package/dist/{awsStore-Bx5nCFnS.mjs → awsStore-BYYCmXiq.mjs} +2 -2
- package/dist/{awsStore-Bx5nCFnS.mjs.map → awsStore-BYYCmXiq.mjs.map} +1 -1
- package/dist/{awsStore-u3ehhMoY.cjs → awsStore-DKQUElJL.cjs} +2 -2
- package/dist/{awsStore-u3ehhMoY.cjs.map → awsStore-DKQUElJL.cjs.map} +1 -1
- package/dist/{bundler-DzN34D-8.cjs → bundler-BuBCXA0t.cjs} +6 -6
- package/dist/{bundler-DzN34D-8.cjs.map → bundler-BuBCXA0t.cjs.map} +1 -1
- package/dist/{bundler-BFGjH_mQ.mjs → bundler-DZKdVVKZ.mjs} +6 -6
- package/dist/{bundler-BFGjH_mQ.mjs.map → bundler-DZKdVVKZ.mjs.map} +1 -1
- package/dist/{cli-CVlkduxS.cjs → cli-BCGkzaR1.cjs} +5 -5
- package/dist/{cli-CVlkduxS.cjs.map → cli-BCGkzaR1.cjs.map} +1 -1
- package/dist/{cli-Ik7ar-Ux.mjs → cli-CgEbT00Q.mjs} +5 -5
- package/dist/{cli-Ik7ar-Ux.mjs.map → cli-CgEbT00Q.mjs.map} +1 -1
- package/dist/clientTelemetry-BAwj6MOf.d.cts +10 -0
- package/dist/clientTelemetry-BAwj6MOf.d.cts.map +1 -0
- package/dist/clientTelemetry-CvamPJj_.d.mts +10 -0
- package/dist/clientTelemetry-CvamPJj_.d.mts.map +1 -0
- package/dist/{compose-CE0Vi7zq.cjs → compose-AO8u4mBI.cjs} +51 -49
- package/dist/compose-AO8u4mBI.cjs.map +1 -0
- package/dist/{compose-BKLJMnDI.cjs → compose-C-yjexqX.cjs} +9 -37
- package/dist/compose-C-yjexqX.cjs.map +1 -0
- package/dist/{compose-pFnSi3Zf.mjs → compose-C23RpAaF.mjs} +15 -13
- package/dist/compose-C23RpAaF.mjs.map +1 -0
- package/dist/{compose-DH1ToGh2.mjs → compose-DtfoUChm.mjs} +10 -32
- package/dist/compose-DtfoUChm.mjs.map +1 -0
- package/dist/{config-CsCYzlVO.d.mts → config-BODxZemw.d.mts} +3 -3
- package/dist/{config-CsCYzlVO.d.mts.map → config-BODxZemw.d.mts.map} +1 -1
- package/dist/{config-D-gHQXhi.d.cts → config-C3U5HulX.d.cts} +3 -3
- package/dist/{config-D-gHQXhi.d.cts.map → config-C3U5HulX.d.cts.map} +1 -1
- package/dist/config.cjs +3 -3
- package/dist/config.d.cts +3 -3
- package/dist/config.d.mts +3 -3
- package/dist/config.mjs +3 -3
- package/dist/{credentialSchemas-BzJiK1nQ.mjs → credentialSchemas-D_85KW2k.mjs} +3 -3
- package/dist/{credentialSchemas-BzJiK1nQ.mjs.map → credentialSchemas-D_85KW2k.mjs.map} +1 -1
- package/dist/{credentialSchemas-OVXofU-r.cjs → credentialSchemas-DjK6xKMk.cjs} +3 -3
- package/dist/{credentialSchemas-OVXofU-r.cjs.map → credentialSchemas-DjK6xKMk.cjs.map} +1 -1
- package/dist/{databases-SFnPaOGM.mjs → databases-CV22HzrI.mjs} +2 -2
- package/dist/{databases-SFnPaOGM.mjs.map → databases-CV22HzrI.mjs.map} +1 -1
- package/dist/{databases-BOuB-zg4.cjs → databases-DwYYH2mX.cjs} +2 -2
- package/dist/{databases-BOuB-zg4.cjs.map → databases-DwYYH2mX.cjs.map} +1 -1
- package/dist/{dbTunnel-BnacLKDV.cjs → dbTunnel-Bve0zBqT.cjs} +7 -7
- package/dist/{dbTunnel-BnacLKDV.cjs.map → dbTunnel-Bve0zBqT.cjs.map} +1 -1
- package/dist/{dbTunnel-CqDaxQig.mjs → dbTunnel-CnubkLBa.mjs} +7 -7
- package/dist/{dbTunnel-CqDaxQig.mjs.map → dbTunnel-CnubkLBa.mjs.map} +1 -1
- package/dist/{define-6poNqm5O.mjs → define-BfrNaY82.mjs} +2 -2
- package/dist/{define-6poNqm5O.mjs.map → define-BfrNaY82.mjs.map} +1 -1
- package/dist/{define-crmMcXFS.cjs → define-zKgLY65H.cjs} +2 -2
- package/dist/{define-crmMcXFS.cjs.map → define-zKgLY65H.cjs.map} +1 -1
- package/dist/deploy/public.cjs +15 -15
- package/dist/deploy/public.d.cts +5 -4
- package/dist/deploy/public.d.cts.map +1 -1
- package/dist/deploy/public.d.mts +5 -4
- package/dist/deploy/public.d.mts.map +1 -1
- package/dist/deploy/public.mjs +15 -15
- package/dist/{deploy-l0Vc846k.cjs → deploy-C2MKxzm9.cjs} +20 -19
- package/dist/deploy-C2MKxzm9.cjs.map +1 -0
- package/dist/{deploy-CpAkrZ25.mjs → deploy-Qq41vtpm.mjs} +19 -18
- package/dist/deploy-Qq41vtpm.mjs.map +1 -0
- package/dist/{destroy-eeB_PrmN.mjs → destroy-Bg4IUf_Z.mjs} +11 -10
- package/dist/destroy-Bg4IUf_Z.mjs.map +1 -0
- package/dist/{destroy-DtAqmjGz.cjs → destroy-CCpnHI2v.cjs} +13 -12
- package/dist/destroy-CCpnHI2v.cjs.map +1 -0
- package/dist/{discover-B_PDDaVj.mjs → discover-Dfmn6HQ7.mjs} +2 -2
- package/dist/{discover-B_PDDaVj.mjs.map → discover-Dfmn6HQ7.mjs.map} +1 -1
- package/dist/{discover-39VKSE2i.cjs → discover-OXczlq08.cjs} +2 -2
- package/dist/{discover-39VKSE2i.cjs.map → discover-OXczlq08.cjs.map} +1 -1
- package/dist/{dns-B2vsk2Rc.mjs → dns-BAM8VH1v.mjs} +147 -179
- package/dist/dns-BAM8VH1v.mjs.map +1 -0
- package/dist/{dns-WneRa4VJ.cjs → dns-D_0z9Tm1.cjs} +145 -201
- package/dist/dns-D_0z9Tm1.cjs.map +1 -0
- package/dist/{docker-Dk6p33pD.cjs → docker-6EUbKrEl.cjs} +9 -9
- package/dist/{docker-Dk6p33pD.cjs.map → docker-6EUbKrEl.cjs.map} +1 -1
- package/dist/{docker-DyUpcwqy.mjs → docker-DQoE3Fr7.mjs} +9 -9
- package/dist/{docker-DyUpcwqy.mjs.map → docker-DQoE3Fr7.mjs.map} +1 -1
- package/dist/{dokploy-Byg0zr1O.cjs → dokploy-BD8NXy8y.cjs} +3 -3
- package/dist/{dokploy-Byg0zr1O.cjs.map → dokploy-BD8NXy8y.cjs.map} +1 -1
- package/dist/{dokploy-De5b47YI.mjs → dokploy-CU9iuc35.mjs} +3 -3
- package/dist/{dokploy-De5b47YI.mjs.map → dokploy-CU9iuc35.mjs.map} +1 -1
- package/dist/{eas-DAH6D89J.cjs → eas-BhTOdQrE.cjs} +4 -4
- package/dist/{eas-DAH6D89J.cjs.map → eas-BhTOdQrE.cjs.map} +1 -1
- package/dist/{eas-BnLaz86I.mjs → eas-iYyg7Xjy.mjs} +4 -4
- package/dist/{eas-BnLaz86I.mjs.map → eas-iYyg7Xjy.mjs.map} +1 -1
- package/dist/{encryption-IiDQJs6j.mjs → encryption-hgmnMZw0.mjs} +4 -4
- package/dist/{encryption-IiDQJs6j.mjs.map → encryption-hgmnMZw0.mjs.map} +1 -1
- package/dist/{encryption-D7u_SKqz.cjs → encryption-yROMpM67.cjs} +4 -4
- package/dist/{encryption-D7u_SKqz.cjs.map → encryption-yROMpM67.cjs.map} +1 -1
- package/dist/{engine-BhS-wyH0.mjs → engine-B4whsrrE.mjs} +12 -12
- package/dist/engine-B4whsrrE.mjs.map +1 -0
- package/dist/{engine-CaWo9tZO.cjs → engine-D0XYdIiE.cjs} +12 -12
- package/dist/engine-D0XYdIiE.cjs.map +1 -0
- package/dist/{errors-D8Gwp5kU.mjs → errors-C9uIyIDt.mjs} +7 -3
- package/dist/{errors-D8Gwp5kU.mjs.map → errors-C9uIyIDt.mjs.map} +1 -1
- package/dist/{errors-DMC4Umsb.cjs → errors-D1x8duqI.cjs} +7 -3
- package/dist/errors-D1x8duqI.cjs.map +1 -0
- package/dist/{github-BQCqBMZ9.mjs → github-CBkZF4PS.mjs} +11 -11
- package/dist/{github-BQCqBMZ9.mjs.map → github-CBkZF4PS.mjs.map} +1 -1
- package/dist/{github-Cz_LTqBn.cjs → github-D1-_OnGL.cjs} +11 -11
- package/dist/{github-Cz_LTqBn.cjs.map → github-D1-_OnGL.cjs.map} +1 -1
- package/dist/{googlePlay-DowNo3wp.mjs → googlePlay-Bwv8TVi8.mjs} +5 -5
- package/dist/{googlePlay-DowNo3wp.mjs.map → googlePlay-Bwv8TVi8.mjs.map} +1 -1
- package/dist/{googlePlay-CuqPxtno.cjs → googlePlay-s9dGfrrb.cjs} +5 -5
- package/dist/{googlePlay-CuqPxtno.cjs.map → googlePlay-s9dGfrrb.cjs.map} +1 -1
- package/dist/{iam-Cs2Ph5f2.mjs → iam-BzFyFf7T.mjs} +2 -2
- package/dist/{iam-Cs2Ph5f2.mjs.map → iam-BzFyFf7T.mjs.map} +1 -1
- package/dist/{iam-CGd_oEyz.cjs → iam-WIoKnLBp.cjs} +2 -2
- package/dist/{iam-CGd_oEyz.cjs.map → iam-WIoKnLBp.cjs.map} +1 -1
- package/dist/{index-QxGYzGEN.d.mts → index-BKgOlfK2.d.mts} +2 -2
- package/dist/{index-QxGYzGEN.d.mts.map → index-BKgOlfK2.d.mts.map} +1 -1
- package/dist/{index-tFzoro1V.d.cts → index-zPzigXh-.d.cts} +2 -2
- package/dist/{index-tFzoro1V.d.cts.map → index-zPzigXh-.d.cts.map} +1 -1
- package/dist/index.cjs +75 -73
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +73 -71
- package/dist/index.mjs.map +1 -1
- package/dist/{local-CWNFE8Sg.cjs → local-CFnHQgWC.cjs} +3 -3
- package/dist/{local-CWNFE8Sg.cjs.map → local-CFnHQgWC.cjs.map} +1 -1
- package/dist/{local-BQQHvZ4q.mjs → local-JOnTFJA5.mjs} +3 -3
- package/dist/{local-BQQHvZ4q.mjs.map → local-JOnTFJA5.mjs.map} +1 -1
- package/dist/{migrate-D_7oRThu.mjs → migrate-BtnpQocG.mjs} +6 -6
- package/dist/{migrate-D_7oRThu.mjs.map → migrate-BtnpQocG.mjs.map} +1 -1
- package/dist/{migrate-8QGCWIqm.cjs → migrate-CGXrmZyV.cjs} +8 -8
- package/dist/{migrate-8QGCWIqm.cjs.map → migrate-CGXrmZyV.cjs.map} +1 -1
- package/dist/{migrate-CNrPM5zg.cjs → migrate-CxWXW-Lw.cjs} +6 -6
- package/dist/{migrate-CNrPM5zg.cjs.map → migrate-CxWXW-Lw.cjs.map} +1 -1
- package/dist/{migrate-CqiOiRvz.mjs → migrate-fLIgSpPB.mjs} +8 -8
- package/dist/{migrate-CqiOiRvz.mjs.map → migrate-fLIgSpPB.mjs.map} +1 -1
- package/dist/{notes-dD3gRvZw.cjs → notes-ChYPaRLu.cjs} +4 -4
- package/dist/{notes-dD3gRvZw.cjs.map → notes-ChYPaRLu.cjs.map} +1 -1
- package/dist/{notes-D2KWnUSL.mjs → notes-LATU2vLI.mjs} +4 -4
- package/dist/{notes-D2KWnUSL.mjs.map → notes-LATU2vLI.mjs.map} +1 -1
- package/dist/openapi.cjs +3 -3
- package/dist/openapi.d.cts +3 -8
- package/dist/openapi.d.cts.map +1 -1
- package/dist/openapi.d.mts +3 -8
- package/dist/openapi.d.mts.map +1 -1
- package/dist/openapi.mjs +3 -3
- package/dist/{projectBucket-BcTodL8A.cjs → projectBucket-BIeh2HTj.cjs} +3 -3
- package/dist/{projectBucket-BcTodL8A.cjs.map → projectBucket-BIeh2HTj.cjs.map} +1 -1
- package/dist/{projectBucket-BDytiu7A.mjs → projectBucket-D_4zb_oh.mjs} +3 -3
- package/dist/{projectBucket-BDytiu7A.mjs.map → projectBucket-D_4zb_oh.mjs.map} +1 -1
- package/dist/{provider-CEOKk8NS.mjs → provider-BvjDbsTR.mjs} +3 -3
- package/dist/{provider-CEOKk8NS.mjs.map → provider-BvjDbsTR.mjs.map} +1 -1
- package/dist/{provider-BqpjG9QM.cjs → provider-DLhgo-mB.cjs} +3 -3
- package/dist/{provider-BqpjG9QM.cjs.map → provider-DLhgo-mB.cjs.map} +1 -1
- package/dist/{publish-Da9gxP5Q.cjs → publish-Dc-1GQp8.cjs} +3 -3
- package/dist/{publish-Da9gxP5Q.cjs.map → publish-Dc-1GQp8.cjs.map} +1 -1
- package/dist/{publish-Cr8wv7nO.mjs → publish-DhzRYhVZ.mjs} +3 -3
- package/dist/{publish-Cr8wv7nO.mjs.map → publish-DhzRYhVZ.mjs.map} +1 -1
- package/dist/{ready-D1gctv-5.mjs → ready-BcV28QoW.mjs} +6 -6
- package/dist/{ready-D1gctv-5.mjs.map → ready-BcV28QoW.mjs.map} +1 -1
- package/dist/{ready-Bgj2cf4j.cjs → ready-ByQvw4-W.cjs} +6 -6
- package/dist/{ready-Bgj2cf4j.cjs.map → ready-ByQvw4-W.cjs.map} +1 -1
- package/dist/reconcile/public.cjs +1 -1
- package/dist/reconcile/public.d.cts +1 -1
- package/dist/reconcile/public.d.mts +1 -1
- package/dist/reconcile/public.mjs +1 -1
- package/dist/{resolve-Dyki9ZJX.mjs → resolve-CJvM2bUx.mjs} +6 -6
- package/dist/{resolve-Dyki9ZJX.mjs.map → resolve-CJvM2bUx.mjs.map} +1 -1
- package/dist/{resolve-DRldmRYb.cjs → resolve-DyUXmA0z.cjs} +6 -6
- package/dist/{resolve-DRldmRYb.cjs.map → resolve-DyUXmA0z.cjs.map} +1 -1
- package/dist/{rollback-Do0i6x3b.mjs → rollback-BO1asWkd.mjs} +8 -8
- package/dist/{rollback-Do0i6x3b.mjs.map → rollback-BO1asWkd.mjs.map} +1 -1
- package/dist/{rollback-R_j7f9cY.cjs → rollback-Op8Tc5N-.cjs} +8 -8
- package/dist/{rollback-R_j7f9cY.cjs.map → rollback-Op8Tc5N-.cjs.map} +1 -1
- package/dist/{runtime-BpGIXfYr.d.mts → runtime-CaejlcZt.d.mts} +2 -2
- package/dist/{runtime-BpGIXfYr.d.mts.map → runtime-CaejlcZt.d.mts.map} +1 -1
- package/dist/{runtime-DLV0CNZ4.d.cts → runtime-D3jD4Dvn.d.cts} +2 -2
- package/dist/{runtime-DLV0CNZ4.d.cts.map → runtime-D3jD4Dvn.d.cts.map} +1 -1
- package/dist/{s3-CYEU7r1x.mjs → s3-BbtwHSod.mjs} +5 -5
- package/dist/{s3-CYEU7r1x.mjs.map → s3-BbtwHSod.mjs.map} +1 -1
- package/dist/{s3-D9aPMh9u.cjs → s3-CwacPd8J.cjs} +5 -5
- package/dist/{s3-D9aPMh9u.cjs.map → s3-CwacPd8J.cjs.map} +1 -1
- package/dist/sandbox/credentials-worker.cjs +2 -2
- package/dist/sandbox/credentials-worker.mjs +2 -2
- package/dist/sandbox/discover-worker.cjs +1 -1
- package/dist/sandbox/discover-worker.mjs +1 -1
- package/dist/sandbox/migrate-worker.cjs +2 -2
- package/dist/sandbox/migrate-worker.mjs +2 -2
- package/dist/{secretsManager-CJyxFcBH.mjs → secretsManager-CjTo6CRq.mjs} +2 -2
- package/dist/{secretsManager-CJyxFcBH.mjs.map → secretsManager-CjTo6CRq.mjs.map} +1 -1
- package/dist/{secretsManager-D8on44WI.cjs → secretsManager-CvmBGjdM.cjs} +2 -2
- package/dist/{secretsManager-D8on44WI.cjs.map → secretsManager-CvmBGjdM.cjs.map} +1 -1
- package/dist/{serverSetup-BmPwcMQN.cjs → serverSetup-BFdzPTIT.cjs} +7 -7
- package/dist/{serverSetup-BmPwcMQN.cjs.map → serverSetup-BFdzPTIT.cjs.map} +1 -1
- package/dist/{serverSetup-Bw5gc57O.mjs → serverSetup-CSxaZ7ha.mjs} +7 -7
- package/dist/{serverSetup-Bw5gc57O.mjs.map → serverSetup-CSxaZ7ha.mjs.map} +1 -1
- package/dist/{sniffer-XsTiFI3l.mjs → sniffer-CwxpsSez.mjs} +9 -9
- package/dist/{sniffer-XsTiFI3l.mjs.map → sniffer-CwxpsSez.mjs.map} +1 -1
- package/dist/{sniffer-BPLYWu70.cjs → sniffer-D3gH7aJT.cjs} +9 -9
- package/dist/{sniffer-BPLYWu70.cjs.map → sniffer-D3gH7aJT.cjs.map} +1 -1
- package/dist/{snsSubscriptions-CATtZwGv.cjs → snsSubscriptions-B8tGxND5.cjs} +10 -8
- package/dist/snsSubscriptions-B8tGxND5.cjs.map +1 -0
- package/dist/{snsSubscriptions-D9Rm_Eug.mjs → snsSubscriptions-n3sjbrRM.mjs} +7 -5
- package/dist/snsSubscriptions-n3sjbrRM.mjs.map +1 -0
- package/dist/{sst-C56i2cst.cjs → sst-Cjocp7gi.cjs} +8 -8
- package/dist/{sst-C56i2cst.cjs.map → sst-Cjocp7gi.cjs.map} +1 -1
- package/dist/{sst-BCvYZtVF.mjs → sst-DeF0BfDA.mjs} +8 -8
- package/dist/{sst-BCvYZtVF.mjs.map → sst-DeF0BfDA.mjs.map} +1 -1
- package/dist/{stack-TttsEL7X.mjs → stack-CyoRqyPt.mjs} +16 -609
- package/dist/stack-CyoRqyPt.mjs.map +1 -0
- package/dist/{stack-Dal2Oq2D.cjs → stack-Dr2FSxGm.cjs} +28 -687
- package/dist/stack-Dr2FSxGm.cjs.map +1 -0
- package/dist/{stage--ixwLSTc.mjs → stage-TAx0Gcq8.mjs} +8 -8
- package/dist/{stage--ixwLSTc.mjs.map → stage-TAx0Gcq8.mjs.map} +1 -1
- package/dist/{stage-BLsuXUP_.cjs → stage-aTBLKonw.cjs} +8 -8
- package/dist/{stage-BLsuXUP_.cjs.map → stage-aTBLKonw.cjs.map} +1 -1
- package/dist/{stages-8izznWib.cjs → stages-BeSQQQ4z.cjs} +3 -3
- package/dist/{stages-8izznWib.cjs.map → stages-BeSQQQ4z.cjs.map} +1 -1
- package/dist/{stages-QPWgbm9P.mjs → stages-DjFKQv08.mjs} +3 -3
- package/dist/{stages-QPWgbm9P.mjs.map → stages-DjFKQv08.mjs.map} +1 -1
- package/dist/target/public.cjs +3 -3
- package/dist/target/public.d.cts +2 -2
- package/dist/target/public.d.mts +2 -2
- package/dist/target/public.mjs +3 -3
- package/dist/{terminal-gOLDmpW-.mjs → terminal-Bk4PjXWY.mjs} +4 -4
- package/dist/{terminal-gOLDmpW-.mjs.map → terminal-Bk4PjXWY.mjs.map} +1 -1
- package/dist/{terminal-Dy4zzTCA.cjs → terminal-DPf137EJ.cjs} +4 -4
- package/dist/{terminal-Dy4zzTCA.cjs.map → terminal-DPf137EJ.cjs.map} +1 -1
- package/dist/{types-CV4AzwC_.d.cts → types-CLxsw-QY.d.cts} +3 -16
- package/dist/types-CLxsw-QY.d.cts.map +1 -0
- package/dist/{types-Bj1A1wkS.d.mts → types-wLlwkSib.d.mts} +3 -16
- package/dist/types-wLlwkSib.d.mts.map +1 -0
- package/dist/vitest.cjs +1 -1
- package/dist/vitest.mjs +1 -1
- package/dist/workspace/index.cjs +1 -1
- package/dist/workspace/index.d.cts +2 -2
- package/dist/workspace/index.d.mts +2 -2
- package/dist/workspace/index.mjs +1 -1
- package/dist/{workspace-BBa1Ck5j.mjs → workspace-DJjhfAGf.mjs} +3 -3
- package/dist/{workspace-BBa1Ck5j.mjs.map → workspace-DJjhfAGf.mjs.map} +1 -1
- package/dist/{workspace-DirP2-ed.cjs → workspace-wTLnc1Ef.cjs} +3 -3
- package/dist/{workspace-DirP2-ed.cjs.map → workspace-wTLnc1Ef.cjs.map} +1 -1
- package/package.json +16 -15
- package/dist/GoDaddyProvider-B9AMLUHF.cjs +0 -412
- package/dist/GoDaddyProvider-B9AMLUHF.cjs.map +0 -1
- package/dist/GoDaddyProvider-DLVKx7er.mjs +0 -412
- package/dist/GoDaddyProvider-DLVKx7er.mjs.map +0 -1
- package/dist/HostingerProvider-DBPWhL_s.cjs +0 -257
- package/dist/HostingerProvider-DBPWhL_s.cjs.map +0 -1
- package/dist/HostingerProvider-kLQsBCjz.mjs +0 -257
- package/dist/HostingerProvider-kLQsBCjz.mjs.map +0 -1
- package/dist/Route53Provider-Di_SD9CF.mjs +0 -209
- package/dist/Route53Provider-Di_SD9CF.mjs.map +0 -1
- package/dist/Route53Provider-emLuQHVw.cjs +0 -209
- package/dist/Route53Provider-emLuQHVw.cjs.map +0 -1
- package/dist/apps-DPw1i9E7.cjs.map +0 -1
- package/dist/apps-GDmO_v7v.mjs.map +0 -1
- package/dist/compose-BKLJMnDI.cjs.map +0 -1
- package/dist/compose-CE0Vi7zq.cjs.map +0 -1
- package/dist/compose-DH1ToGh2.mjs.map +0 -1
- package/dist/compose-pFnSi3Zf.mjs.map +0 -1
- package/dist/deploy-CpAkrZ25.mjs.map +0 -1
- package/dist/deploy-l0Vc846k.cjs.map +0 -1
- package/dist/destroy-DtAqmjGz.cjs.map +0 -1
- package/dist/destroy-eeB_PrmN.mjs.map +0 -1
- package/dist/dns-B2vsk2Rc.mjs.map +0 -1
- package/dist/dns-WneRa4VJ.cjs.map +0 -1
- package/dist/engine-BhS-wyH0.mjs.map +0 -1
- package/dist/engine-CaWo9tZO.cjs.map +0 -1
- package/dist/errors-DMC4Umsb.cjs.map +0 -1
- package/dist/snsSubscriptions-CATtZwGv.cjs.map +0 -1
- package/dist/snsSubscriptions-D9Rm_Eug.mjs.map +0 -1
- package/dist/stack-Dal2Oq2D.cjs.map +0 -1
- package/dist/stack-TttsEL7X.mjs.map +0 -1
- package/dist/types-Bj1A1wkS.d.mts.map +0 -1
- package/dist/types-CV4AzwC_.d.cts.map +0 -1
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
import { t as GkmError } from "./errors-
|
|
2
|
-
import {
|
|
3
|
-
import { B as LOGS_PORT, I as otlpTelemetryEnv, L as resolveStageTelemetry, Ot as certificateFor, Rt as isReservedStageKey, U as stageProvider, ht as servesOnCdn, kt as proxyFor, mt as s3Region, nt as bucketName, ot as appKey, ut as fileServerHost, z as telemetryEnv } from "./workspace-
|
|
4
|
-
import {
|
|
5
|
-
import { $ as
|
|
6
|
-
import { a as SNS_SUBSCRIPTIONS_KEY, c as INBOX_RELAY_TOKEN_KEY, d as inboxWebhookUrl, o as objectsRoute, s as subscriberRoute, u as inboxRelayWorker } from "./SubscriberGenerator-
|
|
1
|
+
import { t as GkmError } from "./errors-C9uIyIDt.mjs";
|
|
2
|
+
import { Y as imageRef, _t as gkmHome, et as stageTag, l as storedCredentials, n as findRootDomain, r as normalizeDnsConfig } from "./dns-BAM8VH1v.mjs";
|
|
3
|
+
import { B as LOGS_PORT, I as otlpTelemetryEnv, L as resolveStageTelemetry, Ot as certificateFor, Rt as isReservedStageKey, U as stageProvider, ht as servesOnCdn, kt as proxyFor, mt as s3Region, nt as bucketName, ot as appKey, ut as fileServerHost, z as telemetryEnv } from "./workspace-DJjhfAGf.mjs";
|
|
4
|
+
import { $ as runsServer, E as processorOriginHost, Et as signedOrigins, F as WORKER_PORT, M as PRERENDER_RUN_ARG, Mt as stageBackups, N as PROCESSOR_PORT, O as composeBuildPaths, P as TURBO_VERSION, Q as publicBuildValues, S as ORIGIN_VERIFY_HEADER, T as originSecretKey, X as OFFLINE_BUILD_ADDRESS, Z as offlineBuildHosts, _t as bucketPolicies, a as networkEnv, at as BACKUPS_SERVICE, gt as bucketLifecycles, it as workerUnits, j as LOCAL_CA_BUILD_SECRET, lt as backupsService, rt as processorUnits, s as processEnvKeys, ut as stackBackups, wt as localRolePassword } from "./apps-D0LULFmU.mjs";
|
|
5
|
+
import { $ as hostFor, C as redisService, Ct as stackLogs, Dt as isMainFrontendApp, F as stackTelemetry, G as EMULATOR_ACCESS_KEY_ID, H as minioWebhookEnv, L as telemetryOf, M as isTelemetryKey, N as scopeTelemetryEnv, Ot as resolveHost, R as usesTelemetry, S as STACK_CACHE, T as stackRedis, Tt as NoDomainForStage, W as watchedBuckets, Z as LOCAL_TLD, bt as logsPorts, et as hostsFor, g as postgresSuperuser, gt as LOGS_SERVICE, it as DEFAULT_IMAGES, k as planFor, n as composeFor, p as LOCAL_RABBITMQ_USER, st as portKeys, x as REDIS_SERVICE, xt as logsService, yt as logsOnPort } from "./compose-DtfoUChm.mjs";
|
|
6
|
+
import { a as SNS_SUBSCRIPTIONS_KEY, c as INBOX_RELAY_TOKEN_KEY, d as inboxWebhookUrl, o as objectsRoute, s as subscriberRoute, u as inboxRelayWorker } from "./SubscriberGenerator-B3jHf26s.mjs";
|
|
7
7
|
import { d as DEFAULT_EVENTS } from "./drivers-BQRb3KsL.mjs";
|
|
8
|
-
import { _ as suppliedOnly, f as devServicesUsed, g as stageServiceDeclarations, i as stageProviderNotes, p as externalServices } from "./notes-
|
|
9
|
-
import { T as validateImageRef, o as processorDockerfile, r as appDockerfile, s as workerDockerfile } from "./docker-
|
|
8
|
+
import { _ as suppliedOnly, f as devServicesUsed, g as stageServiceDeclarations, i as stageProviderNotes, p as externalServices } from "./notes-LATU2vLI.mjs";
|
|
9
|
+
import { T as validateImageRef, o as processorDockerfile, r as appDockerfile, s as workerDockerfile } from "./docker-DQoE3Fr7.mjs";
|
|
10
10
|
import { join } from "node:path";
|
|
11
11
|
import { createHash } from "node:crypto";
|
|
12
|
-
import {
|
|
12
|
+
import { localAuthorityPaths } from "@geekmidas/edge/certificates/local";
|
|
13
|
+
import { CADDY_TLS_DIR, edgeCaddyfile } from "@geekmidas/edge/proxy/caddy";
|
|
14
|
+
import { EDGE_NETWORK, edgeAlias, edgeCertificatePaths, traefikDynamicFile } from "@geekmidas/edge/proxy/traefik";
|
|
15
|
+
import { EDGE_LIMITS, NOFILE, routeHosts } from "@geekmidas/edge/routes";
|
|
16
|
+
import { EDGE_TOKEN_KEY, WILDCARD_SUBDOMAIN, isWildcardSite, providedKeyFor, provisionOrder } from "@geekmidas/manifest";
|
|
13
17
|
import * as s3Url from "@geekmidas/storage/s3-url";
|
|
14
|
-
import { parse as parse$2, stringify } from "yaml";
|
|
15
18
|
import bcrypt from "bcryptjs";
|
|
16
19
|
//#region src/providers/aws.ts
|
|
17
20
|
/**
|
|
@@ -125,183 +128,6 @@ function plannedSignedOrigin(input, env = process.env) {
|
|
|
125
128
|
});
|
|
126
129
|
}
|
|
127
130
|
//#endregion
|
|
128
|
-
//#region src/compose/routes.ts
|
|
129
|
-
/**
|
|
130
|
-
* Every host a route answers on — its own, its aliases and its redirects —
|
|
131
|
-
* in that order: what DNS, certificates and the edge's claims cover.
|
|
132
|
-
*/
|
|
133
|
-
function routeHosts(route) {
|
|
134
|
-
return [
|
|
135
|
-
route.host,
|
|
136
|
-
...route.aliases ?? [],
|
|
137
|
-
...route.redirects?.hosts ?? []
|
|
138
|
-
];
|
|
139
|
-
}
|
|
140
|
-
/** A route with handlers and a check that would have to hold for each of them. */
|
|
141
|
-
var EdgeRouteConflict = class extends Error {
|
|
142
|
-
route;
|
|
143
|
-
constructor(route) {
|
|
144
|
-
super(`The edge route '${route}' sends some paths to other upstreams and also restricts who or what it answers. The two are not combined: give the restricted paths a host of their own.`);
|
|
145
|
-
this.route = route;
|
|
146
|
-
this.name = "EdgeRouteConflict";
|
|
147
|
-
}
|
|
148
|
-
};
|
|
149
|
-
/** @throws {EdgeRouteConflict} */
|
|
150
|
-
function assertRouteRenderable(route) {
|
|
151
|
-
if (route.handlers?.length && (route.allow || route.paths || route.prefixes || route.requireHeader)) throw new EdgeRouteConflict(route.name);
|
|
152
|
-
}
|
|
153
|
-
/** File descriptors a process holding sockets may open. */
|
|
154
|
-
const NOFILE = {
|
|
155
|
-
soft: 1048576,
|
|
156
|
-
hard: 1048576
|
|
157
|
-
};
|
|
158
|
-
/**
|
|
159
|
-
* What the edge runs with: a descriptor per socket, twice — the client's and
|
|
160
|
-
* the upstream's — and every local port for those upstream connections. One
|
|
161
|
-
* edge address to one upstream has only the ephemeral range to open
|
|
162
|
-
* connections from, ~28k by Linux's default; widened, ~64k per replica.
|
|
163
|
-
*/
|
|
164
|
-
const EDGE_LIMITS = {
|
|
165
|
-
sysctls: { "net.ipv4.ip_local_port_range": "1024 65535" },
|
|
166
|
-
ulimits: { nofile: NOFILE }
|
|
167
|
-
};
|
|
168
|
-
//#endregion
|
|
169
|
-
//#region src/compose/caddyfile.ts
|
|
170
|
-
/**
|
|
171
|
-
* The stack's own edge, rendered for Caddy: one site block per route.
|
|
172
|
-
*
|
|
173
|
-
* Deployed, each host is the stage's real domain and Caddy gets it a
|
|
174
|
-
* certificate from Let's Encrypt on first request — the same automatic HTTPS
|
|
175
|
-
* it does anywhere, with nothing to configure but the name — or serves the
|
|
176
|
-
* stage's own certificate (`deploy.compose.tls`). Locally the hosts are
|
|
177
|
-
* `*.localhost` and the certificate is the one gkm's local authority issued,
|
|
178
|
-
* as the `gkm dev` edge's is, so a local stack is `https://` like a deployed
|
|
179
|
-
* one.
|
|
180
|
-
*
|
|
181
|
-
* Pure: the routes are data (`routes.ts`), and rendering them is one string.
|
|
182
|
-
*/
|
|
183
|
-
/** Where Caddy reads a stage's own certificate, inside its container. */
|
|
184
|
-
const CADDY_TLS_DIR = "/etc/caddy/tls";
|
|
185
|
-
/** An upstream on the stack's own network: its service name. */
|
|
186
|
-
function address({ service, port }) {
|
|
187
|
-
return `${service}:${port}`;
|
|
188
|
-
}
|
|
189
|
-
/** The Caddyfile for a stack's edge. */
|
|
190
|
-
function edgeCaddyfile(routes, options) {
|
|
191
|
-
const { tls } = options;
|
|
192
|
-
const ask = routes.find((route) => route.wildcard?.tls.kind === "on-demand")?.wildcard?.tls;
|
|
193
|
-
const onDemand = ask?.kind === "on-demand" ? `
|
|
194
|
-
on_demand_tls {
|
|
195
|
-
ask ${ask.ask}
|
|
196
|
-
}` : "";
|
|
197
|
-
const settings = `${options.email ? `\n\temail ${options.email}` : ""}${options.redirects === false ? "\n auto_https disable_redirects" : ""}${onDemand}`;
|
|
198
|
-
const global = settings ? `{${settings}\n}` : "";
|
|
199
|
-
const certificate = tls.kind === "files" ? `
|
|
200
|
-
tls ${tls.certFile} ${tls.keyFile}
|
|
201
|
-
` : "";
|
|
202
|
-
const blocks = [...routes.filter((route) => !route.wildcard), ...routes.filter((route) => route.wildcard)].map((route) => siteBlock(route, options.edgeToken, route.wildcard?.tls.kind === "on-demand" ? `
|
|
203
|
-
tls {
|
|
204
|
-
on_demand
|
|
205
|
-
}
|
|
206
|
-
` : certificate));
|
|
207
|
-
return `${HEADER}${global ? `${global}\n\n` : ""}${blocks.join("\n\n")}\n`;
|
|
208
|
-
}
|
|
209
|
-
/** One route's site block. */
|
|
210
|
-
function siteBlock(route, edgeToken, certificate) {
|
|
211
|
-
assertRouteRenderable(route);
|
|
212
|
-
const { host, allow, auth, paths, prefixes, requireHeader, handlers } = route;
|
|
213
|
-
const allowed = [...paths ?? [], ...(prefixes ?? []).map((prefix) => `${prefix}*`)];
|
|
214
|
-
const except = route.wildcard?.except ?? [];
|
|
215
|
-
const checks = `${except.length ? `
|
|
216
|
-
# Labels no tenant may take, although nothing in this stack answers them.
|
|
217
|
-
@protected host ${except.map((label) => `${label}.${route.wildcard?.domain}`).join(" ")}
|
|
218
|
-
respond @protected 404
|
|
219
|
-
` : ""}${allow ? `
|
|
220
|
-
# Only these addresses — the peer Caddy sees, never a header a client
|
|
221
|
-
# could set. Everything else is refused before it reaches the upstream.
|
|
222
|
-
@denied not remote_ip ${allow.join(" ")}
|
|
223
|
-
respond @denied 403
|
|
224
|
-
` : ""}${requireHeader ? `
|
|
225
|
-
# Only what the CDN sends: it adds this header to every request, and this
|
|
226
|
-
# host would be reached around the CDN otherwise.
|
|
227
|
-
@forged not header ${requireHeader.name} "${requireHeader.value}"
|
|
228
|
-
respond @forged 403
|
|
229
|
-
` : ""}${auth ? `
|
|
230
|
-
# The stage's login, asked for before anything reaches the upstream.
|
|
231
|
-
basic_auth {
|
|
232
|
-
${auth.user} ${auth.hash}
|
|
233
|
-
}
|
|
234
|
-
` : ""}${allowed.length ? `
|
|
235
|
-
# Only these paths answer. Everything else on this host is refused before
|
|
236
|
-
# it reaches the upstream.
|
|
237
|
-
@elsewhere not path ${allowed.join(" ")}
|
|
238
|
-
respond @elsewhere 404
|
|
239
|
-
` : ""}`;
|
|
240
|
-
const proxy = proxyBlock(route);
|
|
241
|
-
const body = handlers?.length ? `${handlers.map((handler, index) => `
|
|
242
|
-
# Answered by another service: ${handler.name}.
|
|
243
|
-
@handler${index} path ${handler.prefixes.map((prefix) => `${prefix}*`).join(" ")}
|
|
244
|
-
handle @handler${index} {
|
|
245
|
-
reverse_proxy ${handler.upstreams.map(address).join(" ")}
|
|
246
|
-
}
|
|
247
|
-
`).join("")}
|
|
248
|
-
handle {${proxy.replace(/\n/g, "\n ")}
|
|
249
|
-
}` : proxy;
|
|
250
|
-
const names = [host, ...route.aliases ?? []].map((name) => `https://${name}`).join(", ");
|
|
251
|
-
const redirects = (route.redirects?.hosts ?? []).map((from) => `
|
|
252
|
-
|
|
253
|
-
https://${from} {${certificate}
|
|
254
|
-
redir ${route.redirects?.to}{uri} permanent
|
|
255
|
-
}`).join("");
|
|
256
|
-
return `${names} {${certificate}${clientIpRule(edgeToken)}
|
|
257
|
-
${checks}${body}
|
|
258
|
-
}${redirects}`;
|
|
259
|
-
}
|
|
260
|
-
/** Where a route's requests go, when no handler took them. */
|
|
261
|
-
function proxyBlock(route) {
|
|
262
|
-
const { upstreams, prefix, streaming } = route;
|
|
263
|
-
const health = healthCheck(route);
|
|
264
|
-
return prefix ? `
|
|
265
|
-
# A bucket, served at a host of its own: the bucket is a prefix on MinIO,
|
|
266
|
-
# which routes and signs on the Host header — so it is sent the upstream's.
|
|
267
|
-
reverse_proxy ${upstreams.map(address).join(" ")} {
|
|
268
|
-
rewrite ${prefix}{uri}
|
|
269
|
-
header_up Host {upstream_hostport}${health}
|
|
270
|
-
}` : `
|
|
271
|
-
# Host and X-Forwarded-* are passed through as Caddy does by default, so
|
|
272
|
-
# an app builds redirects, cookies and links on the address a caller used.
|
|
273
|
-
reverse_proxy ${upstreams.map(address).join(" ")}${streaming || health ? ` {${streaming ? `
|
|
274
|
-
# Never buffer: a streamed response — server-sent events, a Next.js
|
|
275
|
-
# RSC payload — reaches the client as each chunk is written.
|
|
276
|
-
flush_interval -1` : ""}${health}
|
|
277
|
-
}` : ""}`;
|
|
278
|
-
}
|
|
279
|
-
/**
|
|
280
|
-
* Caddy's own check of each upstream, as the Traefik edge's
|
|
281
|
-
* `loadBalancer.healthCheck`: one that stops answering is taken out of
|
|
282
|
-
* rotation until it does again. Caddy starts once its apps have — not once
|
|
283
|
-
* they are healthy — so this is what keeps a request from an upstream that
|
|
284
|
-
* is not up, and a route to an app with none up answers an error (503)
|
|
285
|
-
* rather than going missing.
|
|
286
|
-
*/
|
|
287
|
-
function healthCheck({ health }) {
|
|
288
|
-
return health ? `
|
|
289
|
-
# Each upstream asked on its own: one that stops answering is out of
|
|
290
|
-
# rotation until it answers again.
|
|
291
|
-
health_uri ${health}
|
|
292
|
-
health_interval 5s
|
|
293
|
-
health_timeout 3s` : "";
|
|
294
|
-
}
|
|
295
|
-
const HEADER = `# Generated by gkm compose from the construct manifest — do not edit.
|
|
296
|
-
#
|
|
297
|
-
# One host per API and site, each in front of its own container, one per
|
|
298
|
-
# file server in front of the stack's MinIO — its processors' paths sent to
|
|
299
|
-
# their own service — one per worker SNS pushes to and per processor unit a
|
|
300
|
-
# CDN reaches, answering only those paths, and — when its logs are served
|
|
301
|
-
# publicly — one for OpenObserve, to the addresses it allows. A site the
|
|
302
|
-
# stage puts behind a password asks for its login first.
|
|
303
|
-
`;
|
|
304
|
-
//#endregion
|
|
305
131
|
//#region src/compose/sitePassword.ts
|
|
306
132
|
/**
|
|
307
133
|
* A site served behind a password on some deployed stages — a `StaticSite`'s
|
|
@@ -432,425 +258,6 @@ function saltFor(password) {
|
|
|
432
258
|
return `$2a$10$${salt}`;
|
|
433
259
|
}
|
|
434
260
|
//#endregion
|
|
435
|
-
//#region src/compose/traefik.ts
|
|
436
|
-
/**
|
|
437
|
-
* The server's shared edge, rendered for Traefik: what the edge itself runs
|
|
438
|
-
* with, and what one stack registers with it.
|
|
439
|
-
*
|
|
440
|
-
* One Traefik per server owns 80 and 443, the ACME state and the redirect to
|
|
441
|
-
* HTTPS. It is configured through its file provider alone: each stack writes
|
|
442
|
-
* one file — its routers, services and middlewares, every name prefixed with
|
|
443
|
-
* its compose project — into a directory the edge watches, and removes it
|
|
444
|
-
* when it stops. There is no Docker socket: the edge never learns what runs
|
|
445
|
-
* on the server except from those files.
|
|
446
|
-
*
|
|
447
|
-
* The edge and the stacks meet on one external Docker network. Only a
|
|
448
|
-
* stack's public services join it, each under an alias prefixed with its
|
|
449
|
-
* project (`<project>-api`), because the network is shared: a bare service
|
|
450
|
-
* name there would be answered by every stack's `api`.
|
|
451
|
-
*
|
|
452
|
-
* Pure but for the edge's name, read from the environment once (see
|
|
453
|
-
* {@link EDGE_PROJECT_ENV}): the documents are data, and the edge's side
|
|
454
|
-
* effects are `edge.ts`'s.
|
|
455
|
-
*/
|
|
456
|
-
/**
|
|
457
|
-
* The image, pinned: the edge is every stack's way in, so a new version is a
|
|
458
|
-
* change to this line, not whatever `latest` is on the day a server starts.
|
|
459
|
-
*/
|
|
460
|
-
const TRAEFIK_IMAGE = "traefik:v3.7.13";
|
|
461
|
-
/** The edge's compose project: `GKM_EDGE_PROJECT`, else `gkm-edge`. */
|
|
462
|
-
function edgeProject(env = process.env) {
|
|
463
|
-
return env["GKM_EDGE_PROJECT"] || "gkm-edge";
|
|
464
|
-
}
|
|
465
|
-
/**
|
|
466
|
-
* The edge's compose project, one per server — read once, when gkm starts,
|
|
467
|
-
* so every step of a run names the same edge.
|
|
468
|
-
*/
|
|
469
|
-
const EDGE_PROJECT = edgeProject();
|
|
470
|
-
/**
|
|
471
|
-
* The external network the edge and every stack's public services share:
|
|
472
|
-
* named after the edge, so a renamed edge has a network of its own.
|
|
473
|
-
*/
|
|
474
|
-
const EDGE_NETWORK = EDGE_PROJECT;
|
|
475
|
-
/** The edge's compose service. */
|
|
476
|
-
const EDGE_SERVICE = "traefik";
|
|
477
|
-
/** Inside the edge's container: what it watches, and where certificates are. */
|
|
478
|
-
const EDGE_DYNAMIC_DIR = "/etc/gkm-edge/dynamic";
|
|
479
|
-
const EDGE_CERTS_DIR = "/etc/gkm-edge/certs";
|
|
480
|
-
/** The certificate resolver every deployed route without its own certificate uses. */
|
|
481
|
-
const ACME_RESOLVER = "letsencrypt";
|
|
482
|
-
/**
|
|
483
|
-
* The resolver a wildcard site's `*.<domain>` certificate comes from: Let's
|
|
484
|
-
* Encrypt issues a wildcard only over the DNS challenge, which the edge
|
|
485
|
-
* answers by writing an `_acme-challenge` TXT record through Route 53.
|
|
486
|
-
*/
|
|
487
|
-
const ACME_DNS_RESOLVER = "letsencrypt-dns";
|
|
488
|
-
/**
|
|
489
|
-
* The key the edge writes those records with, inside its container: written
|
|
490
|
-
* by the deploy of a stage with a wildcard site, and allowed nothing but
|
|
491
|
-
* each such stage's `_acme-challenge` record (see `acmeDns.ts`).
|
|
492
|
-
*/
|
|
493
|
-
const EDGE_AWS_CREDENTIALS = `${EDGE_CERTS_DIR}/aws-credentials`;
|
|
494
|
-
/** The internal entrypoint the edge's health check asks; never published. */
|
|
495
|
-
const PING_PORT = 8082;
|
|
496
|
-
/** A stack's service, as the edge — and the stack itself — reach it. */
|
|
497
|
-
function edgeAlias(project, service) {
|
|
498
|
-
return `${project}-${service}`;
|
|
499
|
-
}
|
|
500
|
-
/** A stack's certificate, as the edge's container reads it. */
|
|
501
|
-
function edgeCertificatePaths(project) {
|
|
502
|
-
return {
|
|
503
|
-
certFile: `${EDGE_CERTS_DIR}/${project}.crt`,
|
|
504
|
-
keyFile: `${EDGE_CERTS_DIR}/${project}.key`
|
|
505
|
-
};
|
|
506
|
-
}
|
|
507
|
-
/**
|
|
508
|
-
* The edge's static configuration: the entrypoints, the redirect, ACME, and
|
|
509
|
-
* the directory it watches. No API and no dashboard — nothing about the edge
|
|
510
|
-
* is reachable but the routes stacks register.
|
|
511
|
-
*/
|
|
512
|
-
function traefikStatic(ports) {
|
|
513
|
-
return {
|
|
514
|
-
global: {
|
|
515
|
-
checkNewVersion: false,
|
|
516
|
-
sendAnonymousUsage: false
|
|
517
|
-
},
|
|
518
|
-
entryPoints: {
|
|
519
|
-
web: {
|
|
520
|
-
address: ":80",
|
|
521
|
-
http: { redirections: { entryPoint: {
|
|
522
|
-
to: ports.https === 443 ? "websecure" : `:${ports.https}`,
|
|
523
|
-
scheme: "https",
|
|
524
|
-
permanent: true
|
|
525
|
-
} } }
|
|
526
|
-
},
|
|
527
|
-
websecure: { address: ":443" },
|
|
528
|
-
ping: { address: `:${PING_PORT}` }
|
|
529
|
-
},
|
|
530
|
-
ping: { entryPoint: "ping" },
|
|
531
|
-
providers: { file: {
|
|
532
|
-
directory: EDGE_DYNAMIC_DIR,
|
|
533
|
-
watch: true
|
|
534
|
-
} },
|
|
535
|
-
certificatesResolvers: {
|
|
536
|
-
[ACME_RESOLVER]: { acme: {
|
|
537
|
-
storage: "/acme/acme.json",
|
|
538
|
-
httpChallenge: { entryPoint: "web" }
|
|
539
|
-
} },
|
|
540
|
-
[ACME_DNS_RESOLVER]: { acme: {
|
|
541
|
-
storage: "/acme/acme-dns.json",
|
|
542
|
-
dnsChallenge: {
|
|
543
|
-
provider: "route53",
|
|
544
|
-
resolvers: ["1.1.1.1:53", "8.8.8.8:53"]
|
|
545
|
-
}
|
|
546
|
-
} }
|
|
547
|
-
},
|
|
548
|
-
log: { level: "INFO" }
|
|
549
|
-
};
|
|
550
|
-
}
|
|
551
|
-
/** The edge's compose document. */
|
|
552
|
-
function edgeCompose(options) {
|
|
553
|
-
const { ports } = options;
|
|
554
|
-
return {
|
|
555
|
-
name: EDGE_PROJECT,
|
|
556
|
-
services: { [EDGE_SERVICE]: {
|
|
557
|
-
image: TRAEFIK_IMAGE,
|
|
558
|
-
restart: "unless-stopped",
|
|
559
|
-
ports: [`${ports.https}:443`, `${ports.http}:80`],
|
|
560
|
-
configs: [{
|
|
561
|
-
source: "traefik",
|
|
562
|
-
target: "/etc/traefik/traefik.yml"
|
|
563
|
-
}],
|
|
564
|
-
volumes: [
|
|
565
|
-
`dynamic:${EDGE_DYNAMIC_DIR}`,
|
|
566
|
-
`certs:${EDGE_CERTS_DIR}`,
|
|
567
|
-
"acme:/acme"
|
|
568
|
-
],
|
|
569
|
-
labels: { "dev.geekmidas.edge.config": createHash("sha256").update(options.staticConfig).digest("hex").slice(0, 16) },
|
|
570
|
-
environment: {
|
|
571
|
-
AWS_SHARED_CREDENTIALS_FILE: EDGE_AWS_CREDENTIALS,
|
|
572
|
-
AWS_REGION: "us-east-1"
|
|
573
|
-
},
|
|
574
|
-
networks: ["edge"],
|
|
575
|
-
...EDGE_LIMITS,
|
|
576
|
-
healthcheck: {
|
|
577
|
-
test: [
|
|
578
|
-
"CMD",
|
|
579
|
-
"traefik",
|
|
580
|
-
"healthcheck",
|
|
581
|
-
"--ping"
|
|
582
|
-
],
|
|
583
|
-
interval: "10s",
|
|
584
|
-
timeout: "5s",
|
|
585
|
-
retries: 5
|
|
586
|
-
},
|
|
587
|
-
logging: options.logging
|
|
588
|
-
} },
|
|
589
|
-
configs: { traefik: { content: options.staticConfig } },
|
|
590
|
-
volumes: {
|
|
591
|
-
acme: {},
|
|
592
|
-
dynamic: {},
|
|
593
|
-
certs: {}
|
|
594
|
-
},
|
|
595
|
-
networks: { edge: {
|
|
596
|
-
name: EDGE_NETWORK,
|
|
597
|
-
external: true
|
|
598
|
-
} }
|
|
599
|
-
};
|
|
600
|
-
}
|
|
601
|
-
/** A stack's dynamic configuration, as an object. */
|
|
602
|
-
function traefikDynamic(routes, options) {
|
|
603
|
-
const { project, tls, edgeToken } = options;
|
|
604
|
-
const name = (route, suffix) => `${project}-${route.name}${suffix ? `-${suffix}` : ""}`;
|
|
605
|
-
const url = ({ service, port }) => `http://${edgeAlias(project, service)}:${port}`;
|
|
606
|
-
const routers = {};
|
|
607
|
-
const services = {};
|
|
608
|
-
const middlewares = {};
|
|
609
|
-
const strip = `${project}-strip-gkm-headers`;
|
|
610
|
-
if (routes.length > 0) middlewares[strip] = { headers: { customRequestHeaders: { [CLIENT_IP_HEADER]: "" } } };
|
|
611
|
-
for (const route of routes) {
|
|
612
|
-
const chain = [strip];
|
|
613
|
-
const limited = /* @__PURE__ */ new Set();
|
|
614
|
-
if (route.allow) {
|
|
615
|
-
middlewares[name(route, "allow")] = { ipAllowList: { sourceRange: [...route.allow] } };
|
|
616
|
-
chain.push(name(route, "allow"));
|
|
617
|
-
}
|
|
618
|
-
if (route.auth) {
|
|
619
|
-
middlewares[name(route, "auth")] = { basicAuth: { users: [`${route.auth.user}:${route.auth.hash}`] } };
|
|
620
|
-
chain.push(name(route, "auth"));
|
|
621
|
-
}
|
|
622
|
-
if (route.limits?.handshakesPerMinute) {
|
|
623
|
-
const perMinute = route.limits.handshakesPerMinute;
|
|
624
|
-
middlewares[name(route, "rate")] = { rateLimit: {
|
|
625
|
-
average: perMinute,
|
|
626
|
-
period: "1m",
|
|
627
|
-
burst: perMinute
|
|
628
|
-
} };
|
|
629
|
-
chain.push(name(route, "rate"));
|
|
630
|
-
limited.add(name(route, "rate"));
|
|
631
|
-
}
|
|
632
|
-
if (route.limits?.connectionsPerIp) {
|
|
633
|
-
middlewares[name(route, "in-flight")] = { inFlightReq: { amount: route.limits.connectionsPerIp } };
|
|
634
|
-
chain.push(name(route, "in-flight"));
|
|
635
|
-
limited.add(name(route, "in-flight"));
|
|
636
|
-
}
|
|
637
|
-
if (route.prefix) {
|
|
638
|
-
middlewares[name(route, "prefix")] = { addPrefix: { prefix: route.prefix } };
|
|
639
|
-
chain.push(name(route, "prefix"));
|
|
640
|
-
}
|
|
641
|
-
assertRouteRenderable(route);
|
|
642
|
-
const allowed = [...(route.paths ?? []).map((path) => `Path(\`${path}\`)`), ...(route.prefixes ?? []).map((prefix) => `PathPrefix(\`${prefix}\`)`)];
|
|
643
|
-
const paths = allowed.length ? ` && (${allowed.join(" || ")})` : "";
|
|
644
|
-
const header = route.requireHeader ? ` && Header(\`${route.requireHeader.name}\`, \`${route.requireHeader.value}\`)` : "";
|
|
645
|
-
const certificate = () => route.wildcard?.tls.kind === "dns" ? {
|
|
646
|
-
certResolver: ACME_DNS_RESOLVER,
|
|
647
|
-
domains: [{ main: `*.${route.wildcard.domain}` }]
|
|
648
|
-
} : tls.kind === "acme" ? { certResolver: ACME_RESOLVER } : {};
|
|
649
|
-
for (const handler of route.handlers ?? []) {
|
|
650
|
-
const handlerName = name(route, handler.name);
|
|
651
|
-
routers[handlerName] = {
|
|
652
|
-
rule: `${hostRule(route)} && (${handler.prefixes.map((prefix) => `PathPrefix(\`${prefix}\`)`).join(" || ")})`,
|
|
653
|
-
priority: 1e4,
|
|
654
|
-
entryPoints: ["websecure"],
|
|
655
|
-
service: handlerName,
|
|
656
|
-
middlewares: [strip],
|
|
657
|
-
tls: certificate()
|
|
658
|
-
};
|
|
659
|
-
services[handlerName] = { loadBalancer: { servers: handler.upstreams.map((upstream) => ({ url: url(upstream) })) } };
|
|
660
|
-
}
|
|
661
|
-
if (route.redirects?.hosts.length) {
|
|
662
|
-
const redirect = name(route, "redirect");
|
|
663
|
-
middlewares[redirect] = { redirectRegex: {
|
|
664
|
-
regex: "^https?://[^/]+(.*)$",
|
|
665
|
-
replacement: `${route.redirects.to}$\{1}`,
|
|
666
|
-
permanent: true
|
|
667
|
-
} };
|
|
668
|
-
route.redirects.hosts.forEach((host, index) => {
|
|
669
|
-
routers[name(route, `redirect-${index + 1}`)] = {
|
|
670
|
-
rule: `Host(\`${host}\`)`,
|
|
671
|
-
entryPoints: ["websecure"],
|
|
672
|
-
service: "noop@internal",
|
|
673
|
-
middlewares: [redirect],
|
|
674
|
-
tls: certificate()
|
|
675
|
-
};
|
|
676
|
-
});
|
|
677
|
-
}
|
|
678
|
-
const rule = `${hostRule(route)}${paths}${header}`;
|
|
679
|
-
routers[name(route)] = {
|
|
680
|
-
rule,
|
|
681
|
-
...route.wildcard ? { priority: 1 } : {},
|
|
682
|
-
entryPoints: ["websecure"],
|
|
683
|
-
service: name(route),
|
|
684
|
-
middlewares: chain,
|
|
685
|
-
tls: certificate()
|
|
686
|
-
};
|
|
687
|
-
if (edgeToken && !route.prefix) {
|
|
688
|
-
const trusted = chain.slice(1).filter((m) => !limited.has(m));
|
|
689
|
-
routers[name(route, "stack")] = {
|
|
690
|
-
rule: `${rule} && Header(\`${EDGE_TOKEN_HEADER}\`, \`${edgeToken}\`)`,
|
|
691
|
-
...route.wildcard ? { priority: 2 } : {},
|
|
692
|
-
entryPoints: ["websecure"],
|
|
693
|
-
service: name(route),
|
|
694
|
-
...trusted.length > 0 ? { middlewares: trusted } : {},
|
|
695
|
-
tls: certificate()
|
|
696
|
-
};
|
|
697
|
-
}
|
|
698
|
-
services[name(route)] = { loadBalancer: {
|
|
699
|
-
servers: route.upstreams.map((upstream) => ({ url: url(upstream) })),
|
|
700
|
-
...route.prefix ? { passHostHeader: false } : {},
|
|
701
|
-
...route.streaming ? { responseForwarding: { flushInterval: "-1ms" } } : {},
|
|
702
|
-
...route.health ? { healthCheck: {
|
|
703
|
-
path: route.health,
|
|
704
|
-
interval: "5s",
|
|
705
|
-
timeout: "3s"
|
|
706
|
-
} } : {}
|
|
707
|
-
} };
|
|
708
|
-
}
|
|
709
|
-
return {
|
|
710
|
-
http: {
|
|
711
|
-
routers,
|
|
712
|
-
services,
|
|
713
|
-
...Object.keys(middlewares).length > 0 ? { middlewares } : {}
|
|
714
|
-
},
|
|
715
|
-
...tls.kind === "files" ? { tls: { certificates: [{
|
|
716
|
-
certFile: tls.certFile,
|
|
717
|
-
keyFile: tls.keyFile
|
|
718
|
-
}] } } : {}
|
|
719
|
-
};
|
|
720
|
-
}
|
|
721
|
-
/**
|
|
722
|
-
* The hosts a route answers, as a Traefik rule: its own and its aliases', or
|
|
723
|
-
* — for a wildcard site — exactly one label under its domain, but the ones
|
|
724
|
-
* it never takes. One label, as a wildcard certificate covers: a stage at
|
|
725
|
-
* `staging.example.com` is never reached through `example.com`'s wildcard.
|
|
726
|
-
*
|
|
727
|
-
* Several hosts are parenthesised, `(Host(a) || Host(b))`, so whatever is
|
|
728
|
-
* joined to the rule with `&&` — the path allowlist, a required header, the
|
|
729
|
-
* stack's token — holds on every one of them. One router's hosts are one
|
|
730
|
-
* certificate's names under ACME.
|
|
731
|
-
*/
|
|
732
|
-
function hostRule(route) {
|
|
733
|
-
if (!route.wildcard) {
|
|
734
|
-
const hosts = [route.host, ...route.aliases ?? []].map((host) => `Host(\`${host}\`)`);
|
|
735
|
-
return hosts.length === 1 ? hosts[0] : `(${hosts.join(" || ")})`;
|
|
736
|
-
}
|
|
737
|
-
const { domain, except } = route.wildcard;
|
|
738
|
-
return [`HostRegexp(\`${`^[a-z0-9-]+\\.${domain.replace(/\./g, "\\.")}$`}\`)`, ...except.map((label) => `!Host(\`${label}.${domain}\`)`)].join(" && ");
|
|
739
|
-
}
|
|
740
|
-
/**
|
|
741
|
-
* What a stack's routes claim on the edge, from the route model: one claim
|
|
742
|
-
* per host, each route's aliases and redirects included.
|
|
743
|
-
*/
|
|
744
|
-
function edgeClaims(routes) {
|
|
745
|
-
return routes.flatMap((route) => route.wildcard ? [{
|
|
746
|
-
wildcard: route.wildcard.domain.toLowerCase(),
|
|
747
|
-
except: [...route.wildcard.except]
|
|
748
|
-
}] : routeHosts(route).map((host) => ({ host: host.toLowerCase() })));
|
|
749
|
-
}
|
|
750
|
-
/**
|
|
751
|
-
* The comment line a stack's file carries its claims on: a comment, because
|
|
752
|
-
* Traefik's file provider refuses a whole file over a key it does not know,
|
|
753
|
-
* and gkm reads it back rather than taking the routers' rules apart.
|
|
754
|
-
*/
|
|
755
|
-
const CLAIMS_PREFIX = "# gkm-claims: ";
|
|
756
|
-
/**
|
|
757
|
-
* The hosts a stack's file on the edge claims: from its claims line, or — a
|
|
758
|
-
* file written before gkm wrote one — from its routers' rules, in the shapes
|
|
759
|
-
* `traefikDynamic` renders them.
|
|
760
|
-
*/
|
|
761
|
-
function readEdgeClaims(file) {
|
|
762
|
-
for (const line of file.split("\n")) {
|
|
763
|
-
if (!line.startsWith(CLAIMS_PREFIX)) continue;
|
|
764
|
-
try {
|
|
765
|
-
const claims = JSON.parse(line.slice(14));
|
|
766
|
-
if (Array.isArray(claims)) return claims.filter(isClaim);
|
|
767
|
-
} catch {}
|
|
768
|
-
}
|
|
769
|
-
let document;
|
|
770
|
-
try {
|
|
771
|
-
document = parse$2(file);
|
|
772
|
-
} catch {
|
|
773
|
-
return [];
|
|
774
|
-
}
|
|
775
|
-
const routers = document?.http?.routers;
|
|
776
|
-
if (!routers || typeof routers !== "object") return [];
|
|
777
|
-
const claims = [];
|
|
778
|
-
for (const router of Object.values(routers)) {
|
|
779
|
-
const rule = router?.rule;
|
|
780
|
-
if (typeof rule === "string") claims.push(...ruleClaims(rule));
|
|
781
|
-
}
|
|
782
|
-
return claims;
|
|
783
|
-
}
|
|
784
|
-
function isClaim(value) {
|
|
785
|
-
if (!value || typeof value !== "object") return false;
|
|
786
|
-
const claim = value;
|
|
787
|
-
return typeof claim.host === "string" || typeof claim.wildcard === "string" && Array.isArray(claim.except);
|
|
788
|
-
}
|
|
789
|
-
/**
|
|
790
|
-
* The hosts a rule matches: each `Host(\`a\`)` not negated, and a
|
|
791
|
-
* `HostRegexp` of a wildcard site — one label under a domain — with the
|
|
792
|
-
* `!Host` labels it leaves out.
|
|
793
|
-
*/
|
|
794
|
-
function ruleClaims(rule) {
|
|
795
|
-
const negated = [...rule.matchAll(/!\s*Host\(`([^`]+)`\)/g)].map((match) => match[1].toLowerCase());
|
|
796
|
-
const wildcard = /HostRegexp\(`\^\[a-z0-9-\]\+\\\.(.+)\$`\)/.exec(rule);
|
|
797
|
-
if (wildcard) {
|
|
798
|
-
const domain = wildcard[1].replace(/\\\./g, ".").toLowerCase();
|
|
799
|
-
const suffix = `.${domain}`;
|
|
800
|
-
return [{
|
|
801
|
-
wildcard: domain,
|
|
802
|
-
except: negated.filter((host) => host.endsWith(suffix)).map((host) => host.slice(0, -suffix.length))
|
|
803
|
-
}];
|
|
804
|
-
}
|
|
805
|
-
return [...rule.matchAll(/(?<![!\w])Host\(`([^`]+)`\)/g)].map((match) => ({ host: match[1].toLowerCase() }));
|
|
806
|
-
}
|
|
807
|
-
/**
|
|
808
|
-
* Where two claims meet, as a host to name — or undefined where they never
|
|
809
|
-
* do. A wildcard takes one label under its domain, so it meets a name one
|
|
810
|
-
* label under it that it does not leave out, and another wildcard on the
|
|
811
|
-
* same domain.
|
|
812
|
-
*/
|
|
813
|
-
function claimsOverlap(a, b) {
|
|
814
|
-
if ("host" in a && "host" in b) return a.host === b.host ? a.host : void 0;
|
|
815
|
-
if ("wildcard" in a && "wildcard" in b) return a.wildcard === b.wildcard ? `*.${a.wildcard}` : void 0;
|
|
816
|
-
const [name, wildcard] = "host" in a ? [a, b] : [b, a];
|
|
817
|
-
const suffix = `.${wildcard.wildcard}`;
|
|
818
|
-
if (!name.host.endsWith(suffix)) return void 0;
|
|
819
|
-
const label = name.host.slice(0, -suffix.length);
|
|
820
|
-
if (!/^[a-z0-9-]+$/.test(label) || wildcard.except.includes(label)) return;
|
|
821
|
-
return name.host;
|
|
822
|
-
}
|
|
823
|
-
/** A stack's dynamic configuration file, as written to the edge's directory. */
|
|
824
|
-
function traefikDynamicFile(routes, options) {
|
|
825
|
-
return `# Generated by gkm compose for ${options.project} — do not edit.
|
|
826
|
-
# The shared edge (${EDGE_PROJECT}) reads every file in this directory; this
|
|
827
|
-
# one is removed by gkm compose --down. The hosts it routes, which no other
|
|
828
|
-
# stack on the edge may route:
|
|
829
|
-
${CLAIMS_PREFIX}${JSON.stringify(edgeClaims(routes))}
|
|
830
|
-
${yaml(traefikDynamic(routes, options))}`;
|
|
831
|
-
}
|
|
832
|
-
/** The edge's static configuration file. */
|
|
833
|
-
function traefikStaticFile(ports) {
|
|
834
|
-
return `# Generated by gkm compose — the server's shared edge. Do not edit.
|
|
835
|
-
${yaml(traefikStatic(ports))}`;
|
|
836
|
-
}
|
|
837
|
-
/** The edge's compose file. */
|
|
838
|
-
function edgeComposeFile(options) {
|
|
839
|
-
return `# Generated by gkm compose — the server's shared edge. Do not edit.
|
|
840
|
-
#
|
|
841
|
-
# Started by the first stack that runs with proxy: 'traefik', and left
|
|
842
|
-
# running by gkm compose --down. Stop it, once nothing uses it, with:
|
|
843
|
-
#
|
|
844
|
-
# docker compose -p ${EDGE_PROJECT} down
|
|
845
|
-
${yaml(edgeCompose(options))}`;
|
|
846
|
-
}
|
|
847
|
-
function yaml(value) {
|
|
848
|
-
return stringify(value, {
|
|
849
|
-
lineWidth: 0,
|
|
850
|
-
aliasDuplicateObjects: false
|
|
851
|
-
});
|
|
852
|
-
}
|
|
853
|
-
//#endregion
|
|
854
261
|
//#region src/compose/stack.ts
|
|
855
262
|
/**
|
|
856
263
|
* The stack a workspace runs as for one stage — pure.
|
|
@@ -1609,7 +1016,7 @@ function composeStack(input) {
|
|
|
1609
1016
|
keyFile: `${CADDY_TLS_DIR}/key.pem`
|
|
1610
1017
|
} : edgeCertificatePaths(project)
|
|
1611
1018
|
} : { kind: "acme" };
|
|
1612
|
-
const authority = local && !certificate ? input.localAuthority ?? localAuthorityPaths() : void 0;
|
|
1019
|
+
const authority = local && !certificate ? input.localAuthority ?? localAuthorityPaths(gkmHome()) : void 0;
|
|
1613
1020
|
const root = authority?.certFile ?? certificate?.caFile;
|
|
1614
1021
|
const backupsChoice = input.buildOnly ? void 0 : stageBackups(workspace, manifest, stage);
|
|
1615
1022
|
const backups = backupsChoice?.mode === "on" && infra.includes("postgres") ? stackBackups({
|
|
@@ -2365,6 +1772,6 @@ function withLogsPort(stack, port) {
|
|
|
2365
1772
|
};
|
|
2366
1773
|
}
|
|
2367
1774
|
//#endregion
|
|
2368
|
-
export {
|
|
1775
|
+
export { awsEndpoint as _, composeProject as a, derivedCredentials as c, stackDir as d, stackPlan as f, awsClientConfig as g, assertSitePasswords as h, LOOPBACK_SERVICES as i, envFile as l, withLogsPort as m, LOGS_PORT_ENV as n, composeStack as o, withCaddyConfigs as p, LOG_ROTATION as r, deployedInboxEnv as s, EDGE_PORT_ENV as t, replicaNames as u, awsProvisioningCredentials as v };
|
|
2369
1776
|
|
|
2370
|
-
//# sourceMappingURL=stack-
|
|
1777
|
+
//# sourceMappingURL=stack-CyoRqyPt.mjs.map
|