Allow public LiveView origin in development
This commit is contained in:
parent
d3dc882549
commit
f4a4831f12
|
|
@ -83,6 +83,10 @@ spec:
|
||||||
value: {{ $root.Values.app.scheme | quote }}
|
value: {{ $root.Values.app.scheme | quote }}
|
||||||
- name: PHX_URL_PORT
|
- name: PHX_URL_PORT
|
||||||
value: {{ $root.Values.app.urlPort | quote }}
|
value: {{ $root.Values.app.urlPort | quote }}
|
||||||
|
{{- with $root.Values.app.checkOrigins }}
|
||||||
|
- name: PHX_CHECK_ORIGINS
|
||||||
|
value: {{ . | quote }}
|
||||||
|
{{- end }}
|
||||||
- name: PORT
|
- name: PORT
|
||||||
value: {{ $root.Values.app.port | quote }}
|
value: {{ $root.Values.app.port | quote }}
|
||||||
- name: POOL_SIZE
|
- name: POOL_SIZE
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ service:
|
||||||
existingSecret: who-need-help-local
|
existingSecret: who-need-help-local
|
||||||
|
|
||||||
app:
|
app:
|
||||||
host: localhost
|
host: whoneedhelp.imalto.site
|
||||||
scheme: http
|
scheme: https
|
||||||
urlPort: "4011"
|
urlPort: "443"
|
||||||
|
checkOrigins: "https://whoneedhelp.imalto.site,http://localhost:4011"
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,9 @@ app:
|
||||||
host: localhost
|
host: localhost
|
||||||
scheme: https
|
scheme: https
|
||||||
urlPort: "443"
|
urlPort: "443"
|
||||||
|
# Optional comma-separated HTTP(S) origins accepted by Phoenix for
|
||||||
|
# LiveView/WebSocket connections. Leave empty to use the public URL above.
|
||||||
|
checkOrigins: ""
|
||||||
port: "4000"
|
port: "4000"
|
||||||
migratePoolSize: "2"
|
migratePoolSize: "2"
|
||||||
# OTP otherwise derives this from the container nofile ulimit. Some
|
# OTP otherwise derives this from the container nofile ulimit. Some
|
||||||
|
|
|
||||||
|
|
@ -1274,6 +1274,16 @@ test "$(
|
||||||
test "$(
|
test "$(
|
||||||
grep -c 'value: "+Q 65536"' "$scan_dir/rendered-helm.yaml"
|
grep -c 'value: "+Q 65536"' "$scan_dir/rendered-helm.yaml"
|
||||||
)" -eq 5
|
)" -eq 5
|
||||||
|
test "$(
|
||||||
|
grep -c 'name: PHX_CHECK_ORIGINS' "$scan_dir/rendered-helm.yaml"
|
||||||
|
)" -eq 2
|
||||||
|
test "$(
|
||||||
|
grep -c 'value: "https://whoneedhelp.imalto.site,http://localhost:4011"' \
|
||||||
|
"$scan_dir/rendered-helm.yaml"
|
||||||
|
)" -eq 2
|
||||||
|
test "$(
|
||||||
|
grep -c 'value: "whoneedhelp.imalto.site"' "$scan_dir/rendered-helm.yaml"
|
||||||
|
)" -eq 2
|
||||||
test "$(
|
test "$(
|
||||||
grep -c '^kind: NetworkPolicy$' "$scan_dir/rendered-helm.yaml"
|
grep -c '^kind: NetworkPolicy$' "$scan_dir/rendered-helm.yaml"
|
||||||
)" -eq 1
|
)" -eq 1
|
||||||
|
|
|
||||||
|
|
@ -145,6 +145,7 @@ case "$MODE" in
|
||||||
| .metadata.labels["app.kubernetes.io/component"] as $component
|
| .metadata.labels["app.kubernetes.io/component"] as $component
|
||||||
| select(
|
| select(
|
||||||
($component == "web" or $component == "worker") and
|
($component == "web" or $component == "worker") and
|
||||||
|
.metadata.deletionTimestamp == null and
|
||||||
.status.phase == "Running" and
|
.status.phase == "Running" and
|
||||||
([.status.containerStatuses[]?.ready] | all)
|
([.status.containerStatuses[]?.ready] | all)
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user