Skip to content

Commit 2d1345f

Browse files
committed
library.sh: Remove invalid trusted_proxy
Signed-off-by: Tobias Knöppler <[email protected]>
1 parent 82ccc2a commit 2d1345f

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.github/workflows/build-lxd.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,6 @@ jobs:
327327
runs-on: [ubuntu-20.04]
328328
env:
329329
VERSION: "${{ inputs.git_ref || github.ref }}"
330-
ARTIFACT_NAME: "${{ needs.build-previous.outputs.artifact_name }}"
331330
LXC: "${{ needs.determine-runner.outputs.lxc_cmd }}"
332331
PREVIOUS_IMAGE_URL: "https://github.com/nextcloud/nextcloudpi/releases/download/v1.53.2/NextcloudPi_LXD_x86_v1.53.2.tar.gz"
333332
steps:

etc/library.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ function set-nc-domain()
156156
if is_ncp_activated && is_app_enabled notify_push; then
157157
ncc config:system:set trusted_proxies 11 --value="127.0.0.1"
158158
ncc config:system:set trusted_proxies 12 --value="::1"
159-
ncc config:system:set trusted_proxies 13 --value="${domain}"
159+
# ncc config:system:set trusted_proxies 13 --value="${domain}"
160160
ncc config:system:set trusted_proxies 14 --value="$(dig +short "${domain}")"
161161
sleep 5 # this seems to be required in the VM for some reason. We get `http2 error: protocol error` after ncp-upgrade-nc
162162
for try in {1..5}

updates/1.54.0.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,11 @@ then
77
sed -i -e 's/^PermitRootLogin.*$/PermitRootLogin No/' /etc/ssh/sshd_config
88
fi
99

10+
for i in {10..15}
11+
do
12+
proxy="$(ncc config:system:get trusted_proxies "$i")"
13+
[[ -z "$proxy" ]] || python3 -c "import ipaddress; ipaddress.ip_address('${proxy}')" || ncc config:system:delete trusted_proxies "$i"
14+
done
15+
1016
apt-get update
1117
apt-get install --no-install-recommends -y tmux

0 commit comments

Comments
 (0)