Add host header and use ip address
This commit is contained in:
parent
a1c56de932
commit
28b54a74a0
|
@ -34,7 +34,7 @@ if ! jq . "${customer_dir}/users.json" &>/dev/null; then
|
|||
fi
|
||||
if [[ ${status} -eq 0 ]]; then
|
||||
# something is wrong if we cant copy the file in 30 seconds, so we should note that
|
||||
if ! timeout 30s rclone copy --use-cookies "${customer_dir}/users.json" "${base_dir}/${location}/"; then
|
||||
if ! timeout 30s rclone copy --webdav-headers "Host=sunet.drive.sunet.se" --use-cookies "${customer_dir}/users.json" "${base_dir}/${location}/"; then
|
||||
status=1
|
||||
fi
|
||||
fi
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[statistics]
|
||||
type = webdav
|
||||
url = https://sunet.drive.sunet.se/remote.php/dav/files/_script/
|
||||
url = https://37.156.196.13/remote.php/dav/files/_script/
|
||||
vendor = nextcloud
|
||||
user = _script
|
||||
pass = <%= @statistics_secret %>
|
||||
|
|
Loading…
Reference in a new issue