@envsync-cloud/deploy-cli 0.6.17 → 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.
- package/dist/index.js +42 -13
- 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
|
-
|
|
945
|
-
-
|
|
953
|
+
configs:
|
|
954
|
+
- source: keycloak_realm
|
|
955
|
+
target: /opt/keycloak/data/import/realm.json
|
|
946
956
|
networks: [envsync]
|
|
947
957
|
deploy:
|
|
948
958
|
labels:
|
|
@@ -1012,7 +1022,9 @@ ${renderEnvList({
|
|
|
1012
1022
|
- clickstack_data:/data/db
|
|
1013
1023
|
- clickstack_ch_data:/var/lib/clickhouse
|
|
1014
1024
|
- clickstack_ch_logs:/var/log/clickhouse-server
|
|
1015
|
-
|
|
1025
|
+
configs:
|
|
1026
|
+
- source: clickstack_clickhouse_conf
|
|
1027
|
+
target: /etc/clickhouse-server/config.d/envsync-listen-host.xml
|
|
1016
1028
|
networks: [envsync]
|
|
1017
1029
|
healthcheck:
|
|
1018
1030
|
disable: true
|
|
@@ -1020,22 +1032,27 @@ ${renderEnvList({
|
|
|
1020
1032
|
otel-agent:
|
|
1021
1033
|
image: ${config.images.otel_agent}
|
|
1022
1034
|
command: ["--config=/etc/otel-agent.yaml"]
|
|
1023
|
-
|
|
1024
|
-
-
|
|
1035
|
+
configs:
|
|
1036
|
+
- source: otel_agent_conf
|
|
1037
|
+
target: /etc/otel-agent.yaml
|
|
1025
1038
|
networks: [envsync]
|
|
1026
1039
|
${includeAppServices ? `
|
|
1027
1040
|
|
|
1028
1041
|
landing_nginx:
|
|
1029
1042
|
image: nginx:1.27-alpine
|
|
1043
|
+
configs:
|
|
1044
|
+
- source: nginx_landing_conf
|
|
1045
|
+
target: /etc/nginx/conf.d/default.conf
|
|
1030
1046
|
volumes:
|
|
1031
|
-
- ${NGINX_LANDING_CONF}:/etc/nginx/conf.d/default.conf:ro
|
|
1032
1047
|
- ${RELEASES_ROOT}/landing/current:/srv/landing:ro
|
|
1033
1048
|
networks: [envsync]
|
|
1034
1049
|
|
|
1035
1050
|
web_nginx:
|
|
1036
1051
|
image: nginx:1.27-alpine
|
|
1052
|
+
configs:
|
|
1053
|
+
- source: nginx_web_conf
|
|
1054
|
+
target: /etc/nginx/conf.d/default.conf
|
|
1037
1055
|
volumes:
|
|
1038
|
-
- ${NGINX_WEB_CONF}:/etc/nginx/conf.d/default.conf:ro
|
|
1039
1056
|
- ${RELEASES_ROOT}/web/current:/srv/web:ro
|
|
1040
1057
|
networks: [envsync]
|
|
1041
1058
|
|
|
@@ -1066,6 +1083,18 @@ volumes:
|
|
|
1066
1083
|
clickstack_data:
|
|
1067
1084
|
clickstack_ch_data:
|
|
1068
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}
|
|
1069
1098
|
`.trimStart();
|
|
1070
1099
|
}
|
|
1071
1100
|
function writeDeployArtifacts(config, generated) {
|