@envsync-cloud/deploy-cli 0.6.15 → 0.6.18

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.
Files changed (2) hide show
  1. package/dist/index.js +42 -15
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -671,8 +671,11 @@ function renderTraefikDynamicConfig(config) {
671
671
  " - OPTIONS",
672
672
  " accessControlAllowHeaders:",
673
673
  " - Content-Type",
674
+ " - content-type",
674
675
  " - Authorization",
676
+ " - authorization",
675
677
  " accessControlAllowCredentials: false",
678
+ " accessControlMaxAge: 600",
676
679
  " addVaryHeader: true",
677
680
  " services:",
678
681
  " envsync-api:",
@@ -715,36 +718,42 @@ function renderTraefikDynamicConfig(config) {
715
718
  ` rule: Host(\`${hosts.landing}\`)`,
716
719
  " service: landing",
717
720
  " entryPoints: [websecure]",
718
- " tls: {}",
721
+ " tls:",
722
+ " certResolver: letsencrypt",
719
723
  " web-router:",
720
724
  ` rule: Host(\`${hosts.app}\`)`,
721
725
  " service: web",
722
726
  " entryPoints: [websecure]",
723
- " tls: {}",
727
+ " tls:",
728
+ " certResolver: letsencrypt",
724
729
  " obs-otlp-router:",
725
730
  ` rule: Host(\`${hosts.obs}\`) && (PathPrefix(\`/v1/traces\`) || PathPrefix(\`/v1/logs\`) || PathPrefix(\`/v1/metrics\`))`,
726
731
  " service: clickstack-otlp",
727
732
  " middlewares: [otel-cors]",
728
733
  " priority: 100",
729
734
  " entryPoints: [websecure]",
730
- " tls: {}",
735
+ " tls:",
736
+ " certResolver: letsencrypt",
731
737
  " obs-api-router:",
732
738
  ` rule: Host(\`${hosts.obs}\`) && PathPrefix(\`/api\`)`,
733
739
  " service: clickstack-api",
734
740
  " priority: 90",
735
741
  " entryPoints: [websecure]",
736
- " tls: {}",
742
+ " tls:",
743
+ " certResolver: letsencrypt",
737
744
  " obs-ui-router:",
738
745
  ` rule: Host(\`${hosts.obs}\`)`,
739
746
  " service: clickstack-ui",
740
747
  " priority: 10",
741
748
  " entryPoints: [websecure]",
742
- " tls: {}",
749
+ " tls:",
750
+ " certResolver: letsencrypt",
743
751
  " api-router:",
744
752
  ` rule: Host(\`${hosts.api}\`)`,
745
753
  " service: envsync-api",
746
754
  " entryPoints: [websecure]",
747
- " tls: {}"
755
+ " tls:",
756
+ " certResolver: letsencrypt"
748
757
  ].join("\n") + "\n";
749
758
  }
750
759
  function renderNginxConf(kind) {
@@ -941,8 +950,9 @@ ${renderEnvList({
941
950
  KC_PROXY_HEADERS: "xforwarded",
942
951
  KC_HOSTNAME_STRICT: "false"
943
952
  })}
944
- volumes:
945
- - ${KEYCLOAK_REALM_FILE}:/opt/keycloak/data/import/realm.json:ro
953
+ configs:
954
+ - source: keycloak_realm
955
+ target: /opt/keycloak/data/import/realm.json
946
956
  networks: [envsync]
947
957
  deploy:
948
958
  labels:
@@ -1005,16 +1015,16 @@ ${renderEnvList({
1005
1015
  environment:
1006
1016
  ${renderEnvList({
1007
1017
  HYPERDX_APP_URL: `https://${hosts.obs}`,
1008
- HYPERDX_APP_PORT: "443",
1009
1018
  HYPERDX_API_URL: `https://${hosts.obs}`,
1010
- HYPERDX_API_PORT: "443",
1011
1019
  FRONTEND_URL: `https://${hosts.obs}`
1012
1020
  })}
1013
1021
  volumes:
1014
1022
  - clickstack_data:/data/db
1015
1023
  - clickstack_ch_data:/var/lib/clickhouse
1016
1024
  - clickstack_ch_logs:/var/log/clickhouse-server
1017
- - ${CLICKSTACK_CLICKHOUSE_CONF}:/etc/clickhouse-server/config.d/envsync-listen-host.xml:ro
1025
+ configs:
1026
+ - source: clickstack_clickhouse_conf
1027
+ target: /etc/clickhouse-server/config.d/envsync-listen-host.xml
1018
1028
  networks: [envsync]
1019
1029
  healthcheck:
1020
1030
  disable: true
@@ -1022,22 +1032,27 @@ ${renderEnvList({
1022
1032
  otel-agent:
1023
1033
  image: ${config.images.otel_agent}
1024
1034
  command: ["--config=/etc/otel-agent.yaml"]
1025
- volumes:
1026
- - ${OTEL_AGENT_CONF}:/etc/otel-agent.yaml:ro
1035
+ configs:
1036
+ - source: otel_agent_conf
1037
+ target: /etc/otel-agent.yaml
1027
1038
  networks: [envsync]
1028
1039
  ${includeAppServices ? `
1029
1040
 
1030
1041
  landing_nginx:
1031
1042
  image: nginx:1.27-alpine
1043
+ configs:
1044
+ - source: nginx_landing_conf
1045
+ target: /etc/nginx/conf.d/default.conf
1032
1046
  volumes:
1033
- - ${NGINX_LANDING_CONF}:/etc/nginx/conf.d/default.conf:ro
1034
1047
  - ${RELEASES_ROOT}/landing/current:/srv/landing:ro
1035
1048
  networks: [envsync]
1036
1049
 
1037
1050
  web_nginx:
1038
1051
  image: nginx:1.27-alpine
1052
+ configs:
1053
+ - source: nginx_web_conf
1054
+ target: /etc/nginx/conf.d/default.conf
1039
1055
  volumes:
1040
- - ${NGINX_WEB_CONF}:/etc/nginx/conf.d/default.conf:ro
1041
1056
  - ${RELEASES_ROOT}/web/current:/srv/web:ro
1042
1057
  networks: [envsync]
1043
1058
 
@@ -1068,6 +1083,18 @@ volumes:
1068
1083
  clickstack_data:
1069
1084
  clickstack_ch_data:
1070
1085
  clickstack_ch_logs:
1086
+
1087
+ configs:
1088
+ keycloak_realm:
1089
+ file: ${KEYCLOAK_REALM_FILE}
1090
+ clickstack_clickhouse_conf:
1091
+ file: ${CLICKSTACK_CLICKHOUSE_CONF}
1092
+ otel_agent_conf:
1093
+ file: ${OTEL_AGENT_CONF}
1094
+ nginx_landing_conf:
1095
+ file: ${NGINX_LANDING_CONF}
1096
+ nginx_web_conf:
1097
+ file: ${NGINX_WEB_CONF}
1071
1098
  `.trimStart();
1072
1099
  }
1073
1100
  function writeDeployArtifacts(config, generated) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@envsync-cloud/deploy-cli",
3
- "version": "0.6.15",
3
+ "version": "0.6.18",
4
4
  "description": "CLI for self-hosted EnvSync deployment on Docker Swarm",
5
5
  "type": "module",
6
6
  "bin": {